Python Client for Google Cloud KMS
Project description
Installation
$ pip install --upgrade gcloud-aio-kms
# or
$ pip install --upgrade gcloud-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.0.0.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for gcloud_aio_kms-3.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ca5c849aec564d1708d02f3a3a2b6e818d2500267ab596f4b32981d50ac5e2f |
|
MD5 | 3bd27e4bd675bd890d557018cb300bad |
|
BLAKE2b-256 | 43eed8a37486abe0a217b6bae3701c844e9be1b29406fa2d0221f2b0353f5eca |