File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed
Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ def scramble_native_password(password, message):
3434 if not password :
3535 return b""
3636
37- # lgtm[py/weak-sensitive-data-hashing]
3837 stage1 = sha1_new (password ).digest ()
3938 stage2 = sha1_new (stage1 ).digest ()
4039 s = sha1_new ()
@@ -58,11 +57,8 @@ def scramble_caching_sha2(password, nonce):
5857 return b""
5958
6059 # MySQL protocol specified SHA256 usage - not for password storage
61- # lgtm[py/weak-sensitive-data-hashing]
6260 p1 = hashlib .sha256 (password ).digest () # nosec B324
63- # lgtm[py/weak-sensitive-data-hashing]
6461 p2 = hashlib .sha256 (p1 ).digest () # nosec B324
65- # lgtm[py/weak-sensitive-data-hashing]
6662 p3 = hashlib .sha256 (p2 + nonce ).digest () # nosec B324
6763
6864 res = bytearray (p1 )
You can’t perform that action at this time.
0 commit comments