Skip to content

Commit

Permalink
Merge pull request ircmaxell#31 from staabm/patch-1
Browse files Browse the repository at this point in the history
updated readme to show a php 5.3 compatible example
  • Loading branch information
ircmaxell committed Jun 18, 2013
2 parents 6925da6 + 32af6a6 commit 8a69264
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Note that the algorithm that we chose is `PASSWORD_BCRYPT`. That's the current s

`BCRYPT` also allows for you to define a `cost` parameter in the options array. This allows for you to change the CPU cost of the algorithm:

$hash = password_hash($password, PASSWORD_BCRYPT, ["cost" => 10]);
$hash = password_hash($password, PASSWORD_BCRYPT, array("cost" => 10));

That's the same as the default. The cost can range from `4` to `31`. I would suggest that you use the highest cost that you can, while keeping response time reasonable (I target between 0.1 and 0.5 seconds for a hash, depending on use-case).

Expand Down

0 comments on commit 8a69264

Please sign in to comment.