xvybihal / authplus-to-andotp-magiculator

Convert Authenticator Plus backup database into andOTP backup database.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Authenticator Plus to andOTP Magiculator

The Authenticator Plus app seems to have been abandoned by the developer. andOTP is a decent, open source, alternative.

This converts the Authenticator Plus backup database into andOTP-compatible backup database that can be directly important into andOTP.

Installation

The only dependency is pysqlcipher3. On my machine, I installed it like this:

sudo apt install -y libsqlcipher-dev
git clone https://github.com/rigglemania/pysqlcipher3
cd pysqlcipher3
python3 setup.py build
sudo python3 setup.py install

Usage

./authplus-to-andotp.py -h
usage: authplus-to-andotp.py [-h] [-d DB_NAME] [-o OUT_FILE] [-p PASSWORD]

Convert Authenticator Plus OTP backup database into andOTP backup database

optional arguments:
  -h, --help            show this help message and exit
  -d DB_NAME, --database DB_NAME
                        Authenticator Plus database, usually authplus.db
  -o OUT_FILE, --output-file OUT_FILE
                        Output file name. Defaults to andOTP.json
  -p PASSWORD, --password PASSWORD
                        Authenticator Plus master password (leave empty if you
                        wanna type in a prompt instead)

Example:

./authplus-to-andotp.py --database authplus.db
Authenticator Plus master password:

Caveats

  • This will decrypt the Authenticator Plus backup database and output the andOTP backup database in decrypted plain-text. Be careful how you handle that.
  • The imported entries in andOTP won't have pretty icons by default, but you can set those in andOTP.
  • As far as I can tell, Authenticator Plus doesn't handle checksum algorithms other than SHA-1 or OTP digits other than 6. The output file will use those values by default.

About

Convert Authenticator Plus backup database into andOTP backup database.

License:MIT License


Languages

Language:Python 100.0%