Comeonin.Tools

Module that provides various tools for the hashing algorithms.

Source

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

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.

Source
secure_check(hash, stored)

Compares the two binaries in constant time to avoid timing attacks.

Source