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.

Installs: 332

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 4

Forks: 2

Open Issues: 0

Type:project


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);