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-1.0.1.tar.gz
(4.1 kB
view hashes)
Built Distribution
Close
Hashes for gcloud_aio_kms-1.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b83d52a4992c4d8dd39b472aa3ad16cdf33b1922a21fcac42f42cbaa73dc6cdb |
|
MD5 | 9afc66213c3a678890f06d4bf358d315 |
|
BLAKE2b-256 | f9c9fee9683c9e301f7f8e4071f4c08b8d0dc6836ec5f8e62f306e47afd52fc4 |