make keygen a bit neater
This commit is contained in:
parent
e341625a66
commit
76aec13bff
@ -1,10 +1,9 @@
|
||||
import hashlib
|
||||
|
||||
username = input("Enter your username: ")
|
||||
|
||||
print(f"\nUsername: {username}")
|
||||
|
||||
hash = int(hashlib.sha256(bytes(username, encoding="ascii")).hexdigest()[-8:], base=16)
|
||||
hash = int.from_bytes(hashlib.sha256(bytes(username, encoding="ascii")).digest()[-4:], "big")
|
||||
print(f"SHA256-derived bytes: {hex(hash)}")
|
||||
|
||||
target = hash ^ 0x2faecb0d
|
||||
|
Loading…
Reference in New Issue
Block a user