irman / legacy-encrypter
The legacy version of the Laravel mcrypt encrypter.
v7.0.0
2020-03-29 18:33 UTC
Requires
- php: >=7.2.5
- ext-json: *
- ext-mbstring: *
- ext-openssl: *
- illuminate/contracts: 7.*
- illuminate/support: 7.*
- paragonie/random_compat: ~1.4|~2.0
- phpseclib/mcrypt_compat: ~1.0
README
🍴 Forked from laravel/legacy-encrpyter for more Laravel version compatibility. The original repository only supports Laravel 5.3.*
Laravel Legacy Encrypter
This encryption package provides support for the legacy Mcrypt encrypter used by Laravel 5.0 through 5.2. It is primarily intended to be used to migrate your data to the new OpenSSL based encrypter used in 5.1 through the latest release of Laravel.
Usage Example
use Irman\LegacyEncrypter\McryptEncrypter; $encrypter = new McryptEncrypter($encryptionKey); $encrypted = $encrypter->encrypt('I am encrypted!'); $decrypted = $encrypter->decrypt($encrypted);