Added manga-py source
This commit is contained in:
16
manga-py-stable_1.x/manga_py/crypt/kissmanga_com.py
Normal file
16
manga-py-stable_1.x/manga_py/crypt/kissmanga_com.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from .base_lib import BaseLib
|
||||
from sys import stderr
|
||||
|
||||
|
||||
class KissMangaComCrypt(BaseLib):
|
||||
|
||||
def decrypt(self, iv, key, data):
|
||||
iv = self.encode_hex(iv)
|
||||
key = self.to_sha_256(key)
|
||||
data = self.base64decode(data)
|
||||
|
||||
try:
|
||||
return self.decrypt_aes(iv, key, data)
|
||||
except Exception as e:
|
||||
print(e, file=stderr)
|
||||
return False
|
||||
Reference in New Issue
Block a user