2
0
mirror of https://github.com/status-im/status-desktop.git synced 2025-01-20 11:29:20 +00:00

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

12
scripts/password-hash.py Normal 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')