diff options
author | Rasmus Luha <rasmus.luha@gmail.com> | 2022-02-06 13:41:11 +0200 |
---|---|---|
committer | Rasmus Luha <rasmus.luha@gmail.com> | 2022-02-06 13:41:11 +0200 |
commit | 6a6afdbe72c626b01245c9372c9d10be79789bb0 (patch) | |
tree | cfdb5aea7538296bad0105c813fce4cd33c19ef5 /Projekt/app/utils.py | |
parent | 5e19a0569288de21365c61b0db78639880732dd0 (diff) |
restrucurring the stucture of the folderstruture --> structure
Diffstat (limited to 'Projekt/app/utils.py')
-rw-r--r-- | Projekt/app/utils.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/Projekt/app/utils.py b/Projekt/app/utils.py deleted file mode 100644 index 3cd58bf..0000000 --- a/Projekt/app/utils.py +++ /dev/null @@ -1,9 +0,0 @@ - -from passlib.context import CryptContext # passwordide hashimise jaoks - -pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto") -def hash(password: str): - return pwd_context.hash(password) - -def verify(plain_password, hashed_password): - return pwd_context.verify(plain_password, hashed_password) |