mirror of
https://github.com/lnbits/lnbits.git
synced 2026-08-19 13:27:39 +02:00
5 lines
98 B
Python
5 lines
98 B
Python
import hashlib
|
|
|
|
|
|
def encrypt(string: str):
|
|
return hashlib.sha256(string.encode()).hexdigest()
|