moveonorg / email2hash Goto Github PK
View Code? Open in Web Editor NEWPython script to securely hash the emails in a given CSV file
License: BSD 3-Clause "New" or "Revised" License
Python script to securely hash the emails in a given CSV file
License: BSD 3-Clause "New" or "Revised" License
We are currently sorting the list of hashes and then outputting the list to a file. We outline the reasons for doing so in the spec:
The script computes the HMAC (see 4 below) for each email address in the
CSV file and saves it to a list. The list is then sorted to make it easier
to check for overlap and to hide the information about member activity
before being written to disk.
Instead of doing this, we should preserve the order in which the email addresses were hashed (as we were doing earlier) and append the line number in front of them, like this:
1,<hash-1>
2,<hash-2>
The benefits of this:
and the hashed list is:
1,<hash-1>
2,<hash-2>
It's easy to compare the overlap by checking the index and matching it to find the corresponding email address.
The timer should start when the hashing starts, and not when the script starts running.
We shouldn't be supporting any hashing algorithm older than SHA3. Perhaps we could support BLAKE2 as well but not required currently. Let's make SHA3 256
default for now.
We currently ask the user to input a secret key. We should automatically do that for them if they don't want to choose their own.
Dependabot couldn't find a requirements.txt for this project.
Dependabot requires a requirements.txt to evaluate your project's current Python dependencies. It had expected to find one at the path: /requirements.txt
.
If this isn't a Python project, or if it is a library, you may wish to disable updates for it from within Dependabot.
You can mention @dependabot in the comments below to contact the Dependabot team.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.