Skip to content

Instantly share code, notes, and snippets.

@serinth
Created October 26, 2016 05:58
Show Gist options
  • Save serinth/056ac9596c040374b6eb78f2be0d6533 to your computer and use it in GitHub Desktop.
Save serinth/056ac9596c040374b6eb78f2be0d6533 to your computer and use it in GitHub Desktop.
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