Skip to main content

Asherah envelope encryption and key rotation library

Project description

asherah-python

Asherah envelope encryption and key rotation library

This is a wrapper of the Asherah Go implementation using the Cobhan FFI library

Example code:

from asherah import Asherah, AsherahConfig

config = AsherahConfig(
    kms_type='static',
    metastore='memory',
    service_name='TestService',
    product_id='TestProduct',
    verbose=True,
    session_cache=True
)
crypt = Asherah()
crypt.setup(config)

data = b"mysecretdata"

encrypted = crypt.encrypt("partition", data)
print(encrypted)

decrypted = crypt.decrypt("partition", encrypted)
print(decrypted)

Project details


Download files

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

Source Distribution

asherah-0.1.0.tar.gz (24.5 MB view hashes)

Uploaded Source

Built Distribution

asherah-0.1.0-py3-none-any.whl (24.6 MB view hashes)

Uploaded Python 3

Supported by

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