Commit Graph

10 Commits

Author SHA1 Message Date
Ignacio Gómez 81b60ac724
Fix pw keylen/shasize use. 2020-07-21 21:40:06 -04:00
Ignacio Gómez aa487a9a05
Refactor hashing: add support for bcrypt and argond2id hashers.
Fix cache security issue.
2020-07-13 23:21:26 -04:00
Ignacio Gómez 8f7c97a5e6
Fix pw print. 2020-05-21 17:38:35 -04:00
Chris Bradford 6f4d57c66a Re-sync upstream 2020-04-26 18:26:11 +01:00
Ignacio Gómez 00e21013c5
Refactor weird error names and log line breaks. Check for hash split length. 2020-02-22 01:16:41 -03:00
Chris Bradford dd6004706d Add error handling for base64 DecodeString operations
Modify pw to use 0 for default key length, which will then cause algorithum default hash size to be used, vs hard-coded default of '32'

Make salt_encoding option plugin specific by adding plugin prefix
2020-01-18 09:22:36 +00:00
Chris Bradford 44f274e7a3 Add 'salt_encoding' option to plugin
Updated HashCompare to use new saltEncoding param, defaults to 'base64' and accepts 'utf-8' as alternative as-is (can easily be extended)
Add automatic key length setting to HashCompare, to accomodate non-standard hash lengths in comparison
Updated HashCompare compare calls across *all* plugins to use salt encoding param, either from supplied 'salt_encoding' option or defaulting to 'base64'
Updated pw util to include flags for salt encoding (default base64) and key length (default 64).
2020-01-16 21:36:36 +00:00
Ignacio Gómez 073dbe547a Add salt size flag to pw. 2019-11-15 19:18:14 -03:00
Ignacio Gómez 6bfbf99021 Fixed import paths and added test to make. 2017-12-11 12:18:21 -03:00
Ignacio Gómez f495575225 Added password generator. Finished and tested files, postgres and jwt backends. 2017-11-30 12:20:00 -03:00