matteo-convertino / otpmanager-nextcloud

Nextcloud app that allows you to manage your OTP (TOTP/HOTP) codes easily
GNU Affero General Public License v3.0
25 stars 5 forks source link

FreeOTP Plus to Nextcloud OTP Manager conversion script #20

Closed betabrandao closed 7 months ago

betabrandao commented 8 months ago

I created an simple python script to convert the Free OTP json file to otpmanager json format:

https://github.com/betabrandao/utils/blob/main/filecopys/freeotp2nextcloudotp.py

Simple use: python3 freeotp2nextcloudotp.py freeotp_exported.json >> otpmanager.json

:)

matteo-convertino commented 8 months ago

I'm really grateful that you developed it. As soon as possible I will mention it in the readme and, why not, also in the mobile and web app.

It would be really cool to have more scripts like this that allow the user to easily import all of his accounts from other software as well.

matteo-convertino commented 7 months ago

I was trying to test the script but I don't understand one thing: the FreeOTP app when I export the backup file is an xml while the script expects a json. What am I doing wrong?

matteo-convertino commented 7 months ago

I'm closing only because it doesn't make sense to have it as an open "issue". However, I am waiting for the response since I would like to add this script to OTP Manager.

betabrandao commented 7 months ago

I was trying to test the script but I don't understand one thing: the FreeOTP app when I export the backup file is an xml while the script expects a json. What am I doing wrong?

Ohh I'm sorry. This script run in FreeOTP+ , fork of Redhat FreeOTP app.

matteo-convertino commented 1 month ago

screenshot With a little delay I wanted to let you know that I added this in the modal to import accounts, so if anyone needs it they can use your script. Thanks again :heart:.

zyll71 commented 3 weeks ago

I was trying to test the script but I don't understand one thing: the FreeOTP app when I export the backup file is an xml while the script expects a json. What am I doing wrong?

I just ran into the same issue. Has this been solved? If yes, please, how?

matteo-convertino commented 3 weeks ago

Simply Free OTP and Free OTP Plus are two different apps. Most likely you have Free OTP, while the script works with Free OTP Plus.