mirror of
https://github.com/github/codeql.git
synced 2026-05-14 11:19:27 +02:00
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:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user