Comeonin.Tools
Module that provides various tools for the hashing algorithms.
Summary↑
random_bytes(number) | Use erlang’s crypto.strong_rand_bytes by default. Falls back to crypto.rand_bytes if there is too little entropy for strong_rand_bytes to work |
secure_check(hash, stored) | Compares the two binaries in constant time to avoid timing attacks |
Functions
Use erlang’s crypto.strong_rand_bytes by default. Falls back to crypto.rand_bytes if there is too little entropy for strong_rand_bytes to work.
Compares the two binaries in constant time to avoid timing attacks.