We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d79a253 commit 51f3f15Copy full SHA for 51f3f15
1 file changed
ruby/ql/test/query-tests/security/cwe-327/weak_hashing.rb
@@ -15,11 +15,11 @@
15
def get_safe_data()
16
return "hello"
17
end
18
+
19
def get_password()
20
return "changeme"
21
22
-# FIXME
23
Digest::MD5.hexdigest(get_safe_data()) # OK: input is not sensitive
24
Digest::MD5.hexdigest(get_password()) # BAD: weak hash function used for sensitive data
25
0 commit comments