protected-github-pages icon indicating copy to clipboard operation
protected-github-pages copied to clipboard

Prefix input to make hash lookup harder

Open tomlankhorst opened this issue 4 years ago • 0 comments

Right now, sha1(input) is exposed in the URL. For short and well-known passwords, hashes can be looked up easily. E.g. https://www.google.com/search?q=5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8 This URL exposes the password, and it's saved in browsing history. By prefixing the password with a string, such lookups are harder.

This breaks existing passwords.

Far better would be a real salt, but that would require the salt state to be embedded in the page (https://en.wikipedia.org/wiki/Salt_(cryptography)).

tomlankhorst avatar Dec 09 '21 16:12 tomlankhorst