3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-22 03:49:27 +01:00
ergo/irc/passwd
Daniel Oaks bf04dc24f9 Upgrade password hashing.
Previously, we generated and prepended a long salt before generating
password hashes. This resulted in the hash verification cutting off long
before it should do. This form of salting is also not necessary with
bcrypt as it's provided by the password hashing and verification
functions themselves, so totally rip it out.

This commit also adds the functionality for the server to automagically
upgrade users to use the new hashing system, which means better
security and more assurance that people can't bruteforce passwords.

No need to apply a database upgrade to do this, whoo! \o/
2018-04-01 17:12:41 +10:00
..
salted_test.go Add tests to subpackages 2017-10-07 22:19:37 +10:00
salted.go Add tests to subpackages 2017-10-07 22:19:37 +10:00
unsalted_test.go Add tests to subpackages 2017-10-07 22:19:37 +10:00
unsalted.go Upgrade password hashing. 2018-04-01 17:12:41 +10:00