Skip to content
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

Export function #28

Open
ghost opened this issue Jul 27, 2023 · 6 comments
Open

Export function #28

ghost opened this issue Jul 27, 2023 · 6 comments
Labels
Feature New feature or request

Comments

@ghost
Copy link

ghost commented Jul 27, 2023

Lacks a proper export function for importing into other apps.
Suppose 2FAS stops working in the future, how do you get 2FA codes in the next app?
Ravio OTP can create a QR code for each item you can scan.

@2fas-com
Copy link
Contributor

Thank you for pointing that out, however, the 2FAS codes can be exported into a JSON file, which is supported by other applications.

@ghost
Copy link
Author

ghost commented Jul 27, 2023

How do I export them to JSON? I can export them are in .2fas

@2fas-com
Copy link
Contributor

The exported file is a JSON file. It's just named .2fas so that it's recognisable, and you know it's from our app.

@ghost
Copy link
Author

ghost commented Jul 27, 2023

It would be more convenient if you follow the example of Ravio OTP, which can create a QR code for each item, in case a future app does not allow the amount from a json file.

@pzbitskiy
Copy link

pzbitskiy commented Aug 20, 2023

You can use some bash to get QR codes from the non-encrypted backup:

jq -r '.services[] | .name + "," + .secret + "," +  .otp.link' backup.2fas |
while read -r line; do
IFS=',' read -r name secret uri <<< $line;
echo $uri | sed "s/\[hidden\]/$secret/" | qrencode -o "$name".png
done

Not ideal but works.

@2fas-com
Copy link
Contributor

We will be working on this feature, but it currently has a very low priority.
In the meantime, you can explore some 3rd party tools.
There are free, open-source converters on GitHub for offline use that can convert 2FAS files into QR Codes.

Example: https://github.com/S1m0nk4c/2fas-backup-to-QR

Please be aware that this is a 3rd party solution and it is not supported by us.
Additionally, remember that keeping unencrypted file with secret keys or QR codes on your computer carries a security risk.

@KobeW50 KobeW50 added the Feature New feature or request label Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants