Blake2.Blake2s (blake2_elixir v0.9.0)

View Source

Module to hash input using the Blake2s version of Blake2.

Blake2s is optimized for 8- to 32-bit platforms and produces digests of any size between 1 and 32 bytes.

The hash function produces a digest in binary form, as bytes. The hash_hex function outputs the digest in hexadecimal format.

The hash_nif function calls the native code. It is unlikely that you will need to call this function directly.

Summary

Functions

hash(input, key, outlen \\ 32, salt \\ "", personal \\ "")

Main hash function - output in bytes.

hash_hex(input, key, outlen \\ 32, salt \\ "", personal \\ "")

Main hash function - output in hexadecimal format.

hash_nif(input, key, outlen, salt, personal)

init()