summaryrefslogtreecommitdiffstats
path: root/src/test/java/com/gitblit/utils/PasswordHashTest.java
Commit message (Collapse)AuthorAgeFilesLines
* Add more PasswordHash tests with strings beyond iso-8859-1.Florian Zschocke2019-11-061-1/+31
|
* Use the new PasswordHash classes.Florian Zschocke2019-11-051-0/+40
| | | | | | Integrate the `PasswordHash` class and subclass in the user and password editing and authentication. Replaces the old code and the previous `SecurePasswordHashingUtils` class.
* Add support for PBKDF2 to PasswordHashFlorian Zschocke2019-11-051-5/+181
| | | | | | | | Integrate the work of pingunaut to add support for PBKDF2 password hashing. A new class `PasswordHashPbkdf2` is added, which builds on his `SecurePasswordHashUtils` class, but makes it a subclass of `PasswordHash`. This will replace the original class when integrating the new PasswordHash way into GitBlit.
* Add a PasswordHash class as a central place to deal with password hashes.Florian Zschocke2019-11-051-0/+420
Instead of having to deal with the implementation details of hashing and verifying passwords in multiple places, have a central unit be responsible for it. Otherwise we need to edit three different places when adding a new hashing scheme. With this class adding a new hashing scheme just requires creating a new subclass of `PasswordHash` and registering its type in the enum `PasswordHash.Type`. The rest of the code will use a common interface for all hashing schemes and doesn't need to be changed when a new one is added.