Closed sarciszewski closed 9 years ago
https://github.com/slimphp/Slim/blob/2c434e4186aae6b1f7b490e03eabc1c086e8d553/Slim/Http/Util.php#L92-L126 https://github.com/slimphp/Slim/blob/2c434e4186aae6b1f7b490e03eabc1c086e8d553/Slim/Http/Util.php#L142-L177
I suggest wrapping a much better solution instead:
https://github.com/defuse/php-encryption
From the authors of PHP: The Right Way I have to say I'm not impressed. Also, MCRYPT_RIJNDAEL_256 isn't AES-256.
MCRYPT_RIJNDAEL_256
See also #1037
https://github.com/slimphp/Slim/blob/2c434e4186aae6b1f7b490e03eabc1c086e8d553/Slim/Http/Util.php#L92-L126 https://github.com/slimphp/Slim/blob/2c434e4186aae6b1f7b490e03eabc1c086e8d553/Slim/Http/Util.php#L142-L177
I suggest wrapping a much better solution instead:
https://github.com/defuse/php-encryption
From the authors of PHP: The Right Way I have to say I'm not impressed. Also,
MCRYPT_RIJNDAEL_256
isn't AES-256.