pyciphersweet
Python implementation of ciphersweet
This is a very early stage implementation of ciphersweet from https://github.com/paragonie/ciphersweet Please do not attempt to use this in production yet, as I'm not sure if everything works. There are tests that match the original ciphersweet tests and those tests are currently passing.
Currently, only the "modern" modes are supported.
Here is an example of how to create an encrypted field of the last four digits of a number:
import ciphersweet
import secrets
nacl_key = secrets.token_bytes(32)
field = ciphersweet.EncryptedField(
base_key=nacl_key,
table='contacts',
field='ssn',
)
t = ciphersweet.Transformation.last_four_digits
field.add_blind_index('contact_ssn_last_four', t, output_length=16, fast=True)
index = field.get_blind_index('hello', name='contact_ssn_last_four')
print(index['value'])
For documentation on how this works, look into the original ciphersweet project.
Metadata
Release files for ciphersweet 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ciphersweet-0.1.1.tar.gz | 4.3 kB | Without provenance | Details for ciphersweet-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ciphersweet-0.1.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for ciphersweet-0.1.1-py2.py3-none-any.whl |
Total release size: 13.8 kB
Release files / ciphersweet-0.1.1.tar.gz
| Download URL | ciphersweet-0.1.1.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b3718211ccfa1d4a9cc8cf45d164bc8c617315451a795c0f6becdc88b47e09f7
|
|
BLAKE2b-256 checksum How to use checksums |
2aaa30d1101f02b5346d999b0d75ee779fde29dec40553028211ee794051b3d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/0.11.5 CPython/3.6.5 Darwin/17.7.0
|
Release files / ciphersweet-0.1.1-py2.py3-none-any.whl
| Download URL | ciphersweet-0.1.1-py2.py3-none-any.whl |
|---|---|
| Size | 9.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
ce8a8c2da637b308ab65eb7903d2886d539dc2976cf69c057bc525dc7f61b5ff
|
|
BLAKE2b-256 checksum How to use checksums |
6a1a24fa99e88f4fc21d3d1cc824fa5120a11a2d4900924d2c1dad96b8fb335f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/0.11.5 CPython/3.6.5 Darwin/17.7.0
|
Security for ciphersweet 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.