asherah


Nameasherah JSON
Version 0.3.5 PyPI version JSON
download
home_pagehttps://github.com/godaddy/asherah-python/
SummaryAsherah envelope encryption and key rotation library
upload_time2024-02-29 17:13:08
maintainerGoDaddy
docs_urlNone
authorJeremiah Gowdy
requires_python>=3.7,<4.0
licenseMIT
keywords encryption
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # asherah-python

Asherah envelope encryption and key rotation library

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

## Usage

Example code:

```python
from asherah import Asherah, AsherahConfig

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

data = b"mysecretdata"

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

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

## Benchmarking

Included is a `benchmark.py` script that will give you an idea of the execution
speeds you can see from this library. Our goal is to make this as performant as
possible, as demonstrated by this example output:

```sh
> python benchmark.py
Benchmarking encrypt/decrypt round trips of "mysecretdata".
Executed 100 iterations in 0.026045440000000003 seconds.
Executed 1000 iterations in 0.237702095 seconds.
Executed 10000 iterations in 2.3570790550000003 seconds.
Executed 100000 iterations in 23.717442475 seconds.
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/godaddy/asherah-python/",
    "name": "asherah",
    "maintainer": "GoDaddy",
    "docs_url": null,
    "requires_python": ">=3.7,<4.0",
    "maintainer_email": "oss@godaddy.com",
    "keywords": "encryption",
    "author": "Jeremiah Gowdy",
    "author_email": "jeremiah@gowdy.me",
    "download_url": "https://files.pythonhosted.org/packages/11/17/097a9574794ae6ebf6e3d6e204ed3a381e1574d0159996b41cbe275587a8/asherah-0.3.5.tar.gz",
    "platform": null,
    "description": "# asherah-python\n\nAsherah envelope encryption and key rotation library\n\nThis is a wrapper of the Asherah Go implementation using the Cobhan FFI library\n\n## Usage\n\nExample code:\n\n```python\nfrom asherah import Asherah, AsherahConfig\n\nconfig = AsherahConfig(\n    kms='static',\n    metastore='memory',\n    service_name='TestService',\n    product_id='TestProduct',\n    verbose=True,\n    enable_session_caching=True\n)\ncrypt = Asherah()\ncrypt.setup(config)\n\ndata = b\"mysecretdata\"\n\nencrypted = crypt.encrypt(\"partition\", data)\nprint(encrypted)\n\ndecrypted = crypt.decrypt(\"partition\", encrypted)\nprint(decrypted)\n```\n\n## Benchmarking\n\nIncluded is a `benchmark.py` script that will give you an idea of the execution\nspeeds you can see from this library. Our goal is to make this as performant as\npossible, as demonstrated by this example output:\n\n```sh\n> python benchmark.py\nBenchmarking encrypt/decrypt round trips of \"mysecretdata\".\nExecuted 100 iterations in 0.026045440000000003 seconds.\nExecuted 1000 iterations in 0.237702095 seconds.\nExecuted 10000 iterations in 2.3570790550000003 seconds.\nExecuted 100000 iterations in 23.717442475 seconds.\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Asherah envelope encryption and key rotation library",
    "version": "0.3.5",
    "project_urls": {
        "Homepage": "https://github.com/godaddy/asherah-python/",
        "Repository": "https://github.com/godaddy/asherah-python/"
    },
    "split_keywords": [
        "encryption"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6f5e11c6b028b3bf63f4f4bce63cdc51e775735ef6a496f25ee0d86442092097",
                "md5": "e7f71797ecfa06125c22012e6dd56bff",
                "sha256": "a156eeb319058b4aa1fc4a2570f287f1c414691d58933c38d276ab824febd7b1"
            },
            "downloads": -1,
            "filename": "asherah-0.3.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e7f71797ecfa06125c22012e6dd56bff",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7,<4.0",
            "size": 15420775,
            "upload_time": "2024-02-29T17:13:05",
            "upload_time_iso_8601": "2024-02-29T17:13:05.922320Z",
            "url": "https://files.pythonhosted.org/packages/6f/5e/11c6b028b3bf63f4f4bce63cdc51e775735ef6a496f25ee0d86442092097/asherah-0.3.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1117097a9574794ae6ebf6e3d6e204ed3a381e1574d0159996b41cbe275587a8",
                "md5": "b9a07c52e282a4e35e3605135cb60c54",
                "sha256": "bb7e34cc59209becaca47cfb06536ee268e2a9857e67f9484b26dda7fbba67eb"
            },
            "downloads": -1,
            "filename": "asherah-0.3.5.tar.gz",
            "has_sig": false,
            "md5_digest": "b9a07c52e282a4e35e3605135cb60c54",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7,<4.0",
            "size": 15334427,
            "upload_time": "2024-02-29T17:13:08",
            "upload_time_iso_8601": "2024-02-29T17:13:08.519641Z",
            "url": "https://files.pythonhosted.org/packages/11/17/097a9574794ae6ebf6e3d6e204ed3a381e1574d0159996b41cbe275587a8/asherah-0.3.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-29 17:13:08",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "godaddy",
    "github_project": "asherah-python",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "asherah"
}
        
Elapsed time: 0.21642s