Python Client for Google Cloud KMS
Project description
This is a shared codebase for gcloud-rest-kms and gcloud-rest-kms
Installation
$ pip install --upgrade gcloud-{aio,rest}-kms
Usage
We’re still working on more complete documentation, but roughly you can do:
from gcloud.rest.kms import KMS
from gcloud.rest.kms import decode
from gcloud.rest.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-rest-kms-3.1.1.tar.gz
(5.0 kB
view hashes)
Built Distribution
Close
Hashes for gcloud_rest_kms-3.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a015d76bb85a39565540ab73588615087d62aad328c15e2b58a6162915720b2 |
|
MD5 | 64a3c692530c668bb487061ede8d17b0 |
|
BLAKE2b-256 | 25e84f3e86d2321825067d98062a47a3e58c6bc1f45c56ae68311ec544f8561f |