migrate: add syzoj (#386)

This commit is contained in:
panda authored and GitHub committed 2022-08-18 21:26:18 +08:00
1 parent 955ee5f86d
commit 48564767ca
6 files changed
+530 -5

No files matched your search

+2
View File
@@ -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`);