Created
April 27, 2018 05:03
-
-
Save murarisumit/bfd42826063c9da86a1ba2d443a10c16 to your computer and use it in GitHub Desktop.
kms_decrypt #kms #aws
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
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