Skip to content

Commit

Permalink
Fix hash function
Browse files Browse the repository at this point in the history
  • Loading branch information
quangdung93 committed Sep 8, 2021
1 parent 47a98ae commit 4b99cff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JwtRedis.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function getTokenBySessionIdFromRedis($session_id):array

public function hashKey(array $params):string
{
return sha1(implode('.', $params));
return hash('sha1', implode('.', $params));
}

}

0 comments on commit 4b99cff

Please sign in to comment.