Skip to content

Latest commit

 

History

History
54 lines (34 loc) · 2.93 KB

README.md

File metadata and controls

54 lines (34 loc) · 2.93 KB

Python Samples for Google Cloud Key Management Service

This directory contains samples for Google Cloud Key Management Service, which may be used as a refererence for how to use Google Cloud Key Management Service. This directory contains snippets for Google Cloud KMS API. The Google Cloud KMS API is a service that allows you to keep encryption keys centrally in the cloud, for direct use by cloud services. More info about Cloud KMS can be found at https://cloud.google.com/kms/docs/ Samples, quickstarts, and other documentation are available at cloud.google.com.

Quickstart

This quickstart shows you how to create and use encryption keys with Cloud Key Management Service.

Open in Cloud Shell

To run this sample:

  1. If this is your first time working with GCP products, you will need to set up the Cloud SDK or utilize Google Cloud Shell. This sample may require authetication and you will need to enable billing.

  2. Make a fork of this repo and clone the branch locally, then navigate to the sample directory you want to use.

  3. Install the dependencies needed to run the samples.

     pip install -r requirements.txt
    
  4. Run the sample using

     python quickstart.py
    

More information about the Cloud KMS quickstart is available at https://cloud.google.com/kms/docs/quickstart

Additional Information

These samples use the Google Cloud Client Library for Python. You can read the documentation for more details on API usage and use GitHub to browse the source and report issues.

Contributing

For contributing guidelines, the Python style guide, and more information on prerequisite steps to contribute, view the source code at googleapis/python-kms.