加密解密、加签验签
github.com/ledccn/ledc-crypt
Source
Issues
Installs: 20
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
Requires (Dev)
None
Suggests
Provides
Conflicts
Replaces
MIT 030151626ac63e5c0f09fc1c9b449e12a8729750
This package is auto-updated.
Last update: 2024-11-02 09:07:17 UTC
composer require ledc/crypt
开箱即用,只需要传入一个配置,初始化一个实例即可:
use Ledc\Crypt; $crypt = new AesCrypt($aesKey, 'aes-128-cbc', 'sha256', 30);
在创建实例后,所有的方法都可以有IDE自动补全;例如:
// 加密 $crypt->encrypt($data); // 解密 $crypt->decrypt($payload, $signature);