PHP code example of tianmiao / encrypt
1. Go to this page and download the library: Download tianmiao/encrypt 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/ */
tianmiao / encrypt example snippets
//加密key
$key = '288519b466c231551384051d1';
//位移参数
$iv = '288519b41';
$des3=new \Tianmiao\Encrypt\DES3($key,$iv);
$output=$des3->encrypt("hello word");
var_dump($output);
var_dump($des3->decrypt($output));