| erlang-bcrypt is a wrapper around the OpenBSD Blowfish password hashing |
| algorithm, as described in "A Future-Adaptable Password Scheme" by Niels |
| Provos and David Mazieres: http://www.openbsd.org/papers/bcrypt-paper.ps |
| |
| Basic build instructions: |
| |
| $ ./bootstrap |
| $ ./configure \ |
| --with-erlang=R12B-4/lib/erlang/usr/include \ |
| --with-erl-interface=R12B-4/lib/erlang/lib/erl_interface-3.5.8 |
| $ make |
| $ erl -pa lib/bcrypt/ebin |
| |
| Basic usage instructions: |
| |
| 1> ok = crypto:start(), {ok, Pid} = bcrypt:start_link("lib/bcrypt/bcrypt"). |
| {ok, <0.39.0>} |
| 2> bcrypt:hashpw(Pid, "foo", bcrypt:gen_salt(Pid)). |
| "$2...000" |
| |
| Authors: Hunter Morris (http://skarab.com/) |