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.0.tar.gz
(4.0 kB
view hashes)
Built Distribution
Close
Hashes for gcloud_aio_kms-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 110b199bb6b33c929efb3c143fe48ad4f432fb5fa863fb2d83fe8edca5f111da |
|
MD5 | 9bac6b540cd727b9cc7a9b10385f20cc |
|
BLAKE2b-256 | c3074893578bea90a92695bff1fee041e331b826b8f06bfac09d3bca38f203a9 |