Skip to content

Commit

Permalink
Hopefully the last one......
Browse files Browse the repository at this point in the history
  • Loading branch information
NeroReflex committed Sep 17, 2017
1 parent 7cc0d9f commit 0cc72b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Gishiki/Security/Hashing/Hasher.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ final class Hasher
/**
* @var bool true if the algorithm name has to be passed
*/
private $algorithmRequired;
private $algorithmRequired = false;

/**
* @var string the name of the function to be called to produce a message digest
Expand Down Expand Up @@ -66,6 +66,7 @@ public function __construct($algorithm = Algorithm::BCRYPT) {
}
else if ((in_array($algorithm, openssl_get_md_methods())) && (in_array($algorithm, hash_algos()))) {
$this->algorithm = $algorithm;
$this->algorithmRequired = true;
$this->hashCallback = Algorithm::class."::opensslHash";
$this->verifyCallback = Algorithm::class."::opensslVerify";
}
Expand Down

0 comments on commit 0cc72b6

Please sign in to comment.