This repository has been archived on 2024-01-11. You can view files and clone it, but cannot push or open issues or pull requests.
gitea/cmd
zeripath 61b89747ed
Provide the ability to set password hash algorithm parameters (#22942)
This PR refactors and improves the password hashing code within gitea
and makes it possible for server administrators to set the password
hashing parameters

In addition it takes the opportunity to adjust the settings for `pbkdf2`
in order to make the hashing a little stronger.

The majority of this work was inspired by PR #14751 and I would like to
thank @boppy for their work on this.

Thanks to @gusted for the suggestion to adjust the `pbkdf2` hashing
parameters.

Close #14751

---------

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2023-02-19 15:35:20 +08:00
..
admin.go Add command to bulk set must-change-password (#22823) 2023-02-14 16:12:19 -06:00
admin_auth_ldap.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
admin_auth_ldap_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
admin_user.go Add command to bulk set must-change-password (#22823) 2023-02-14 16:12:19 -06:00
admin_user_change_password.go Provide the ability to set password hash algorithm parameters (#22942) 2023-02-19 15:35:20 +08:00
admin_user_create.go Provide the ability to set password hash algorithm parameters (#22942) 2023-02-19 15:35:20 +08:00
admin_user_delete.go Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00
admin_user_generate_access_token.go Add command to bulk set must-change-password (#22823) 2023-02-14 16:12:19 -06:00
admin_user_list.go Add command to bulk set must-change-password (#22823) 2023-02-14 16:12:19 -06:00
admin_user_must_change_password.go Add command to bulk set must-change-password (#22823) 2023-02-14 16:12:19 -06:00
cert.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
cmd.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
convert.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
docs.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
doctor.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
dump.go Improve utils of slices (#22379) 2023-01-11 13:31:16 +08:00
dump_repo.go Move convert package to services (#22264) 2022-12-29 10:57:15 +08:00
embedded.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
embedded_stub.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
generate.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
hook.go Implement actions (#21937) 2023-01-31 09:45:19 +08:00
hook_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
keys.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
mailer.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
main_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
manager.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
manager_logging.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
migrate.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
migrate_storage.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
migrate_storage_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
restore_repo.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
serv.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
web.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
web_acme.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
web_graceful.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
web_https.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00