Interface Helpers.Lazy

All Known Implementing Classes:
LazySodium, LazySodiumJava
Enclosing interface:
Helpers

public static interface Helpers.Lazy
  • Method Summary

    Modifier and Type
    Method
    Description
    sodiumBin2Hex(byte[] bin)
    Binary to hexadecimal.
    byte[]
    Hexadecimal to binary.
  • Method Details

    • sodiumBin2Hex

      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(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.