Skip to main content

CLK Hash

Clkhash Logo

codecov Documentation Status Unit Testing Typechecking Downloads

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)

Source distribution for clkhash 0.18.3
File Size Uploaded
clkhash-0.18.3.tar.gz 1.7 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for clkhash 0.18.3
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.18.3 This release

2 release files

0.18.2

2 release files

0.18.1

2 release files

0.18.0

2 release files

0.17.0

2 release files

0.16.1

2 release files

0.15.2

2 release files

0.15.1

2 release files

0.15.0

2 release files

0.14.0

2 release files

0.13.0

2 release files

0.12.0

2 release files

0.11.3

2 release files

0.11.2

2 release files

0.11.1

2 release files

0.11.0

2 release files

0.10.1

2 release files

0.9.0

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page