Permalink
Browse files

Change default mechanism to NIF

  • Loading branch information...
Hunter Morris
Hunter Morris committed Mar 12, 2012
1 parent bc8fb23 commit 32814ac6c13212bb3959e65fd65586746168b55e
Showing with 5 additions and 5 deletions.
  1. +3 −3 README.rst
  2. +2 −2 src/bcrypt.app.src
View
@@ -48,10 +48,10 @@ application's environment:
``mechanism``
Specifies whether to use the NIF implementation (``'nif'``) or a
pool of port programs (``'port'``). Defaults to ``'port'``.
pool of port programs (``'port'``). Defaults to ``'nif'``.
`WARNING: the NIF implementation will block Erlang VM scheduler
threads and is not suitable for many applications.`
`Note: the NIF implementation no longer blocks the Erlang VM
scheduler threads`
``pool_size``
Specifies the size of the port program pool. Defaults to ``4``.
View
@@ -1,7 +1,7 @@
%% -*- mode: erlang;erlang-indent-level: 2;indent-tabs-mode: nil -*-
{application, bcrypt,
[{description, "An Erlang wrapper (NIF or port program) for the OpenBSD password scheme, bcrypt."},
{vsn, "0.4.1"},
{vsn, "0.5.0"},
{registered, [bcrypt_sup, bcrypt_nif_worker, bcrypt_port_sup, bcrypt_pool]},
{mod, {bcrypt_app, []}},
{applications, [kernel, stdlib, crypto]},
@@ -10,7 +10,7 @@
{default_log_rounds, 12},
% Mechanism to use 'nif' or 'port'
{mechanism, port},
{mechanism, nif},
% Size of port program pool
{pool_size, 4}

0 comments on commit 32814ac

Please sign in to comment.