asherah-0.2.0
توضیحات
Asherah envelope encryption and key rotation library
| ویژگی | مقدار |
|---|---|
| سیستم عامل | POSIX :: Linux |
| نام فایل | asherah-0.2.0 |
| نام | asherah |
| نسخه کتابخانه | 0.2.0 |
| نگهدارنده | ['GoDaddy'] |
| ایمیل نگهدارنده | ['oss@godaddy.com'] |
| نویسنده | Jeremiah Gowdy |
| ایمیل نویسنده | jeremiah@gowdy.me |
| آدرس صفحه اصلی | https://github.com/godaddy/asherah-python/ |
| آدرس اینترنتی | https://pypi.org/project/asherah/ |
| مجوز | MIT |
# 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:
```python
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)
```
نیازمندی
| مقدار | نام |
|---|---|
| >=0.3.0,<0.4.0 | cobhan |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7,<4.0 | Python |
نحوه نصب
نصب پکیج whl asherah-0.2.0:
pip install asherah-0.2.0.whl
نصب پکیج tar.gz asherah-0.2.0:
pip install asherah-0.2.0.tar.gz