user6064: I want to import my private key from the android's Bitcoin Wallet (the one created by Andreas Schildbach) but it can export it only in an encrypted way.
How do I decrypt the file so I can import the key to my Bitcoin Qt?

user54440: This script seems to do the work
https://github.com/jleni/wallet-decrypt
You just need to create a backup and it will give you back a mnemonic that you can use in electrum or electrum cash.

user60831: If anyone is trying this in 2017, openssl has now defaulted to use SHA256 instead of the MD5 assumed in the older answers. Add "-md md5" (no quotes) to your openssl command line string.
https://superuser.com/questions/1245384/openssl-bad-decrypt-between-0-9-8o-and-1-1-0f
For example, originally without that MD5 option I was seeing:
$openssl enc -d -aes-256-cbc -a -in bitcoin-wallet-backup-2017-09-28 -out decrypted
enter aes-256-cbc decryption password: ******
bad decrypt
140031244338432:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:../crypto/evp/evp_enc.c:535:

But then with the MD5 option:
$openssl enc -d -aes-256-cbc -a -in bitcoin-wallet-backup-2017-09-28 -out decrypted -md md5
enter aes-256-cbc decryption password: ******

It runs successfully and creates a file called "decrypted" which is mostly binary data but starts with ^Vorg.bitcoin.production^R and contains your 12 word mnemonic as text near the top of the file.

user7099: from: https://github.com/schildbach/bitcoin-wallet/tree/master/wallet
The backup file is encrypted using your chosen password. You can use OpenSSL to decrypt:

openssl enc -d -aes-256-cbc -a -in <filename>


6064: <p>I want to import my private key from the android's Bitcoin Wallet (the one created by Andreas Schildbach) but it can export it only in an encrypted way.</p>

<p>How do I decrypt the file so I can import the key to my Bitcoin Qt?</p>
 54440: <p>This script seems to do the work</p>

<p><a href="https://github.com/jleni/wallet-decrypt" rel="nofollow noreferrer">https://github.com/jleni/wallet-decrypt</a></p>

<p>You just need to create a backup and it will give you back a mnemonic that you can use in electrum or electrum cash.</p>
 60831: <p>If anyone is trying this in 2017, openssl has now defaulted to use SHA256 instead of the MD5 assumed in the older answers. Add "-md md5" (no quotes) to your openssl command line string.</p>

<p><a href="https://superuser.com/questions/1245384/openssl-bad-decrypt-between-0-9-8o-and-1-1-0f">https://superuser.com/questions/1245384/openssl-bad-decrypt-between-0-9-8o-and-1-1-0f</a></p>

<p>For example, originally without that MD5 option I was seeing:</p>

<pre><code>$openssl enc -d -aes-256-cbc -a -in bitcoin-wallet-backup-2017-09-28 -out decrypted
enter aes-256-cbc decryption password: ******
bad decrypt
140031244338432:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:../crypto/evp/evp_enc.c:535:
</code></pre>

<p>But then with the MD5 option:</p>

<pre><code>$openssl enc -d -aes-256-cbc -a -in bitcoin-wallet-backup-2017-09-28 -out decrypted -md md5
enter aes-256-cbc decryption password: ******
</code></pre>

<p>It runs successfully and creates a file called "decrypted" which is mostly binary data but starts with ^Vorg.bitcoin.production^R and contains your 12 word mnemonic as text near the top of the file.</p>
 7099: <p>from: <a href="https://github.com/schildbach/bitcoin-wallet/tree/master/wallet">https://github.com/schildbach/bitcoin-wallet/tree/master/wallet</a></p>

<pre><code>The backup file is encrypted using your chosen password. You can use OpenSSL to decrypt:

openssl enc -d -aes-256-cbc -a -in &lt;filename&gt;
</code></pre>
