fixer112 / abu
Altechtic Solutions 的一站式 PHP 加密器。
v2.1.0
2018-05-03 11:54 UTC
Requires
- php: >=5.3.9
This package is not auto-updated.
Last update: 2024-09-29 10:31:54 UTC
README
- 用于加密字符串/密码
- 使用十六进制和ASCII将单词加密为安全字符串
如何使用composer使用
"require": {
"fixer112/abu": "2.1.*"
}
- 默认最大加密长度为60
- 要更改最大加密长度:abu::encrypt($password, 70)
- abu::encrypt('$password', 50) 不等于 abu::encrypt('$password') 或 abu::encrypt('$password', 70)
- 值越高,越安全
- 在加密或检查加密字符串之前,始终检查版本
<?php
//require autoload file
require 'vendor/autoload.php';
use Abu\abu;
$password = 'pass@string';
if (abu::version()=='2.1.0') {
if (abu::encrypt('$password', 50) == '5894340128377128414f120450123487123519109555109589') {
//execute code
}
}
?>