Last active
January 8, 2019 20:32
-
-
Save prasmussen/efde78c142aff804198b3fe4aa695afc to your computer and use it in GitHub Desktop.
Decrypt blockstack encryptedPortalKey
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 triplesec = require('triplesec'); | |
var encryptedPortalKey = new Buffer("<encryptedPortalKey>", "hex"); | |
var password = new Buffer("<password>"); | |
triplesec.decrypt({key: password, data: encryptedPortalKey}, function(err, plaintext) { | |
if (err) { | |
console.log(err); | |
} else { | |
console.log("Your backup phrase:"); | |
console.log(plaintext.toString()); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment