Skip to content

Commit

Permalink
Changed hashing algorithm from blowfish to the more common sha256
Browse files Browse the repository at this point in the history
Blowfish isn't available in most of the deployed PHP installations out there.
  • Loading branch information
jk committed Aug 12, 2011
1 parent fbfac0c commit f6330ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/examples/pdo/lib/OAuth2StoragePdo.php
Expand Up @@ -284,7 +284,7 @@ protected function getToken($token, $isRefresh = true) {
* @return string
*/
protected function hash($client_secret, $client_id) {
return hash('blowfish', $client_id.$client_secret.self::SALT);
return hash('sha256', $client_id.$client_secret.self::SALT);
}

/**
Expand Down

0 comments on commit f6330ab

Please sign in to comment.