Updated README to include info about starting OTP applications
diff --git a/README.rst b/README.rst
index 31cc432..4802be6 100644
--- a/README.rst
+++ b/README.rst
@@ -15,12 +15,10 @@
./bootstrap
-2. Configure the project, specifying ``--with-erlang`` and
+2. Configure the project, optionally specifying ``--with-erlang`` and
``--with-erl-interface``::
- ./configure \
- --with-erlang=R12B-4/lib/erlang/usr/include \
- --with-erl-interface=R12B-4/lib/erlang/lib/erl_interface-3.5.8
+ ./configure
3. Build it
@@ -33,15 +31,28 @@
Basic usage instructions
------------------------
-1. Start the `gen_server` which manages the port::
+1. Start the `sasl` and `crypto` applications::
- 1> ok = crypto:start(),
- 1> {ok, Pid} = bcrypt:start_link("lib/bcrypt/bcrypt").
- {ok, <0.39.0>}
+ 1> ok = application:start(sasl).
+ ok
+ 2> ok = application:start(crypto).
+ ok
-2. Hash a password using a salt with the default number of rounds::
+2. Start the `bcrypt` application::
- 2> bcrypt:hashpw(Pid, "foo", bcrypt:gen_salt(Pid)).
+ 3> ok = application:start(bcrypt).
+ ok
+
+3. Hash a password using a salt with the default number of rounds::
+
+ 4> Hash = bcrypt:hashpw("foo", bcrypt:gen_salt()).
"$2...000"
+4. Verify the password::
+
+ 5> Hash =:= bcrypt:hashpw("foo", Hash).
+ true
+ 6> Hash =:= bcrypt:hashpw("bar", Hash).
+ false
+
Authors: Hunter Morris (http://skarab.com/)