Skip to content

Commit

Permalink
adrjust desired hash algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
ingoj committed May 15, 2023
1 parent dfeb4f7 commit 5c312dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/Recommender/RecommenderCurl.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ public function start()/*:void*/
*/
protected function getAnonymizedUserHash() : string
{
$alg = 'sha512'; // put new desired hashing algo here
$alg = 'sha256'; // put new desired hashing algo here
if (array_search($alg,hash_algos()) === false) {
$alg = 'md5'; // Fallback to md5 if $alg not included in php
}
}
return hash($alg,Config::getField(Config::KEY_SALT) . self::dic()->user()->getId());
}

Expand Down

0 comments on commit 5c312dc

Please sign in to comment.