mirror of
https://github.com/drmext/MonkeyBusiness.git
synced 2024-12-18 02:16:02 +01:00
17 lines
483 B
Python
17 lines
483 B
Python
from Cryptodome.Cipher import ARC4
|
|
from Cryptodome.Hash import MD5
|
|
|
|
|
|
class EamuseARC4:
|
|
def __init__(self, eamuseKey):
|
|
self.internal_key = bytearray.fromhex(
|
|
"69D74627D985EE2187161570D08D93B12455035B6DF0D8205DF5"
|
|
)
|
|
self.key = MD5.new(eamuseKey + self.internal_key).digest()
|
|
|
|
def decrypt(self, data):
|
|
return ARC4.new(self.key).decrypt(bytes(data))
|
|
|
|
def encrypt(self, data):
|
|
return ARC4.new(self.key).encrypt(bytes(data))
|