Skip to content
Browse files

Fixed statement about Security:hash's salt parameter

Just nitpicking, but it prepends the salt, not appends it:
  • 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.