-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from bescka/add_poetry
Add poetry
- Loading branch information
Showing
4 changed files
with
1,663 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,10 @@ | ||
from passlib.context import CryptContext | ||
|
||
|
||
pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto") | ||
from passlib.hash import bcrypt | ||
|
||
|
||
def verify_password(plain_password, hashed_password): | ||
if plain_password + "fake_hash" == hashed_password: | ||
return True | ||
else: | ||
return False | ||
|
||
|
||
# return pwd_context.verify(plain_password, hashed_password) | ||
return bcrypt.verify(plain_password, hashed_password) | ||
|
||
|
||
def get_password_hashed(password): | ||
return password + "fake_hash" | ||
# return pwd_context.hash(password) | ||
|
||
return bcrypt.hash(password) |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.