initial commit

This commit is contained in:
GEEKiDoS
2024-01-08 19:51:09 +08:00
parent a87182e94e
commit 4fd4c5c176
22 changed files with 2096 additions and 92 deletions
+13
View File
@@ -0,0 +1,13 @@
import { createHash } from "crypto";
import rc4 from 'arc4';
const EAMUSE_RC4_KEY = '69D74627D985EE2187161570D08D93B12455035B6DF0D8205DF5';
export function rc4Transfrom(keyHex: string, data: Buffer) {
const key = createHash('md5')
.update(keyHex + EAMUSE_RC4_KEY, 'hex')
.digest();
return rc4('arc4', key)
.encodeBuffer(data)
}