Added .tokeiignore

This commit is contained in:
Mawoka
2022-06-24 19:35:25 +02:00
parent 20c0b67f2f
commit c85172f8c3
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -0,0 +1,2 @@
*.y*ml
*.json
+1 -1
View File
@@ -96,7 +96,7 @@ def _mint(challenge, bits):
hex_digits = int(ceil(bits / 4.0))
zeros = "0" * hex_digits
while 1:
digest = hashlib.sha1(
digest = hashlib.sha1( # skipcq: PYL-E1123, PTC-W1003
(challenge + hex(counter)[2:]).encode(), usedforsecurity=False # skipcq: PYL-E1123, PTC-W1003
).hexdigest()
if digest[:hex_digits] == zeros: