PHP code example of ch4o5 / sm3-php
1. Go to this page and download the library: Download ch4o5/sm3-php library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ch4o5 / sm3-php example snippets
/**
* demo @ sm3-php
*
* Code BY ch4o5
* 10月. 12th 2019
* Powered by PhpStorm
*/
// 1. 引入项目中 Composer 的 autoload.php
用提供的 sm3() 函数
$sm3 = sm3('abc');
// 使用它
echo $sm3;