Package com.goterl.lazysodium.interfaces
Interface ShortHash.Lazy
-
- All Known Implementing Classes:
LazySodium,LazySodiumJava
- Enclosing interface:
- ShortHash
public static interface ShortHash.Lazy
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringcryptoShortHash(java.lang.String in, Key key)Hash a short message using a key.KeycryptoShortHashKeygen()Generate a 64-bit key for short-input hashing.
-
-
-
Method Detail
-
cryptoShortHashKeygen
Key cryptoShortHashKeygen()
Generate a 64-bit key for short-input hashing.- Returns:
- Key in string format.
-
cryptoShortHash
java.lang.String cryptoShortHash(java.lang.String in, Key key) throws SodiumExceptionHash a short message using a key.- Parameters:
in- The short message to hash.key- The key generated viacryptoShortHashKeygen().- Returns:
- Your message hashed of size
ShortHash.BYTES. - Throws:
SodiumException
-
-