Files
codeql/python/ql/test/query-tests/Security/CWE-326/test_example.py
2021-02-19 15:04:14 +01:00

10 lines
242 B
Python

from Cryptodome.PublicKey import RSA
from weak_crypto import only_used_by_test
def test_example():
# This is technically not ok, but since it's in a test, we don't want to alert on it
RSA.generate(1024)
only_used_by_test(1024)