Last active
April 12, 2017 14:08
-
-
Save serkanh/2376051ecdcbfffdef925b6acbf48fc6 to your computer and use it in GitHub Desktop.
aws kms enc/decrypt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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