mirror of
https://github.com/v2board/v2board.git
synced 2025-06-15 22:27:50 +08:00
update: new cipher
This commit is contained in:
@ -6,8 +6,14 @@ class Helper
|
||||
{
|
||||
public static function uuidToBase64($uuid, $length)
|
||||
{
|
||||
return base64_encode(substr(str_replace('-', '', $uuid), 0, $length - 6));
|
||||
return base64_encode(substr($uuid, 0, $length));
|
||||
}
|
||||
|
||||
public static function getShadowsocksServerKey($timestamp, $length)
|
||||
{
|
||||
return base64_encode(substr(md5($timestamp), 0, $length));
|
||||
}
|
||||
|
||||
public static function guid($format = false)
|
||||
{
|
||||
if (function_exists('com_create_guid') === true) {
|
||||
|
Reference in New Issue
Block a user