INNER CODE UNIT · Java
toHexStr
terl/lazysodium-java · src/main/java/com/goterl/lazysodium/LazySodium.java:96
public String toHexStr(byte[] bs) {
return bytesToHex(bs);
}
public byte[] toBinary(String hex) {
return hexToBytes(hex);
}
/**
* Bytes to hexadecimal. Equivalent to {@link #sodiumBin2Hex(byte[])} but static.
*
* @param bin Byte array.
* @return Hexadecimal string.
*/
public static String toHex(byte[] bin) {
return bytesToHex(bin);
}