This tool is used to generate secure tokens for voter verification in elections.
git clone https://github.com/socrse/election-tokens.git
cd election-tokens
poetry install
First generate the membership list from WhiteFuse 'people' and 'subscriptions' exports:
poetry run election-tokens filter-whitefuse --people export-people-2021-09-07.csv --subscriptions export-subscriptions-2021-09-07.csv -o subs.csv
Then copy and fill in the example settings.ini
file.
The missing values are the email address and name of the sender and an email password.
To generate an email password, see the Google documentation on Using the Gmail SMTP server.
cp example-settings.ini settings.ini
nano settings.ini
Finally generate and send tokens for each address in the membership list:
poetry run election-tokens generate -i subs.csv -o tokens.txt
MIT © Society of Research Software Engineering