Python Client for Google Cloud KMS
Project description
This is a shared codebase for gcloud-aio-kms and gcloud-rest-kms
Installation
$ pip install --upgrade gcloud-{aio,rest}-kms
Usage
We’re still working on more complete documentation, but roughly you can do:
from gcloud.aio.kms import KMS
from gcloud.aio.kms import decode
from gcloud.aio.kms import encode
kms = KMS('my-kms-project', 'my-keyring', 'my-key-name')
# encrypt
plaintext = 'the-best-animal-is-the-aardvark'
ciphertext = await kms.encrypt(encode(plaintext))
# decrypt
assert decode(await kms.decrypt(ciphertext)) == plaintext
Contributing
Please see our contributing guide.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gcloud-aio-kms-3.1.1.tar.gz
(4.9 kB
view hashes)
Built Distribution
Close
Hashes for gcloud_aio_kms-3.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | edcc4299760ae1abe189c3cb8d0fd54dc520ae31f5d97301d3dd2510b4301787 |
|
MD5 | 460c1a238cbf2b803e61c669b556e439 |
|
BLAKE2b-256 | 25b6da750464349fe2fa3c0b01de0478a9af7d21b72d05d2f4a5dbed4115f62c |