-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
importing from third party apps #8
Comments
You'd basically need to parse JSON files as far as I understand, that the format most authentificator apps export to. |
Since I am not familiar with the export types of other auth apps can people post an example of the file contents, file type and from which app the export is from so I can take a look |
I researched some formats in Android applications that are installed on my phone. Google AuthenticatorGoogle Authenticator provides a QR code that can be used to export accounts. QR code is limited to 10 accounts, so, when user tries to export more that 10, the application generates more QR codes.
Authenticator ProOpen source android client written in C#. First wayFor individual items it shows a QR code that contains
Second wayExport to native application format. It contains custom app icons and is encrypted. I don't think Protecc should support it as there are another ways to export from this app. Third wayExport to HTML. Fourth wayExport to txt. This format can be easily parsed.
The same format as in first way but all the codes and secrets are separated by new line. So it can be used for batch import. Microsoft AuthenticatorI think it encrypts exported file with some key that is composed of English dictionary words. I couldn't create a sample because the app broke on export. |
It looks like both Google and Authenticator pro support keyuri and if I implement issue Keyuri support it should work for those. For Microsoft Authenticator do they have a qr code export option or is it just file? |
I think that most authenticator apps will support keyuri, and an utility function to parse them to Microsoft Authenticator doesn't have a QR code export option. Its only options are:
I can't find any other option inside the app or in posts on different forums. And the only post about a function to export secret keys to file that can be used in other apps a microsoft MVP pretends like no other app besides their exists in this world, so why would you need such a feature? I think that trying to support their app could be very hard and time-consuming. If it is even possible |
Ok we don't need to focus on importing from ms Authenticator then |
Another popular open source option is Aegis, found in the main repository of F-Droid. otpauth://totp/Website%3AUSERNAME?period=30&digits=6&algorithm=SHA1&secret=SECRET&issuer=Website |
how is the json one? I am thinking of making interfaces for anyone (with basic c# knowledge) to easily add compatibility to third party importing |
I think the contents are identical, only the formatting is different |
I'm using Aegis on my Android phone. It have 2 way to export, Aegis' json and txt. Aegis' json can be encryption. This is {
"version": 1,
"header": {
"slots": null,
"params": null
},
"db": {
"version": 2,
"entries": [
{
"type": "totp",
"uuid": "ititit-just-aaaa-fake-uuiduuiduuid",
"name": "KurisuCat",
"issuer": "FakeBBS",
"note": "",
"icon": null,
"info": {
"secret": "ABCDEFGHIJKLMNOP",
"algo": "SHA1",
"digits": 6,
"period": 30
}
},
{
"type": "steam",
"uuid": "ititit-just-aaaa-fake-uuiduuiduuid",
"name": "KurisuCat",
"issuer": "Steam",
"note": "",
"icon": null,
"info": {
"secret": "ABCDEFGHIJKLMNOPQRSTUVWXYZ012345",
"algo": "SHA1",
"digits": 5,
"period": 30
}
}
]
}
} This is
|
Thanks for sending this. I can add Aegis importing then |
@kurisucat can you send the json but with an icon to see how icon format looks like |
and not include |
How do you export your TOTPs in Microsoft Authenticator? couldn't find the option to do that. |
@KitCat36
Maybe there is no such function.. So you are correct |
Note that Aegis also supports SVG vectors and JPGs for entry icons. |
Would also be cool to be able to import TOTP keys from 1password. I have found the following:
I will see if I can contribute an importer for this. Also not sure if the path above is the only path to find TOTP keys. If not me, I hope this helps someone else integrate this. I can provide more info on the 1password exported file. |
The 1 password looks simple so I can add it |
@FireCubeStudios started work on a view for importing. Maybe you can build off of it? #85 |
There are some possible ways to export data manually: original link(Chinese) I have exported it this way and I get a JSON, an Array of maybe I can convert this JSON into something that protecc can import, but I can't find any options to import or documents of protecc's YAML |
Basically Protecc should support importing from as many other apps as possible. I don't know how to get started on this so suggestions are welcome.
The text was updated successfully, but these errors were encountered: