You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/models
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>
2 years ago
..
actions Fix ref to trigger Actions (#22679) 2 years ago
activities Rename `repo.GetOwner` to `repo.LoadOwner` (#22967) 2 years ago
admin Implement FSFE REUSE for golang files (#21840) 2 years ago
asymkey Increase Content field size of gpg_key_import to MEDIUMTEXT (#22897) 2 years ago
auth Support scoped access tokens (#20908) 2 years ago
avatars Add context cache as a request level cache (#22294) 2 years ago
db Move delete user to service (#22478) 2 years ago
dbfs Add some comments for recent code (#22725) 2 years ago
fixtures Provide the ability to set password hash algorithm parameters (#22942) 2 years ago
git Rename `repo.GetOwner` to `repo.LoadOwner` (#22967) 2 years ago
issues Scoped labels (#22585) 2 years ago
migrations Scoped labels (#22585) 2 years ago
organization Add context cache as a request level cache (#22294) 2 years ago
packages Use link in UI which returned a relative url but not html_url which contains an absolute url (#21986) 2 years ago
perm Rename `repo.GetOwner` to `repo.LoadOwner` (#22967) 2 years ago
project Preview images for Issue cards in Project Board view (#22112) 2 years ago
pull refactor some functions to support ctx as first parameter (#21878) 2 years ago
repo Rename `repo.GetOwner` to `repo.LoadOwner` (#22967) 2 years ago
secret Secrets storage with SecretKey encrypted (#22142) 2 years ago
system Add context cache as a request level cache (#22294) 2 years ago
unit Repositories: by default disable all units except code and pulls on forks (#22541) 2 years ago
unittest Implement actions (#21937) 2 years ago
user Provide the ability to set password hash algorithm parameters (#22942) 2 years ago
webhook Support system hook API (#14537) 2 years ago
error.go Implement FSFE REUSE for golang files (#21840) 2 years ago
fixture_generation.go Implement FSFE REUSE for golang files (#21840) 2 years ago
fixture_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
main_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
migrate.go Check primary keys for all tables and drop ForeignReference (#21721) 2 years ago
migrate_test.go Check primary keys for all tables and drop ForeignReference (#21721) 2 years ago
org.go refactor some functions to support ctx as first parameter (#21878) 2 years ago
org_team.go Supports wildcard protected branch (#20825) 2 years ago
org_team_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
org_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
repo.go Implement actions (#21937) 2 years ago
repo_collaboration.go refactor some functions to support ctx as first parameter (#21878) 2 years ago
repo_collaboration_test.go Rename `repo.GetOwner` to `repo.LoadOwner` (#22967) 2 years ago
repo_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
repo_transfer.go Always reuse transaction (#22362) 2 years ago
repo_transfer_test.go Rename almost all Ctx functions (#22071) 2 years ago