diff options
author | Florian Zschocke <florian.zschocke@devolo.de> | 2019-11-05 13:06:07 +0100 |
---|---|---|
committer | Florian Zschocke <florian.zschocke@devolo.de> | 2019-11-05 13:06:07 +0100 |
commit | 4068b152e530305f588bd56e753045936e87ede0 (patch) | |
tree | d564e1914b06a5f4ceaba4b8485722f39561646d /releases.moxie | |
parent | c7f75029fc4da931c16dfe24764656f28c2ca399 (diff) | |
download | gitblit-4068b152e530305f588bd56e753045936e87ede0.tar.gz gitblit-4068b152e530305f588bd56e753045936e87ede0.zip |
Add a PasswordHash class as a central place to deal with password hashes.
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.
Diffstat (limited to 'releases.moxie')
0 files changed, 0 insertions, 0 deletions