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.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor #7934 Use OpenSSL instead of Mcrypt in the examples (javiereguiluz)
This PR was squashed before being merged into the 2.7 branch (closes#7934).
Discussion
----------
Use OpenSSL instead of Mcrypt in the examples
This fixes#7925. Some comments:
* openssl_*() functions are not documented on php.net (see http://php.net/manual/en/function.openssl-decrypt.php) so I used this article as a reference: http://thefsb.tumblr.com/post/110749271235/using-opensslendecrypt-in-php-instead-of
* I think we don't need to use the `OPENSSL_RAW_DATA` or `OPENSSL_ZERO_PADDING` options ... but I'd like someone to verify this.
* I can't find an equivalent of `\MCRYPT_3DES` so I used `\OPENSSL_ALGO_SHA1`. I'm not sure if that's correct.
Commits
-------
d6260a1 Use OpenSSL instead of Mcrypt in the examples
0 commit comments