Update java/ql/test/query-tests/security/CWE-532/Test.java

Co-authored-by: Owen Mansel-Chan <62447351+owen-mc@users.noreply.github.com>
This commit is contained in:
MarkLee131
2026-04-29 20:53:58 +08:00
committed by GitHub
parent f338ded349
commit 75162bb9eb

View File

@@ -28,7 +28,7 @@ class Test {
logger.info("hash: " + hashPassword(password)); // Safe - hashed
logger.info("hash: " + sha256Digest(authToken)); // Safe - digested
logger.info("enc: " + encryptValue(password)); // Safe - encrypted
logger.info("pw: " + password); // $ Alert - not hashed
logger.info("pw: " + password); // $ Alert // not hashed
}
static String hashPassword(String input) { return input; }