Skip to content

Commit

Permalink
perf: ⚡️ speed up decrypt_key
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhaoQi99 committed Nov 5, 2024
1 parent a071ad1 commit dc928a1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pyencrypt/decrypt.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
from pathlib import Path
import os
from functools import lru_cache
from pathlib import Path

from pyencrypt.aes import aes_decrypt
from pyencrypt.ntt import intt


@lru_cache
def decrypt_key(cipher_key: str, d: int, n: int) -> str:
plain_ls = list()
for num in map(int, cipher_key.split("O")):
Expand Down

0 comments on commit dc928a1

Please sign in to comment.