tianmiao/encrypt

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

加密

Installs: 122

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/tianmiao/encrypt

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

This package is auto-updated.

Last update: 2025-09-22 16:01:39 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));