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
Tutanota Mail Bad Secret #777
Comments
I just created a Tutanota account to test this and Aegis is able to scan the QR code that is presented. Are you trying to scan a QR code generated by Tutanota, or did you generate one yourself? |
I scan the Tutanota's QR code that generated at their web site. I mean, I used my phone to scan my laptops screen. Now I tried Android app of Tutanota and there was an option like "add to auth app". I am not using the English version of app so I do not know the excat same sentence there. And susccesfully added the secret code to Aegis this time. |
That's exactly what I did. |
Is there any other information that I can provide to you to adress this issue at your side? |
If you could, provide us with an example Tutanota QR code that makes Aegis exhibit the issue when scanned. Make sure it's not valid anymore for any valuable accounts, though. |
Aegis is able to scan that QR code on my device. |
Is there any other thing I can do? |
Can you install a debug APK (https://alexbakker.me/u/iy7igkgs4n.apk), capture a log with ADB (see: https://github.com/beemdevelopment/Aegis/blob/master/CONTRIBUTING.md#capturing-a-log-with-adb) while you try to scan the QR code and share the log here? |
PC terminal gives me this |
Just try the following then:
|
Here is the file. |
Thanks. Looks like the QR code decodes correctly on your device as well. So I really don't know what's going on here. When do you get the error dialog, exactly? Right after scanning the QR code, or when trying to save the new entry? |
I'm wondering if this has something to do with your locale. What happens if you set the language of your device (and Aegis) to English and try to scan the QR code again? |
I changed the Aegis's (not the dev one) language to English and not the system language now and tried again to scan. And yeah, it works like a charm. |
So this is a pretty bizarre bug. We're upper-casing the secret before passing it to the base 32 decoder. But because Java's
I've fixed this in 327b7cc. Could you double check that this fixes the issue for you as well? The following APK will install beside your regular Aegis installation, so that nothing gets overwritten while testing: https://alexbakker.me/u/d018oc7sri.apk. |
Yes. Now it works. Waiting for the next update then. |
Thanks a lot for patiently helping us debug this. We've tagged v2.0.1, which contains the fix for this issue. Should be live on Google Play shortly. |
Info
Steps to reproduce
What do you expect to happen?
Getting the secret code.
What happens instead?
Bad Secret Error
Log
The text was updated successfully, but these errors were encountered: