Package com.goterl.lazysodium.interfaces
Interface Helpers.Lazy
-
- All Known Implementing Classes:
LazySodium,LazySodiumJava
- Enclosing interface:
- Helpers
public static interface Helpers.Lazy
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringsodiumBin2Hex(byte[] bin)Binary to hexadecimal.byte[]sodiumHex2Bin(java.lang.String hex)Hexadecimal to binary.
-
-
-
Method Detail
-
sodiumBin2Hex
java.lang.String sodiumBin2Hex(byte[] bin)
Binary to hexadecimal. This method does not null terminate strings.- Parameters:
bin- The binary bytes you want to convert to a string.- Returns:
- A hexadecimal string solely made up of the characters 0123456789ABCDEF.
-
sodiumHex2Bin
byte[] sodiumHex2Bin(java.lang.String hex)
Hexadecimal to binary. Does not null terminate the binary array.- Parameters:
hex- Hexadecimal string (a string that's made up of the characters 0123456789ABCDEF) to convert to a binary array.- Returns:
- Binary byte array.
-
-