Debian Codegraph @

README.md

raw
1 [![Pipeline](https://gitlab.com/coroner/cryptodatahub/badges/master/pipeline.svg)](https://gitlab.com/coroner/cryptodatahub/-/pipelines/master/latest)
2 [![Test Coverage](https://coveralls.io/repos/gitlab/coroner/cryptodatahub/badge.svg?branch=master)](https://coveralls.io/gitlab/coroner/cryptodatahub/)
3 [![Documentation](https://readthedocs.org/projects/cryptodatahub/badge/?version=latest)](https://cryptodatahub.readthedocs.io)
4
5 <!-- documentation-summary-start -->
6 **CryptoDataHub** is a repository of cryptography-related data available under a free license. The main goal of the
7 repository is to support cryptographic library tester and client/server cryptographic settings analyzer applications
8 such as [CryptoLyzer](https://cryptolyzer.readthedocs.io/) with reliable and freely available data.
9
10 **Use CryptoDataHub when you need algorithm identifiers** — public key, digital signature, key exchange, block cipher,
11 stream cipher, cryptographic hash, elliptic-curve, and message authentication code algorithms are available as
12 enumerations with their code points, names, and parameters.
13
14 **Use CryptoDataHub when you need Diffie-Hellman parameters** — both the finite field parameters defined by
15 [RFC 2539](https://www.rfc-editor.org/rfc/rfc2539.html#appendix-A),
16 [RFC 3526](https://www.rfc-editor.org/rfc/rfc3526.html),
17 [RFC 5114](https://www.rfc-editor.org/rfc/rfc5114.html), and
18 [RFC 7919](https://www.rfc-editor.org/rfc/rfc7919.html#appendix-A), and the ones built into Apache HTTP Server,
19 HAProxy, Postfix, ProFTPD, and socat.
20
21 **Use CryptoDataHub when you need trust stores** — the trusted root certification authority certificate stores of
22 Android, Apple, Google Chrome, Microsoft, Mozilla, OpenJDK, and Oracle, and the Certificate Transparency log list.
23
24 **Use CryptoDataHub when you need vulnerability data** — the algorithms and parameters affected by D(HE)at, Logjam,
25 Sweet32, Shatter, and Weak DH are marked in the data itself.
26 <!-- documentation-summary-end -->
27
28 <!-- documentation-strength-start -->
29 The strength of CryptoDataHub is that the data is machine-readable, versioned, and updated from its original sources by
30 the updaters shipped with the repository, so a consumer does not have to scrape registries, vendor pages, or trust
31 store exports on its own.
32 <!-- documentation-strength-end -->
33
34 ## Why CryptoDataHub?
35
36 <!-- documentation-comparison-start -->
37 - **Free license** — the data is available under the same license as the code, without a per-consumer agreement.
38 - **One source for several protocols** — protocol-independent algorithm data and the protocol-dependent attributes of
39 IKE, SSL, TLS, SSH, and DNSSEC live in one repository.
40 - **Wrapper included** — the data ships with a Python wrapper, so it can be consumed as typed enumerations instead of
41 as raw JSON.
42 - **Reproducible updates** — `update-ct-log` and `update-trust-stores` regenerate the data from its original sources.
43 <!-- documentation-comparison-end -->
44
45 ## Usage
46
47 ### uv
48
49 ```shell
50 uv add cryptodatahub
51 ```
52
53 ```python
54 from cryptodatahub.tls.algorithm import TlsCipherSuite
55
56 # look up a cipher suite by its code point
57 TlsCipherSuite.from_code(0x1301)
58 # TlsCipherSuite.TLS_AES_128_GCM_SHA256
59 ```
60
61 ## Support
62
63 **Python implementations**
64
65 - CPython 3.9+
66 - PyPy 3.9+
67
68 **Operating systems**
69
70 - Linux
71 - macOS
72 - Windows
73
74 ## Documentation
75
76 Detailed [documentation](https://cryptodatahub.readthedocs.io) is available on the project's
77 [Read the Docs](https://readthedocs.com) site.
78
79 ## License
80
81 The [code](https://gitlab.com/coroner/cryptodatahub) is available under the terms of
82 [Mozilla Public License Version 2.0](https://www.mozilla.org/en-US/MPL/2.0/) (MPL 2.0).
83
84 A non-comprehensive but straightforward description of MPL 2.0 can be found at the
85 [Choose an open source license](https://choosealicense.com/licenses#mpl-2.0) website.
86
87 ## Credits
88
89 - [NLnet Foundation](https://nlnet.nl) and [NGI Assure](https://www.assure.ngi.eu), supports the project part of the
90 [Next Generation Internet](https://ngi.eu) initiative.