Skip to content

Add bcrypt hashing option - #1212

Merged
janl merged 1 commit into
masterfrom
bcrypt
Mar 8, 2018
Merged

Add bcrypt hashing option#1212
janl merged 1 commit into
masterfrom
bcrypt

Conversation

@janl

@janl janl commented Mar 8, 2018

Copy link
Copy Markdown
Member

Follow up for #1160

@janl janl added this to the 2.2.0 milestone Mar 8, 2018
@janl
janl merged commit 817b2b6 into master Mar 8, 2018
@janl
janl deleted the bcrypt branch March 8, 2018 17:39
++ Iterations).
++ Iterations);
hash_admin_password("bcrypt", ClearPassword) ->
LogRounds = list_to_integer(config:get("couch_httpd_auth", "log_rounds", "10")),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe try config:get_integer("couch_httpd_auth", "log_rounds", 10) here. Right above pbkdf2 doesn't do it but since we have get_integer/3 now it looks a bit cleaner.

Also 10 might look better as a define at the top of the module. Though again, pbkdf2's default value isn't one, so up to you.

@wohali
wohali restored the bcrypt branch July 18, 2018 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants