initial commit

This commit is contained in:
2023-02-13 15:42:53 +00:00
commit e341625a66
7 changed files with 113 additions and 0 deletions

14
3/keygen.py Normal file
View File

@ -0,0 +1,14 @@
import hashlib
username = input("Enter your username: ")
print(f"\nUsername: {username}")
hash = int(hashlib.sha256(bytes(username, encoding="ascii")).hexdigest()[-8:], base=16)
print(f"SHA256-derived bytes: {hex(hash)}")
target = hash ^ 0x2faecb0d
print(f"Target bytes: {hex(target)}")
password = target ^ 0xa2f99eae
print(f"Your password: {hex(password)[2:]}")