Skip to content

Support alternate hash algorithms #14

merged 4 commits into from Jan 17, 2013

2 participants


This PR allows for alternate hash algorithms to be used to obscure the email address. It is backwards compatible if one is not specified, and will use hmac if a hash_secret is provided in the .ini file.

It adds gravatar support so the email address will be hashed the same way a gravatar email will be, and be compatible with this implementation.


Add the following to your .ini file

hash_algorithm = gravatar

The hash_algorithm can be one of: none, hmac, gravatar. If hmac is selected, a hash_secret must be provided as before.

This PR has passed the test suite :) I have yet to fully test using build_couchdb as build_couchdb is not recognizing any plugins.


OK, I have tested this in build_couchdb and it works for no hash_algorithm, and hash_algorithm = hmac, gravatar, and none. Should be ok to pull with a review.

@jhs jhs merged commit a8fa6a9 into iriscouch:master Jan 17, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.