Skip to content

Instantly share code, notes, and snippets.

@serkanh
Last active April 12, 2017 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save serkanh/2376051ecdcbfffdef925b6acbf48fc6 to your computer and use it in GitHub Desktop.
Save serkanh/2376051ecdcbfffdef925b6acbf48fc6 to your computer and use it in GitHub Desktop.
aws kms enc/decrypt
#encrypt text
aws --profile=jumpstart kms encrypt \
--key-id <YOUR-KEY-ID> \
--plaintext fileb://test \
--query CiphertextBlob \
--output text | base64 --decode > testencrypted.txt
#decrypt text
aws --profile=jumpstart kms decrypt \
--ciphertext-blob fileb://testencrypted.txt \
--query Plaintext --output text | base64 --decode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment