5 lines
98 B

import hashlib
def encrypt(string: str):
return hashlib.sha256(string.encode()).hexdigest()