blueprint/l2encrypt

LineageII 密码加密

1.0.0 2020-04-21 19:58 UTC

This package is auto-updated.

Last update: 2024-09-22 06:25:26 UTC


README

LineageII PHP 加密库。

安装

composer require blueprint/l2encrypt

用法

<?php

use Blueprint\L2encrypt;

$value = 'EncryptMe';

$encryptedValue = L2encrypt::encrypt($value);
echo $encryptedValue; // Output: 0x35d069fe4fe03fe6f7dbb4b578e2c4c4

别名

userPassworduserAnswer 是主要方法 encrypt 的别名。

<?php

use Blueprint\L2encrypt;

$_POST['password'] = 'test';
$password = $_POST['password'];

$encryptedPassword = L2encrypt::userPassword($password);
echo $encryptedPassword; // Output: 0xb53b56edac3b1d1d28b197975ac0e6e6
<?php

use Blueprint\L2encrypt;

$_POST['answer'] = 'LineageLover';
$answer = $_POST['answer'];

$encryptedAnswer = L2encrypt::userAnswer($answer);
echo $encryptedAnswer; // Output: 0xa51f521f9e296f8a57d71d65a8321414

致谢

  • 未知作者

许可

MIT