Skip to content

Commit

Permalink
Change hash_password_with_salt_and_pepper function to return a tuple …
Browse files Browse the repository at this point in the history
…of hashed password and salt
  • Loading branch information
Vianpyro committed Nov 17, 2024
1 parent c8fee35 commit b44ebb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
ph = PasswordHasher()


def hash_password_with_salt_and_pepper(password: str) -> str:
def hash_password_with_salt_and_pepper(password: str) -> tuple[str, bytes]:
salt = os.urandom(16)
pepper = os.getenv("PEPPER").encode("utf-8")
seasoned_password = password.encode("utf-8") + salt + pepper
Expand Down

0 comments on commit b44ebb0

Please sign in to comment.