Skip to content

Commit

Permalink
Replace pycryptodome (#16)
Browse files Browse the repository at this point in the history
Replace pycryptodome with just ARC4 library
  • Loading branch information
vojtechjelinek authored Oct 1, 2024
1 parent a787d22 commit 847f240
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 32 deletions.
4 changes: 2 additions & 2 deletions maldump/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Convenience utils for use in avs and parsers
"""

from Crypto.Cipher import ARC4
from arc4 import ARC4


def xor(plaintext: bytes, key: bytes) -> bytes:
Expand All @@ -18,5 +18,5 @@ def __init__(self, key: bytes) -> None:
self.key = bytes(key)

def decode(self, plaintext: bytes) -> bytes:
cipher = ARC4.new(self.key)
cipher = ARC4(self.key)
return cipher.decrypt(plaintext)
57 changes: 28 additions & 29 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dependencies = [
"colorama==0.4.6",
"defusedxml==0.7.1",
"kaitaistruct==0.10",
"pycryptodome==3.20.0",
"arc4==0.4.0",
"types-colorama==0.4.15.12",
]
requires-python = ">=3.8"
Expand Down

0 comments on commit 847f240

Please sign in to comment.