Sneezry / authenticator

This repository has moved to https://github.com/Authenticator-Extension/Authenticator
Apache License 2.0
175 stars 92 forks source link

Feature request: Importing from google authenticator android app DB (sqlite3 db) #167

Open rcoscali opened 6 years ago

rcoscali commented 6 years ago

Would be nice to be ablke to import directly from google authenticator DB. I created a script for exporting android app db but I didn't found the import format (else I would had created it by myself). Still digging in code

ivkom commented 6 years ago

+1 Excellent idea

Sneezry commented 6 years ago
{
    "<md5 hash of secret>": {
        "account": "<account>",
        "encrypted": false,
        "hash": "<md5 hash of secret>",
        "issuer": "<issuer>",
        "secret": "<secret>",
        "type": "totp"
    },
    ...
}
rcoscali commented 6 years ago

Did it here https://github.com/rcoscali/googleauth_db2qr. but of course require rooted phone for accessing the db /data/data/com.google.apps.authenticator2/databses copy the account.db then: $ googleauth_db2gr account.db it will do many things but, in others, generate authenticator.json U can use to import data. The importation through QRcode also runs pretty well (a nodejs server is launched and a page with qrcode is dispalyed: this the way I import them at first and it is why I didn't code the json generation)

rcoscali commented 6 years ago

BTW: thanks man! Very good chrome extension. I really use it every day!! ;-)

If I have time I'll hack on google authenticator for sending/receiving data to my chrome and really syncing both.