Skip to content

Instantly share code, notes, and snippets.

@markymarkus
Created February 19, 2020 06:31
Show Gist options
  • Save markymarkus/4a8006f8c219ef9ea08c36c7404d5e39 to your computer and use it in GitHub Desktop.
Save markymarkus/4a8006f8c219ef9ea08c36c7404d5e39 to your computer and use it in GitHub Desktop.
kms encrypt / decrypt
aws kms encrypt --key-id #### --plaintext "onetwothree 123" --query CiphertextBlob --output text | base64 --decode > out.blob
aws kms decrypt --key-id #### --ciphertext-blob fileb://out.blob --query Plaintext --output text | base64 --decode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment