Module bcrypt

Data Types

mechanism()

mechanism() = nif | port

pwerr()

pwerr() = invalid_salt | invalid_salt_length | invalid_rounds

rounds()

rounds() = 4..31

Function Index

gen_salt/0
gen_salt/1
hashpw/2
mechanism/0
start/0
stop/0

Function Details

gen_salt/0

gen_salt() -> {ok, string()}

gen_salt/1

gen_salt(Rounds::rounds()) -> {ok, string()}

hashpw/2

hashpw(Password::string() | binary(), Salt::string() | binary()) -> {ok, string()} | {error, pwerr()}

mechanism/0

mechanism() -> mechanism()

start/0

start() -> any()

stop/0

stop() -> any()


Generated by EDoc