Python Client for Google Cloud KMS
Project description
Installation
$ pip install --upgrade gcloud-rest-kms
# or
$ pip install --upgrade gcloud-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.0.0.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for gcloud_rest_kms-3.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71e4bff072e7c7620e76ea3db2d406aab2dadca762fed21a587fdc95fe52fed0 |
|
MD5 | dc3634282137a6b8ad5a8866b732ccbd |
|
BLAKE2b-256 | b5af87dc7e7c23b2b1399fbb121d08b1c2f7de693689ea92964b21eabcb9703b |