Module bcrypt

The OpenBSD Blowfish password hashing algorithm wrapper module.

Description

The OpenBSD Blowfish password hashing algorithm wrapper module.

Data Types

mechanism()

mechanism() = nif | port

pwerr()

pwerr() = invalid_salt | invalid_salt_length | invalid_rounds

rounds()

rounds() = 4..31

Function Index

gen_salt/0Returns a random string data.
gen_salt/1Generate a random string data.
hashpw/2Make hash string based on Password and Salt.
is_worker_available/0Is at least one bcrypt worker currently available for work?.
mechanism/0Get environment setting of hash generation.
start/0Starts Application bcrypt.
stop/0Stops Application bcrypt.

Function Details

gen_salt/0

gen_salt() -> Result

Returns a random string data.

gen_salt/1

gen_salt(Rounds) -> Result

Generate a random string data.

hashpw/2

hashpw(Password, Salt) -> Result

Make hash string based on Password and Salt.

is_worker_available/0

is_worker_available() -> Result

Is at least one bcrypt worker currently available for work?

mechanism/0

mechanism() -> mechanism()

Get environment setting of hash generation.

start/0

start() -> any()

Starts Application bcrypt. See also: application:start/1.

stop/0

stop() -> any()

Stops Application bcrypt. See also: application:stop/1.


Generated by EDoc