Skip to content

Commit

Permalink
Avoid use of deprecated mcrypt module
Browse files Browse the repository at this point in the history
  • Loading branch information
bcosca committed Feb 10, 2017
1 parent 6553f89 commit 5b9ce37
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions bcrypt.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ function hash($pw,$salt=NULL,$cost=self::COST) {
else {
$raw=16;
$iv='';
if (extension_loaded('mcrypt'))
$iv=mcrypt_create_iv($raw,MCRYPT_DEV_URANDOM);
if (!$iv && extension_loaded('openssl'))
$iv=openssl_random_pseudo_bytes($raw);
if (!$iv)
Expand Down

0 comments on commit 5b9ce37

Please sign in to comment.