feat(scripts): Added python password hash script for manual database access

This commit is contained in:
Igor Sirotin 2023-01-16 14:36:39 +03:00 committed by Igor Sirotin
parent 2890fe5845
commit 6f7c1c6b6a
1 changed files with 12 additions and 0 deletions

12
scripts/password-hash.py Normal file
View File

@ -0,0 +1,12 @@
import sha3
import pyperclip
print("Type your password...")
password = input()
hasher = sha3.keccak_256()
hasher.update(password.encode())
hash = '0x' + hasher.hexdigest().upper()
pyperclip.copy(hash)
print(f'Hash: {hash} is copied to clipboard')