hzwotu / wtcloud
Installs: 339
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 4
Forks: 2
Open Issues: 0
Type:project
Requires
- php: >=7.4
- guzzlehttp/guzzle: ^7.2
- openzipkin/zipkin: ^3.0
- symfony/http-foundation: ^5.4
- dev-main
- 2.5.3
- 2.5.2
- 2.5.1
- 2.5.0
- 2.4.1
- 2.4.0
- 2.3.0
- 2.2.9
- 2.2.8
- 2.2.7
- 2.2.6
- 2.2.5
- 2.2.4
- 2.2.3
- 2.2.2
- 2.2.1
- 2.2.0
- 2.1.9
- 2.1.8
- 2.1.7
- 2.1.6
- 2.1.5
- 2.1.4
- 2.1.3
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- dev-feature_kp_dv
- dev-feature_wj_dev
- dev-test
- dev-feature_kp
- dev-feature_cp_dev
- dev-feature_zp_release
- dev-Tinywan-patch-1
- dev-feature_company_credit
- dev-feature_zp_dev
- dev-feature_kp_release
- dev-feature_3.0
- dev-feature_wj_dv
- dev-feature_resident
- dev-feature_zipkin_timeout
- dev-feature_zipkin_adapter_cli
- dev-upstream-develop
- dev-feature-username
- dev-cp
- dev-release
- dev-beta
- dev-no_zipkin_test
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);