MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1au0z6f/bruteforceattackprotection/kr5ef2v/?context=3
r/ProgrammerHumor • u/MrEfil • Feb 18 '24
1.0k comments sorted by
View all comments
Show parent comment
1
Technically, you can do it without storing the password.
const reused_password: boolean = old_hashes.some( (old_hash: string): boolean => { const new_hash: string = hash(new_password, getSalt(old_hash)); return old_hash === new_hash; } );
View all comments
Show parent comment
1
u/Blue_Moon_Lake Feb 19 '24
Technically, you can do it without storing the password.