Asyncio Python Client for Google Cloud KMS
Project description
Installation
$ pip install --upgrade gcloud-aio-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-cred-project', '/path/to/creds.json', 'my-kms-project',
'my-keyring', 'my-key-name')
# encrypt
plaintext = 'the-best-animal-is-the-aardvark'
ciphertext = await kms.encrypt(encode(plaintext))
# decrypt
assert (await kms.decrypt(encode(ciphertext))) == plaintext
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-0.0.0.tar.gz
(4.1 kB
view hashes)
Built Distribution
Close
Hashes for gcloud_aio_kms-0.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 388abd5e8dcaf1ebaa3f0e1aa735b09f4c85bcb3e5de8466b34ce3e3eac7923f |
|
MD5 | 8da2cc1d5a06a9d621fd793d92feb518 |
|
BLAKE2b-256 | ae1ffba34fccc37c15d03f3db9fc0a64d82024006dae47c9054a6486024d123e |