Skip to content

add salt for hashing#7

Open
verjiniaM wants to merge 1 commit into
ASPP:mainfrom
verjiniaM:feature/salt
Open

add salt for hashing#7
verjiniaM wants to merge 1 commit into
ASPP:mainfrom
verjiniaM:feature/salt

Conversation

@verjiniaM

Copy link
Copy Markdown

Added a random number generator as salt

@jakobj jakobj left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome, thanks! 🚀

left a comment that should be addressed before merging

Comment thread auth.py
json.dump(pwdb, pwdb_file)

def pwhash(password):
def pwhash(password, salt):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in this implementation, the pwhash function needs to be "aware" of the fact that you're using hashing. could you think of a way to avoid this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants