bcrypt: add cost parameter to hash-password (#7149)

* feat: add bcrypt cost parameter to hash-password

* revert: typos

* refactor: take the cost out of interface

* fix: default bcrypt cost to 14

* fix: follow bcrypt library for min and max cost

* doc: mention defaultBcryptCost in cost parameter description

* chore: gci format

* fix: more specific bcrypt cost algorithm flag

* feat: bcrypt cost provisioning

* Revert "feat: bcrypt cost provisioning"

This reverts commit e09d4bd036.

* chore: gci format

* chore: gci format

* chore: gci format

* chore: golangcilint fmted

---------

Co-authored-by: Mohammed Al Sahaf <msaa1990@gmail.com>
This commit is contained in:
GreyXor
2025-08-11 13:26:18 +02:00
committed by GitHub
parent 19ff47a63b
commit 49dac61b07
4 changed files with 30 additions and 8 deletions
-1
View File
@@ -122,7 +122,6 @@ func TestPreferOrder(t *testing.T) {
}
}
func TestValidate(t *testing.T) {
type testCase struct {
name string