mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
migrate: add syzoj (#386)
This commit is contained in:
1 parent
955ee5f86d
commit
48564767ca
6 files changed
+530
-5
No files matched your search
@@ -21,3 +21,5 @@ global.Hydro.lib['hash.vj2'] = (password: string, salt: string, udoc: { uname: s
|
||||
const mixedSha1 = sha1(md5(unameLower + pmd5) + salt + sha1(pmd5 + salt));
|
||||
return `${Buffer.from(uname).toString('base64')}|${mixedSha1}`;
|
||||
};
|
||||
|
||||
global.Hydro.lib['hash.syzoj'] = (password: string) => md5(`${password}syzoj2_xxx`);
|
||||
Reference in new issue
Block a user