4slv/xxtea
Composer 安装命令:
composer require 4slv/xxtea
包简介
XXTEA is a fast and secure encryption algorithm. This is a XXTEA library for PHP.
README 文档
README
Introduction
XXTEA is a fast and secure encryption algorithm. This is a XXTEA library for PHP.
It is different from the original XXTEA encryption algorithm. It encrypts and decrypts string instead of uint32 array, and the key is also string.
Usage
<?php use xxtea\Xxtea; $str = "Hello World!"; $key = "1234567890"; $encrypt_data = Xxtea::encrypt($str, $key); $decrypt_data = Xxtea::decrypt($encrypt_data, $key); if ($str == $decrypt_data) { echo "success!"; } else { echo "fail!"; } ?>
统计信息
- 总下载量: 1.15k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-01-13