Skip to main content

A backup decryptor for the andOTP Android app

Project description


A backup decryptor for the andOTP Android app.

The tools in this package support the password based backup files of andOTP in both the current (0.6.3) old (0.6.2 and before) format.


  • A decryption tool for password-secured backups of the andOTP two-factor android app.
    • Output is written to stdout
  • A tool to generate new, scanable QR code images for every entry of a dump
    • Images are saved to the current working directory
  • A tool to generate a TOTP token for an account in the backup


pip install andotp-decrypt

The tools will be installed as:

  • andotp_decrypt
  • andotp_gencode
  • andotp_qrcode

Development Setup

Poetry install (recommended)

  • Install poetry
    • pip install poetry (or use the recommended way from the website)
  • Install everything else
    • poetry install
  • Launch the virtualenv
    • poetry shell

Pip install

  • sudo pip3 install -r requirements.txt

On debian/ubuntu this should work:

  • sudo apt-get install python3-pycryptodome python3-pyotp python3-pyqrcode python3-pillow python3-docopt


  • Dump JSON to the console:
    • ./ /path/to/otp_accounts.json.aes
  • Generate new QR codes:
    • ./ /path/to/otp_accounts.json.aes
  • Generate a TOTP code for your google account:
    • ./ /path/to/otp_accounts.json.aes google


Thank you for contributing!

  • @alkuzad
  • @ant9000
  • @anthonycicc
  • @erik-h
  • @romed
  • @rubenvdham
  • @wornt
  • @naums
  • @marcopaganini

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for andotp-decrypt, version 0.1.6
Filename, size File type Python version Upload date Hashes
Filename, size andotp_decrypt-0.1.6-py3-none-any.whl (6.7 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size andotp-decrypt-0.1.6.tar.gz (5.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page