Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58f6058 commit 9e91f3aCopy full SHA for 9e91f3a
1 file changed
python/ql/test/library-tests/frameworks/stdlib/test_md5.py
@@ -27,3 +27,12 @@
27
hasher.update(b"secret") # $ CryptographicOperation CryptographicOperationInput=b"secret" CryptographicOperationAlgorithm=MD5
28
hasher.update(b" message") # $ CryptographicOperation CryptographicOperationInput=b" message" CryptographicOperationAlgorithm=MD5
29
print(hasher.hexdigest())
30
+
31
32
+def foo(arg):
33
+ hasher = hashlib.new(arg)
34
+ hasher.update(b"secret") # $ MISSING: CryptographicOperation CryptographicOperationInput=b"secret" CryptographicOperationAlgorithm=MD5
35
+ hasher.update(b" message") # $ MISSING: CryptographicOperation CryptographicOperationInput=b" message" CryptographicOperationAlgorithm=MD5
36
+ print(hasher.hexdigest())
37
38
+foo("md5")
0 commit comments