Created
October 26, 2016 05:58
-
-
Save serinth/056ac9596c040374b6eb78f2be0d6533 to your computer and use it in GitHub Desktop.
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
var AWS = require('aws-sdk'); | |
AWS.config.region = 'ap-southeast-2'; | |
var kms = new AWS.KMS({ apiVersion: '2014-11-01' }); | |
var encryptedParams = { | |
CiphertextBlob: '' | |
}; | |
kms.decrypt(encryptedParams, function(err, decryptedData){ | |
if(err){ | |
console.log(err); | |
} else { | |
console.log("DECRYPTED PASSWORD:", decryptedData.Plaintext.toString()); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment