Short Hashes
Bindings for the crypto_shorthash API. See the libsodium crypto_shorthash docs for more information.
Constants
Buffer lengths (integer)
crypto_shorthash_BYTEScrypto_shorthash_KEYBYTES
String constants (string)
crypto_shorthash_PRIMITIVE
crypto_shorthash
sodium.crypto_shorthash(out, in, k)
Hashes a value to a short hash based on a k.
outshould be abufferof lengthcrypto_shorthash_BYTESinshould be abufferof any sizekshould be abufferof lengthcrypto_shorthash_KEYBYTES
The generated short hash is stored in out.
