-
Notifications
You must be signed in to change notification settings - Fork 47
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
[andOTP] cannot import, file corrupted or password wrong #162
Comments
Doesn't work for me plain or encrypted. I think the new andotp for android uses RSA? |
@SuperSandro2000 are u using the latest version? (should be 0.6.3) @calisro what error are u getting? It's weird that both plain and encrypted do not work |
Yes, 0.6.3.1. |
For me it works. I can import both encrypted and plain backup 🤔 |
Did you try it with BattelNet Authenticator and Twitch included in the backup? |
Nope because I don't have either of them. What's so particular about them? 🤔 |
They have a different length. Battle.net is 8 numbers and twitch 7. Also the timeouts vary. See https://github.com/andOTP/andOTP/wiki/Shared-secrets |
I was actually able to import andOTP data with a battle net account in it 🤔 will try with twitch, but it would be faster if you could send me a reproducer 👍 |
I do have the same problem using 0.6.3.1 and otpclient 2.1.0. The strange thing is that the application is asking for 'decryption password' even when I try to import a plain json file. Edit: OK my problem was basically 'wrong usage'. When I opened the app for the first time I was asked to create or import a DB. So I naturally assumed that I could just import the andOTP json file. What I needed to do was to create a brand new DB and then import the andOTP file :) |
@hwoarang glad you solved :) but good point, that's currently not very clear. I'll fix it with the next release 👍 |
fix an issue encountered by a user and reported in #162
I'm closing this until someone is able to provide me a reproducer! |
When I import the backup in plain text nothing crashes but when I import the encrypted one it has an error. I am not sure how to strip private information or edit the encrypted backup so I sadly can't provide you with a working example. |
@SuperSandro2000 if you're willing to help me debug this issue, I can work on it, no problem :) I really would like to find and fix this bug.
If you agree with that, I'll proceed with developing a simple CLI for that. What do you think? |
I did some further testing and it has nothing todo with the content of the backup. My password is just to long and somewhere it is overflowing I guess. Here is a dummy backup with the password |
nice, thanks! Imma look into it asap :) |
Using a python script:
with otpclient:
Some weird thing is happening when otpclient derives a long password... |
Found the error and fixed it :) thanks a lot @SuperSandro2000 for your help! |
If you confirm me it's fixed, I'll publish a new release :) |
Worked with the example and my real backup! Thank you very much! |
Niceeeee :D |
I wanted to import an encrypted andOTP backup and I get this error:
I copied the file from one of my backups and from my phone directly and the password from my password manager. I get no other error in the console. It could be that the password it the long as I have a 100+ char one.
Importing plain text works like a charm.
The text was updated successfully, but these errors were encountered: