Skip to main content

Python library for Cosmian Cloudproof

Project description

Cloudproof Python Library

PyPI version Build status

The library provides a Python API to the Cloudproof Encryption product of the Cosmian Ubiquitous Encryption platform.

Licensing

The library is available under a dual licensing scheme Affero GPL/v3 and commercial. See LICENSE.md for details.

Cryptographic primitives

The library is based on:

  • Covercrypt algorithm which allows creating ciphertexts for a set of attributes and issuing user keys with access policies over these attributes. Covercrypt offers Post-Quantum resistance.

  • Findex which is a cryptographic protocol designed to securely make search queries on an untrusted cloud server. Thanks to its encrypted indexes, large databases can

Getting started

This library requires Python >= 3.7.

To install the current release:

pip install cloudproof_py

Code examples are available in ./examples to get you started. Please check the online documentation for more details on using the CloudProof APIs.

Demo

An interactive CLI demo combining policy-based encryption with searchable keywords.

Users data from ./examples/cli_demo/data.json are encrypted using Covercrypt and indexed via Findex.

Try the demo:

examples/cli_demo/run_demo.sh

Building and testing

To build from source:

scripts/build.sh

To build and run the tests:

scripts/build.sh -t

With PyO3 packages from package.cosmian.com:

scripts/build.sh -it

Note: edit scripts/ci_install_pyo3_builds.sh with the right build name.

To build the documentation:

scripts/build.sh -d

The generated documentation will be in ./docs/_build/html.

Versions Correspondence

This library depends on Covercrypt and Findex.

This table shows the minimum version correspondence between the various components.

cloudproof_py Covercrypt Findex KMS
>=4.2.0 13.0.0 6.0.0 4.10.0
>=4.1.0 12.0.0 5.0.0 4.5.0
>=4.0.2 11.0.0 4.0.1 4.4.3
>=4.0.1 11.0.0 4.0.1 4.4.2
>=4.0.0 11.0.0 4.0.0,4.0.1 4.3.3
>=3.0.0 11.0.0 3.0.0 4.3.3
>=2.0.0 10.0.0 2.0.1,2.1.0 4.2.0
>=1.0.0 8.0.1 2.0.0 -

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cloudproof_py-4.2.0-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

File details

Details for the file cloudproof_py-4.2.0-py3-none-any.whl.

File metadata

  • Download URL: cloudproof_py-4.2.0-py3-none-any.whl
  • Upload date:
  • Size: 17.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.17

File hashes

Hashes for cloudproof_py-4.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0c426426b22cdd6bcc8ae1ba5103d381bc0ee933f7ba7a21440be4c999f0c926
MD5 0a1e6ee975c2bd55e53d155adbec6b47
BLAKE2b-256 3528f68984fd52f7df0c1ca70acfb1f7328b171c7cd866d84ff851220b55e16b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page