Created
April 8, 2019 15:11
-
-
Save bitnot/ab9be66a24fa42af383f483eb457c29b to your computer and use it in GitHub Desktop.
Decrypt Base64-encoded KMS secret. Output base-64 encoded plaintext value.
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
alias kmsdecode='f(){aws kms decrypt --ciphertext-blob fileb://<(echo $1 | base64 --decode) --output text --query Plaintext }; f' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment