Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Decryption failed #30

Closed
Reduxx opened this issue Jun 18, 2024 · 4 comments · Fixed by #32
Closed

Decryption failed #30

Reduxx opened this issue Jun 18, 2024 · 4 comments · Fixed by #32

Comments

@Reduxx
Copy link

Reduxx commented Jun 18, 2024

On 2024-06-11 I could successfully run the program and decrypt all my tokens with the backup password. After that i removed the new device from the account.

However I tried this again today (registering as a new device) and after entering the same backup password as last time it failed.

2024/06/18 15:38:13 Failed to decrypt token XXX:xxx: decryption failed

I have tried to disable the backup password and enable it again, but to no avail.

@ceramicwhite
Copy link

Authy now dynamically increases the amount of rounds of password-based key derivation function for encrypting seeds.

Mine is set 100000 currently.

Run AUTHY_DEBUG=1 authy-export

Check what "key_derivation_iterations": is set at

Then modify crypto.go kdfRounds to match yours and rebuild

for example I set: kdfRounds = 100000

@Reduxx
Copy link
Author

Reduxx commented Jun 19, 2024

Thank you! That worked perfectly. Maybe this could be mentioned somewhere in the Readme or automatically be set when the api response comes back.

@pdtan
Copy link

pdtan commented Jun 22, 2024

tried to modify kdfRounds to match key_derivation_iterations but still got 'Decryption failed'

@WhitespaceQ
Copy link

WhitespaceQ commented Jun 23, 2024

The master branch still couldn't decrypt keys, can you check and reopen this issue?

edit: as of commit 6124871

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants