Skip to main content

Encoding utility to create Cryptographic Linkage Keys

Project description

CLK Hash

Python implementation of cryptographic longterm key hashing. clkhash supports Python versions 3.6+

This is as described by Rainer Schnell, Tobias Bachteler, and Jörg Reiher in A Novel Error-Tolerant Anonymous Linking Code

codecov Documentation Status Build Status Build Status Requirements Status Downloads


Install clkhash with all dependencies using pip:

pip install clkhash


clkhash 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)


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::

  author = {CSIRO's Data61},
  title = {Anonlink Private Record Linkage System},
  year = {2017},
  publisher = {GitHub},
  journal = {GitHub Repository},
  howpublished = {\url{}},

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for clkhash, version 0.16.1
Filename, size File type Python version Upload date Hashes
Filename, size clkhash-0.16.1-py2.py3-none-any.whl (1.7 MB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size clkhash-0.16.1.tar.gz (1.7 MB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page