Do not use mcrypt . If you enter the word mcrypt in your code, you are probably mistaken. While it is possible to provide a relatively secure cryptographic library built on top of mcrypt (an earlier version of defuse / php-encryption), switching your code to openssl will provide better security, performance, usability, and portability. source: paragonie.com
Openssl speed is faster. Take a look at the following source table : jrm.cc
Abandonware mcrypt is basically a failure. Therefore, especially if you start from scratch (or as the state of php.net comments , you write code in 2015), do it right, go with OpenSSL. fooobar.com/questions/837435 / ...
Unamata sanatarai
source share