【问题标题】:How to decrypt a bitcoin.com json AES wallet backup?如何解密 bitcoin.com json AES 钱包备份?
【发布时间】:2019-06-01 23:27:24
【问题描述】:

假设您有以下格式的比特币 wallet.json 备份:

{
  "ct" : "xyz",
  "iter" : 10000,
  "adata" : "",
  "salt" : "xyz",
  "cipher" : "aes",
  "ks" : 128,
  "v" : 1,
  "mode" : "ccm",
  "iv" : "xyz",
  "ts" : 64
}

其中xyz 是唯一值,钱包使用密码加密。你可以使用什么工具来解密这种钱包格式?

【问题讨论】:

    标签: bitcoin


    【解决方案1】:

    您可以使用旧版本的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"
      }
    }
    

    用你自己的值替换passwordencryptedWallet变量后,你就可以npm installnpm start解密钱包了。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-03-06
      • 2010-12-02
      • 2016-09-22
      • 2021-02-11
      • 1970-01-01
      • 2012-02-24
      • 2015-03-27
      相关资源
      最近更新 更多