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.
Inital attempt of adding algorithm selection to hashing
Style cleanup (thanks dch). Add commented-out hash_algorithm to brows…
Use strings for matching. Shortin md5 format to 32
On example page, determine if the uerCtx.name is already hashed for t…
…he gravatar image
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.