userhash/README.md

33 lines
835 B
Markdown
Raw Permalink Normal View History

2021-08-09 18:43:40 +03:00
# userhash
2021-08-09 17:43:06 +03:00
2021-08-09 18:19:10 +03:00
Generate pseudonyms for user profiles based on hashing of user data.
2022-01-11 17:29:13 +03:00
Any text file (CSV, JSONL, TXT) with user data is read line by line.
Every line hashed using the scrypt algorithm.
A salt of at least 16 bytes must be used.
2021-08-09 18:19:10 +03:00
## Requirements
Tested to work with Python 3.6
Either Python 3.6 with OpenSSL 1.1+ or py-scrypt is required.
```bash
pip install scrypt
2021-08-09 18:19:10 +03:00
```
2022-01-11 17:29:13 +03:00
2021-08-09 18:19:10 +03:00
## Usage/Examples
See help for more information:
```sh
2021-08-09 18:43:40 +03:00
python3 userhash.py -h
2021-08-09 18:19:10 +03:00
```
## Authors
- [Anton Kasimov](https://gitea.radium.group/toxa)
## Refferences
- [The scrypt Password-Based Key Derivation Function](https://datatracker.ietf.org/doc/rfc7914/) (RFC 7914)
- [Stronger key derivation via sequentialmemory-hard functions](http://www.tarsnap.com/scrypt/scrypt.pdf) by [Colin Percival](https://en.wikipedia.org/wiki/Colin_Percival)