Skip to content
Permalink
Browse files

Fixed statement about Security:hash's salt parameter

Just nitpicking, but it prepends the salt, not appends it:
https://github.com/cakephp/cakephp/blob/master/lib/Cake/Utility/Security.php#L120
  • Loading branch information...
ravage84 committed Aug 12, 2013
1 parent 1bdcc58 commit 7d4f2293102fc8fd8b808da628052a5ff7eec85c
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Utility/Security.php
@@ -99,7 +99,7 @@ public static function validateAuthKey($authKey) {
*
* @param string $string String to hash
* @param string $type Method to use (sha1/sha256/md5/blowfish)
* @param mixed $salt If true, automatically appends the application's salt
* @param mixed $salt If true, automatically prepends the application's salt
* value to $string (Security.salt). If you are using blowfish the salt
* must be false or a previously generated salt.
* @return string Hash

0 comments on commit 7d4f229

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.