hzwotu / wtcloud
This package is abandoned and no longer maintained.
No replacement package was suggested.
There is no license information available for the latest version (2.5.3) of this package.
2.5.3
2023-06-09 01:58 UTC
Requires
- php: >=7.4
- guzzlehttp/guzzle: ^7.2
- openzipkin/zipkin: ^3.0
- symfony/http-foundation: ^5.4
This package is auto-updated.
Last update: 2023-07-12 03:22:04 UTC
README
1、安装依赖
composer install
2、新建index.php 测试文件,同时引入依赖包
<?php require 'vendor/autoload.php';
3、编写测试代码。以下是一个国密SM4解密的测试案例
<?php /** * @desc index.php 描述信息 * @author Tinywan(ShaoBo Wan) * @date 2023/5/19 10:34 */ declare(strict_types=1); require 'vendor/autoload.php'; $sm4 = new \Wotu\tool\crypto\utils\SM4(); $params = [ 'key' => 'e9d56722cf902909793b3bdcdbe48ce0', 'data' => 'BGCr_zox9gCJ4cTyh4FjYkxDP58cWdVjndr54JG0kxt...', ]; $decryptBase64 = $sm4->decryptBase64($params); var_dump($decryptBase64);