Hasher
Absolutely minimal hashing library in pure Elixir.
Passwords will be hashed with one round of sha256 hashing with 32-byte salt automatically generated and added.
Installation
The package can be installed by adding hasher to your list of dependencies in mix.exs:
def deps do
[{:hasher, "~> 0.1.0"}]
endDocumentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/hasher.
Usage
# Generate hash
hashed_password = Hasher.salted_password_hash("qwerty")
# Check password against hash
Hasher.check_password_hash("qwerty", hashed_password)