Skip to content

Instantly share code, notes, and snippets.

@wwiill
Created March 1, 2019 01:03
Show Gist options
  • Save wwiill/4110a88e67418cee0b1f245cd1cb640f to your computer and use it in GitHub Desktop.
Save wwiill/4110a88e67418cee0b1f245cd1cb640f to your computer and use it in GitHub Desktop.
#!/bin/bash
KEY_ID=$1
UNENCRYPTED=$2
aws kms encrypt --key-id $KEY_ID --plaintext "$UNENCRYPTED" --query CiphertextBlob --output text | base64 --decode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment