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:
parent
2890fe5845
commit
6f7c1c6b6a
12
scripts/password-hash.py
Normal file
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')
|
Loading…
x
Reference in New Issue
Block a user