0
$\begingroup$

I have a private wallet backup file from Bitpie/imToken created in June 2023. The new version of the official app no longer supports importing this format.

The file content is a JSON object in this format: {"data":"[BASE64_CIPHERTEXT]"}.

I have the correct wallet password. I need to know the specific Key Derivation Function (KDF) used (likely Scrypt or PBKDF2), and the exact Scrypt parameters (N, r, p) to successfully decrypt the ciphertext. Sample of the Base64 ciphertext (first 100 characters):

{"data":"JmO+xH4sDaOFpbd7ivSh1j1F9sWNQ5t95zlMW0GJeV9a9D/hNRHvBjQQH/T43sgc4FIRdmLkK9HtGqTxzYZFFUdy9awJ3kcd2KSIFfyVOFTkOKVWZjpWlGhHC0KEnBoFziIDe5z5OP5kyx5BmLn8ABWBnDKNDsZrPilRcs62XfibmP6Y+XnlEhX912r4K/qoX1Zim9hz6Ky4BiAS2JhAPKfJdClf1fcHZIGJJiAPQ8pH/YojTUqD1TRumN/m1BZ2YxwGzCd+Ou6cvjJR39TOLpzCycE9CBaTbC2a3KkMzKUKkQG+JraJeP7Vzopy5NfH9jlv4GNDtDDY17pGTqKknt5dFs5OuZwbNrPSJfl+Gi2zNgBufDJ+T3FGkgpVzb3La9p7UqeVpOfQGFE8L9pNiwx66Cr70QhzOWO+WfJegtTRHBsEJ1XA3OSp38BKtGpsXKuzf5n1+UE4h2yVyghy9ckMWeCz60L+

$\endgroup$
3
  • $\begingroup$ Can't you find an older version that does support it and configure it that way? I don't see anything that looks like a delimiter or iteration count in the binary data, so this means we would have to find the protocol description or even read the source code - if available. $\endgroup$ Commented Oct 15 at 8:22
  • $\begingroup$ Thank you very much for your critical insight. The file I have is strictly in this format: {"data":"[VERY LONG BASE64 STRING]"} It contains NO other fields like "crypto", "kdf", or "kdfparams". Does this confirm that this is a private, non-standard Bitpie/imToken format? If so, are there any known resources or GitHub repositories that contain the fixed Scrypt parameters (N, r, p) used by this specific wallet in June 2023? $\endgroup$ Commented Oct 15 at 16:24
  • $\begingroup$ Obviously the encoded string doesn't contain those parameters but I don't see any hint of structure in the binary data after base 64 decoding either. So this seems to be binary format probably with a salt in there somewhere. Problem is: both the salt and the ciphertext look consist of random bytes. $\endgroup$ Commented Oct 16 at 18:32

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.