Decrypting (android) mobile bitcoin wallet backups

I wanted to move some coins around with the recent Bitcoin Cash hard fork and needed to decrypt my private keys from my android wallet.   After trying to mess around with a command I found online:

openssl enc -d -aes-256-cbc -a -in bitcoin-wallet-backup-2017-08-14 -out bitcoin-wallet-backup-2017-08-14.decrypted
enter aes-256-cbc decryption password:
bad decrypt
140383167771904:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:../crypto/evp/evp_enc.c:535:

I finally found the correct command in the source repo for the wallet.  Here’s what you really want to run:

openssl enc -d -aes-256-cbc -md md5 -a -in bitcoin-wallet-backup-2017-08-14 -out bitcoin-wallet-backup-2017-08-14.decrypted