Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Name hashing improvements #4

Open
richfitz opened this issue Jul 9, 2018 · 4 comments
Open

Name hashing improvements #4

richfitz opened this issue Jul 9, 2018 · 4 comments

Comments

@richfitz
Copy link

richfitz commented Jul 9, 2018

see https://github.com/imperialebola2018/names/blob/50f775abc2fe88da9109f5f1518f7942aa2fe40f/functions.R#L65-L83

  • don't use digest for cryptographic purposes
  • consider using a slow hash function to make table attacks infeasable (this is really quite slow though!)
  • allow salt to be saved between sessions without being recorded in the script

there is also (incomplete) work allowing

  • substitutions to be used to patch names - a more flexible version of the name scrubbing
  • comparing the hashed and clear names so that the person doing the hashing can see what has been missed
@thibautjombart
Copy link
Contributor

Thanks for this. Any hope you could PR these changes before the end of July by any chance? ;)

@dirkschumacher
Copy link
Member

dirkschumacher commented Sep 28, 2018

Ah, just posted a similiar issue without seeing this here #6 🙈

@richfitz what lib would you suggest. libsodium?

I am happy to work on a PR

@dirkschumacher
Copy link
Member

sodium has hmac hashing build it.

@dirkschumacher
Copy link
Member

dirkschumacher commented Oct 3, 2018

@richfitz Thibaut merged my PR. Do you have any other suggestions? The PR does not cover the full list of suggested features, but it uses scrypt and maintains the same interface as before.

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

No branches or pull requests

3 participants