PHP code example of srcker / token
1. Go to this page and download the library: Download srcker/token 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/ */
srcker / token example snippets
use srcker/Token;
Token::encrypt('加密数据','加密key');
Token::decrypt('解密数据','加密key');
use srcker/openssl/Token;
Token::encrypt('加密数据','加密key','加密IV');
Token::decrypt('解密数据','加密key','加密IV');