https://github.com/quansitech/qs-php-crypt
php加密工具库
https://github.com/quansitech/qs-php-crypt
Last synced: 11 months ago
JSON representation
php加密工具库
- Host: GitHub
- URL: https://github.com/quansitech/qs-php-crypt
- Owner: quansitech
- License: apache-2.0
- Created: 2020-11-13T02:31:58.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-13T02:44:58.000Z (over 5 years ago)
- Last Synced: 2025-06-16T13:18:50.213Z (about 1 year ago)
- Language: PHP
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# qs-crypt
php加密
## 安装
```php
composer require quansitech/qs-php-crypt
```
## AES-256-CBC
```php
$key="1234567";
//加密
$plainText = "hello world";
$cipherText = AesCBC::encrypt($plainText, $key);
//解密
$plainText = AesCBC::decrypt($cipherText, $key);
```