by devit · 8y ago · 0 comments
All issues with reused passwords, password strength, hashing passwords with slow hashes, etc. instantly solved.
Also improves conversion rate since there's no risk the user gives up signing up because he can't be bothered to think about or generate a password.
Sure, but there's considerable risk of the user giving up signing up because they can't be bothered with memorizing a random password and want to set their own like every other service allows them.
When they need to change devices, have the standard e-mail based password reset as well as "show password" in the account settings (make the password reset not reset login, unless the user explicitly elects to "log me out on all devices").
[0]: https://developer.mozilla.org/en-US/docs/Archive/Mozilla/Per...
You should not be able to do that if you're doing security properly. If you can show the password it means you're not hashing it properly and instead storing it as plaintext
2. You can encrypt the passwords with a key outside of the database instead of hashing them. That means that people can now login with a read-only compromise of both your app and the database, but chances are that such a compromise would be a full compromise anyway.
3. You can also not show them the current password, but instead generate another one and have them both be valid (until explicitly revoked)
Edit: Answering to myself, maybe by generating the random password client-side, with JavaScript, and making the HTML input field non-editable. I've not tested it.