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
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-2.1.0.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for gcloud_aio_kms-2.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0788eb2ee974412084eb4bbd15c806f71884a78ca4ea4d782d26a0f0d8d3ff9a |
|
MD5 | 1cb1013b8d9af5ef14cb94057c8ebeb1 |
|
BLAKE2b-256 | b3d804515cd3b4d6a7fb8864801ef71d0ea0926769c69a30496c5edb4f9a99cc |