Skip to content

Commit

Permalink
Fix coding standards error.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Sep 2, 2013
1 parent 95ad5f5 commit 13b870d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Utility/Security.php
Expand Up @@ -319,7 +319,7 @@ public static function encrypt($plain, $key, $hmacSalt = null) {

$ivSize = mcrypt_get_iv_size($algorithm, $mode);
$iv = mcrypt_create_iv($ivSize, MCRYPT_DEV_URANDOM);
$ciphertext = $iv . mcrypt_encrypt($algorithm, $key, $plain, $mode, $iv);
$ciphertext = $iv . mcrypt_encrypt($algorithm, $key, $plain, $mode, $iv);
$hmac = hash_hmac('sha256', $ciphertext, $key);
return $hmac . $ciphertext;
}
Expand Down

0 comments on commit 13b870d

Please sign in to comment.