bcrypt_elixir v0.12.0 Bcrypt.Base View Source

Base module for the Bcrypt password hashing library.

Link to this section Summary

Functions

Encrypt and return the hash

The main key expansion function

Initialize the P-box and S-box tables with the digits of Pi, and then start the key expansion process

Hash a password using Bcrypt

Verify a password by comparing it with the stored Bcrypt hash

Link to this section Functions

Encrypt and return the hash.

Link to this function bf_expand0(state, input, input_len) View Source

The main key expansion function.

Link to this function bf_init(key, key_len, salt) View Source

Initialize the P-box and S-box tables with the digits of Pi, and then start the key expansion process.

Link to this function hash_password(password, salt) View Source

Hash a password using Bcrypt.

Link to this function verify_pass(password, stored_hash) View Source

Verify a password by comparing it with the stored Bcrypt hash.