CLK Hash
clkhash is a Python implementation of cryptographic linkage key hashing as described by Rainer Schnell, Tobias Bachteler, and Jörg Reiher in A Novel Error-Tolerant Anonymous Linking Code.
Installation
Install clkhash with all dependencies using pip:
pip install clkhash
Documentation
https://clkhash.readthedocs.io
Python API
To hash a CSV file of entities using the default schema:
from clkhash import clk, randomnames
fake_pii_schema = randomnames.NameList.SCHEMA
clks = clk.generate_clk_from_csv(open('fake-pii-out.csv','r'), 'secret', fake_pii_schema)
Command Line Interface
See Anonlink Client for a command line interface to clkhash.
Citing
Clkhash, and the wider Anonlink project is designed, developed and supported by CSIRO's Data61. If you use any part of this library in your research, please cite it using the following BibTex entry::
@misc{Anonlink,
author = {CSIRO's Data61},
title = {Anonlink Private Record Linkage System},
year = {2017},
publisher = {GitHub},
journal = {GitHub Repository},
howpublished = {\url{https://github.com/data61/clkhash}},
}
Metadata
Release files for clkhash 0.18.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| clkhash-0.18.3.tar.gz | 1.7 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| clkhash-0.18.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 3.4 MB
Release files / clkhash-0.18.3.tar.gz
| Download URL | clkhash-0.18.3.tar.gz |
|---|---|
| Size | 1.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5418a8d191c779566bb838ab1e67cc13d7c5cdf0737d042cdc4a267a02f3b446
|
|
BLAKE2b-256 checksum How to use checksums |
9e8e771093c8c2621a3e368e0761044df71c9a4c6841eef8f7f8537aa2565526
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Release files / clkhash-0.18.3-py3-none-any.whl
| Download URL | clkhash-0.18.3-py3-none-any.whl |
|---|---|
| Size | 1.7 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bf347d4596b4387e296883fb1f1f1b103743d0a10c4c3a6443238ce4946ba121
|
|
BLAKE2b-256 checksum How to use checksums |
e3d9a2fa1e65dcec2bea5b14684a2fda1f6e6c65726bbeab08215711de185086
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|