Forum Moderators: coopster

Message Too Old, No Replies

Encryption without mcrypt

Would like to know most secure encryption function in php without mcrypt

         

robster124

2:19 am on Jan 3, 2015 (gmt 0)

10+ Year Member



I've used mcrypt for a long while now and I have little bad to say about it. A new project however uses php but cant use mcrypt. Im wondering if anyone has a suggestion for the most secure 2 way key based cryptographic function in php? It will be used to encrypt mostly <50kb files. Thanks

lammert

10:11 am on Jan 4, 2015 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



You could use the OpenSSL functions which are available through the openssl_encrypt() and openssl_decrypt() functions in PHP. Documentation for PHP is however almost nonexistent, so it may take some testing and poking around before it will be working flawlessly.

The positive side is that the OpenSSL cryptographic routines are considered to run significantly faster in PHP than the mcrypt routines.