mcrypt |
An encryption library that was included with PHP. However, this library was deprecated with PHP 7.1. With PHP 7.2, it is slated to be moved to PECL (PHP Extension Community Library), which is a repository of extensions for the PHP language. |
Libsodium |
Defuse OpenSSL The current industry standard for cryptography. This library is available to PHP developers through PECL, but it is slated to be included with PHP 7.2. |
Defuse |
An encryption library written in PHP. It requires PHP 5.4 or later, and it requires the OpenSSL extension to be enabled. This library is expected to remain stable and supported until at least January 1st , 2019. |
OpenSSL |
An encryption library written in the C programming language. PHP includes a wrapper that allows you to use the OpenSSL library. |