Skip to content

Commit

Permalink
Use a default pepper value for Linting purpose
Browse files Browse the repository at this point in the history
  • Loading branch information
Vianpyro committed Nov 17, 2024
1 parent b44ebb0 commit 07e3305
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 @@ -16,7 +16,7 @@

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

Expand Down

0 comments on commit 07e3305

Please sign in to comment.