Open Tsaukpaetra opened 4 years ago
The decryption panic snuck in when I fixed an earler decryption unpadding issue, oops. https://github.com/alexzorin/authy/commit/3eabc63e630f7e0a5252c69d9bddf9b0d8338088 should fix it.
That said, I think that this error almost certainly means either wrong password or bad data.
Couple of things you can do:
AUTHY_DEBUG=1
environment variable set and check if the encrypted_seed
+seed
it's failing to decrypt looks "normal" or not.For those who aren't launching the tool in terminal, might include one last "Press any key to exit" prompt, the window just disappears upon completion.
I guess this is specific to Windows? Makes sense, but I'm not sure if there's a way to tell whether a user ran via "double click" rather than from cmd.exe. It's got a terminal attached either way. I'll have a think.
Yeah, I just fat-fingered the password when I discovered it.
The terminal thing might not necessarily be Windows-only, haven't tried it on anything else though. I don't recall if it's possible to know if the program was launched directly or inside the terminal, but I'm betting the answer would be no.
Console log:
Strange that it was a panic, but there you go. :)
For those who aren't launching the tool in terminal, might include one last "Press any key to exit" prompt, the window just disappears upon completion.