Skip to content

Instantly share code, notes, and snippets.

@yehudamakarov
Created June 24, 2019 22:18
Show Gist options
  • Save yehudamakarov/f783d65234cd96c59f49f2328c2df0f0 to your computer and use it in GitHub Desktop.
Save yehudamakarov/f783d65234cd96c59f49f2328c2df0f0 to your computer and use it in GitHub Desktop.
[gcloud] gcloud commands
gcloud kms encrypt --location global \
--keyring test --key quickstart \
--plaintext-file mysecret.txt \
--ciphertext-file mysecret.txt.encrypted
gcloud kms decrypt --location global \
--keyring test --key quickstart \
--ciphertext-file mysecret.txt.encrypted \
--plaintext-file mysecret.txt.decrypted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment