Skip to content

Instantly share code, notes, and snippets.

@murarisumit
Created April 27, 2018 05:03
Show Gist options
  • Save murarisumit/bfd42826063c9da86a1ba2d443a10c16 to your computer and use it in GitHub Desktop.
Save murarisumit/bfd42826063c9da86a1ba2d443a10c16 to your computer and use it in GitHub Desktop.
kms_decrypt #kms #aws
from base64 import b64decode
import boto3
unencrypted_url = "https://" + boto3.client('kms').decrypt(
CiphertextBlob=b64decode(config['encrypted_token']))['Plaintext'].decode('utf-8')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment