We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a071ad1 commit 2c68875Copy full SHA for 2c68875
pyencrypt/decrypt.py
@@ -1,9 +1,12 @@
1
-from pathlib import Path
2
import os
+from functools import lru_cache
3
+from pathlib import Path
4
+
5
from pyencrypt.aes import aes_decrypt
6
from pyencrypt.ntt import intt
7
8
9
+@lru_cache(maxsize=None)
10
def decrypt_key(cipher_key: str, d: int, n: int) -> str:
11
plain_ls = list()
12
for num in map(int, cipher_key.split("O")):
0 commit comments