3
Bitcoin Wallet for Android allows you to back up your wallet. It asks for a password when doing so.
After much faffing, I finally managed to.. dum, dum, dum! .. copy the file to the SD card, and then I removed the SD card and mounted on a Linux system.
According to this question, the way to decrypt it is
$ openssl enc -d -aes-256-cbc -a -in bitcoin-wallet-backup-2016-09-30
but I get:
enter aes-256-cbc decryption password:
error reading input file
when doing so. This is an extremely poor error message from openssl. I have confirmed that the file is readable using other utilities.
That certainly is a poor error message from openssl. One way to find out what is really going on is to use
strace. Trystrace openssl <args>and look for a line that startsopen("bitcoin-wallet-backup-...", ...). You might see the OS error code at the end of the line. – Nate Eldredge – 2016-10-16T23:18:51.493open("s/bitcoin-wallet-backup-2016-09-30", O_RDONLY) = 3. I believe 3 is the fd. Then it reads it a few times, fineread(3, "\0\0\0\0\0\ [...] = 4096etc. This is not an IO problem at this level with the input file. – projix – 2016-10-18T11:27:02.117Huh. So it may be down to reading and/or single-stepping the openssl source. One question though, the answer you cited is several years old. Have you checked the Bitcoin Wallet documentation to see if this is still the way the backups are encrypted? – Nate Eldredge – 2016-10-18T12:08:21.903
Backup encryption did not change. The underlying cleartext format however did, from base58-encoded private keys (text-based) to a protobuf wallet file (binary). – Andreas Schildbach – 2017-01-03T20:52:46.207