Skip to content

Commit e5fb5ce

Browse files
committed
Revert "Fix CodeQL suppression syntax to use correct format"
This reverts commit 66a3220.
1 parent 66a3220 commit e5fb5ce

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

aiomysql/_auth_native.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)