tianmiao/encrypt

There is no license information available for the latest version (v1.2) of this package.

加密

v1.2 2021-11-22 06:42 UTC

This package is auto-updated.

Last update: 2024-10-22 13:55:56 UTC


README

支持3DES

环境要求

  • PHP >= 5.6

安装(composer包)

composer require tianmiao/encrypt

示例

require "./vendor/autoload.php";

//加密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));