☰
Debian Codegraph
@
0.21.1+debian-1
0.21.0+debian-1
0.20.0+debian-1
0.18.0+debian-2
0.16.1+debian-1
/
/
testing
/
e2e
/
mqtt
/
shoutrrr-user-pw-hash.py
☽
☼
testing/e2e/mqtt/shoutrrr-user-pw-hash.py
code
plain
raw
MIT
2025-2026 Nick Fedor <
[email protected]
>
debian/copyright
1
import hashlib
2
import os
3
4
password = "testing"
5
salt = os.urandom(16).hex()
6
to_hash = salt + password
7
hash_hex = hashlib.sha256(to_hash.encode()).hexdigest()
8
9
print("Salt:", salt)
10
print("Password hash:", hash_hex)