WiFi-Passwort now generated internally and device-specific

This commit is contained in:
2024-06-04 22:10:22 +02:00
parent 3d090dceb1
commit 25f05ed832
6 changed files with 112 additions and 10 deletions

View File

@@ -0,0 +1,15 @@
import hashlib
SEED = "letmelubeyou"
def generate_password(seed, chip_id):
combined = seed + chip_id
hash_object = hashlib.md5(combined.encode())
return hash_object.hexdigest()[:16] # First 16 characters of the MD5 hash
if __name__ == "__main__":
chip_id = input("Enter the Chip ID in hex (e.g., 1A2B3C4D): ").strip()
chip_id = chip_id.zfill(8).upper() # Ensure it's 8 characters, upper case
password = generate_password(SEED, chip_id)
print(f"Generated Password: {password}")