public String toHexString ( ) { StringBuilder builder = new StringBuilder ( ) ; for ( byte b : bytes ) { builder . append ( String . format ( "%02x" , b ) ) ; } return builder . toString ( ) ; }
Make a hex string from a byte array .