refactor: move encrypt() function to helpers

This commit is contained in:
Eneko Illarramendi
2019-12-13 17:59:40 +01:00
parent 3d3632a06f
commit 7c6c7a2bf6
2 changed files with 21 additions and 18 deletions
+5
View File
@@ -0,0 +1,5 @@
import hashlib
def encrypt(string: str):
return hashlib.sha256(string.encode()).hexdigest()