public static final String bytesToHex ( byte [ ] bs , int off , int length ) { StringBuffer sb = new StringBuffer ( length * 2 ) ; bytesToHexAppend ( bs , off , length , sb ) ; return sb . toString ( ) ; }
Converts a byte array into a string of upper case hex chars .