public String toHexString ( ) { final StringBuffer sb = new StringBuffer ( ) ; for ( final byte b : this . bytes ) { sb . append ( Integer . toHexString ( b & 0xFF ) ) ; } return sb . substring ( 0 , Math . min ( this . bitLength / 4 , sb . length ( ) ) ) ; }
To hex string string .