Repository navigation
Add scramble_323_with_hash - #202
Open
MattJackson wants to merge 1 commit into
Open
MattJackson wants to merge 1 commit into
MattJackson wants to merge 1 commit into
Conversation
scramble_323_with_hash computes the mysql_old_password response from the password hash
returned by hash_password (the OLD_PASSWORD() value) instead of the password, so a client
that only keeps the hash can answer the challenge. scramble_323 now calls it and returns
the same bytes as before. Tests pin OLD_PASSWORD('password') and a scramble for it, and
check that both functions agree.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
scramble_323_with_hash, which computes themysql_old_passwordchallenge response from the password hash returned byhash_password(theOLD_PASSWORD()value) instead of from the plaintext password.This lets a client or proxy that stores only the hash answer the challenge without keeping the plaintext password in memory.
scramble_323now hashes the password and delegates to the new function. Its output is unchanged.Tests pin
OLD_PASSWORD('password')and a known scramble for it, and check that both functions produce the same bytes.