Files
codeql/java/ql/test/library-tests/Encryption/insecure.ql
2024-11-29 11:54:27 +00:00

11 lines
320 B
Plaintext

import default
import semmle.code.java.security.Encryption
from StringLiteral s, string reason
where
s.getValue().regexpMatch(getInsecureAlgorithmRegex()) and
if exists(getInsecureAlgorithmReason(s.getValue()))
then reason = getInsecureAlgorithmReason(s.getValue())
else reason = "<no reason>"
select s, reason