How can I access data (such as WiFi keys) in an encrypted Titanium backup? How can I decrypt an encrypted "Titanium Backup" backup using standard (linux) tools?

Example:

Wi-Fi serves as a practical example, many other uses may apply to the solution I'm looking for.

If I quickly want to access backuped Wi-Fi credentials from my Linux box I know a fast way. With encrypted backups I'm currently out of luck.

That's my quick&amp;dirty way how to do it without encryption so far:


  me@local:~$ adb shell
  root@android:/ # cd /sdcard/TitaniumBackup/
  root@android:/sdcard/TitaniumBackup # ls *W*46.*gz
  com.keramidas.virtual.WIFI_AP_LIST-20120622-105046.tar.gz
  root@android:/sdcard/TitaniumBackup # gunzip -c *W*46.*gz | grep -C1 MyAccessPoint
  network={  
  
  
    ssid="MyAccessPoint"
    psk="supersecrecretpassphrase"  
  


Some details on the company's site: http://www.titaniumtrack.com/kb/titanium-backup-kb/titanium-backup-cryptography.html
I have found a working solution on GitHub:
https://github.com/phyber/TiBUdecrypter

1. Install/upgrade dependencies (on Ubuntu)

apt-get install python2.7
pip install --upgrade docopt
pip install --upgrade six
pip install --upgrade PyCrypto


2. Get script from GitHub


Download: https://github.com/phyber/TiBUdecrypter/archive/master.zip
Extract the ZIP


3. Decrypt a backup

python2.7 tibudecrypt.py com.keramidas.virtual.XML_WIFI_AP_LIST-20140711-012128.xml.gz