Files
codeql/python/ql/test/query-tests/Security/CWE-327/test_pycrypto.py

9 lines
204 B
Python

from Crypto.Cipher import ARC4
from secrets_store import get_password
def get_badly_encrypted_password():
dangerous = get_password()
cipher = ARC4.new(_, _)
return cipher.encrypt(dangerous)