假设您有以下格式的比特币wallet.json备份:
{
"ct" : "xyz",
"iter" : 10000,
"adata" : "",
"salt" : "xyz",
"cipher" : "aes",
"ks" : 128,
"v" : 1,
"mode" : "ccm",
"iv" : "xyz",
"ts" : 64
}其中xyz是唯一值,钱包使用密码加密。您可以使用哪些工具来解密此钱包格式?
发布于 2019-06-02 07:27:24
您可以使用旧版本的Bitgo NodeJS包来解密钱包:
// index.js
var BitGoJS = require('./node_modules/bitgo/src/index.js');
var bitgo = new BitGoJS.BitGo();
console.log('Decrypting...');
var password = 'passw0rd';
var encryptedWallet = '{"iv":"xyz","v":1,"iter":10000,"ks":128,"ts":64,"mode":"ccm","adata":"","cipher":"aes","salt":"xyz","ct":"xyz"}';
var decryptedString = bitgo.decrypt({ password: password, input: encryptedWallet });
console.log('Private key:', decryptedString);// package.json
{
"name": "Decrypt",
"version": "1.0.0",
"scripts": {
"start": "node index.js"
},
"dependencies": {
"bitgo": "1.0.0"
}
}在将password和encryptedWallet变量替换为您自己的值之后,您可以使用npm install和npm start来解密钱包。
https://stackoverflow.com/questions/56411140
复制相似问题