From ebcf34e3b4f5504067d6f3b096c95102aaced16a Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 8 Feb 2012 21:31:27 -0600 Subject: [PATCH] cleaning up crypter. --- laravel/crypter.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/laravel/crypter.php b/laravel/crypter.php index ad01e175..8e9655e9 100644 --- a/laravel/crypter.php +++ b/laravel/crypter.php @@ -45,15 +45,14 @@ public static function decrypt($value) // To decrypt the value, we first need to extract the input vector and // the encrypted value. The input vector size varies across different - // encryption ciphers and modes, so we will get the correct size for - // the cipher and mode being used by the class. + // encryption ciphers and modes, so we'll get the correct size. $iv = substr($value, 0, static::iv_size()); $value = substr($value, static::iv_size()); // Once we have the input vector and the value, we can give them both // to Mcrypt for decryption. The value is sometimes padded with \0, - // so we will trim all of the padding characters from the string. + // so we will trim all of the padding characters. $key = static::key(); return rtrim(mcrypt_decrypt(static::$cipher, $key, $value, static::$mode, $iv), "\0");