irman / legacy-encrypter
Laravel mcrypt 加密器的旧版本。
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
🍴 从 laravel/legacy-encrpyter 分支创建,以提供更多 Laravel 版本的兼容性。原始仓库仅支持 Laravel 5.3.*
Laravel Legacy Encrypter
此加密包为 Laravel 5.0 至 5.2 中使用的旧 Mcrypt 加密器提供支持。它主要用于将数据迁移到 5.1 及以后版本中使用的基于 OpenSSL 的新加密器。
使用示例
use Irman\LegacyEncrypter\McryptEncrypter; $encrypter = new McryptEncrypter($encryptionKey); $encrypted = $encrypter->encrypt('I am encrypted!'); $decrypted = $encrypter->decrypt($encrypted);