solved rainbow

This commit is contained in:
2024-11-22 16:32:02 +09:00
parent a9761db4fe
commit 00b0afd17a
8 changed files with 95 additions and 9 deletions

View File

@ -56,6 +56,8 @@ def check_passwords(passwords: str, username: str) -> Result:
passwords = passwords.split(';')
hashes = calc_hashes(passwords, username)
stored = random_passwords[asyncio.current_task()]
print(random_passwords)
print(type(random_passwords))
if stored != hashes:
return f'Passwords do not match hashes {[h.hex() for h in password_store[username]]}'
return True