File tree Expand file tree Collapse file tree
python/ql/test/experimental/library-tests/frameworks/stdlib Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55print (hasher .hexdigest ())
66
77
8+ hasher = hashlib .md5 (string = b"secret message" ) # $ MISSING: CryptographicOperation CryptographicOperationInput=b"secret message" CryptographicOperationAlgorithm=MD5
9+ print (hasher .hexdigest ())
10+
11+
812hasher = hashlib .md5 ()
913hasher .update (b"secret" ) # $ MISSING: CryptographicOperation CryptographicOperationInput=b"secret" CryptographicOperationAlgorithm=MD5
1014hasher .update (b" message" ) # $ MISSING: CryptographicOperation CryptographicOperationInput=b" message" CryptographicOperationAlgorithm=MD5
1519print (hasher .hexdigest ())
1620
1721
22+ hasher = hashlib .new ('md5' , data = b"secret message" ) # $ MISSING: CryptographicOperation CryptographicOperationInput=b"secret message" CryptographicOperationAlgorithm=MD5
23+ print (hasher .hexdigest ())
24+
25+
1826hasher = hashlib .new ('md5' )
1927hasher .update (b"secret" ) # $ MISSING: CryptographicOperation CryptographicOperationInput=b"secret" CryptographicOperationAlgorithm=MD5
2028hasher .update (b" message" ) # $ MISSING: CryptographicOperation CryptographicOperationInput=b" message" CryptographicOperationAlgorithm=MD5
You can’t perform that action at this time.
0 commit comments