Why Nostr? What is Njump?
2025-01-16 15:09:04

#1 trackball mouse enjoyer on Nostr: hey nprofile1q…tvdjy, sorry for the random ping, but i remember you talking about ...

hey , sorry for the random ping, but i remember you talking about this a few times before.

a website i use a fair bit (galaxy.click) currently uses bcrypt for passwords, but with a max password length of 128. i do know that bcrypt has a real max length of 72, where it truncates longer passwords, and the person who owns galaxy has some code ready to go to prevent setting new passwords >72 chars.

would a better solution be to hash the password before running it through bcrypt if the password is over the limit? i'm thinking of submitting a PR to handle this better than just changing the max length for new passwords and would like to do it correctly, and ideally we wouldn't have to like... change it in a way where old passwords would be broken/have to have hashes changed.
Author Public Key
npub1fvuqxg2nm2c7zutl75kxcx9xnvz89cq74xl04ekcwzm30x2f3l0s8ph7qz