Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Adding basic instructions to get started
  • Loading branch information
hntrmrrs committed Nov 3, 2008
1 parent 883f074 commit a11047fb54b745bc837b6a8f8c1334b099d1ed88
Showing 1 changed file with 16 additions and 0 deletions.
16 README
@@ -2,4 +2,20 @@ 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/)

0 comments on commit a11047f

Please sign in to comment.