cryptography icon indicating copy to clipboard operation
cryptography copied to clipboard

Xchacha20 issue going from 2.0.4 to 2.0.5

Open STINightFall opened this issue 4 years ago • 0 comments

A string encrypted with Xchacha20 on version 2.4 can't be decrypted with 2.5. Rolling back to 2.4, it works as expected. The error is "SecretBox has wrong message authentication code (MAC)"

Is 2.5 not backwards compatible with 2.4?

Here is the cipher:

final cipher = Xchacha20(macAlgorithm: Hmac.sha256());

Thanks!

STINightFall avatar Dec 09 '21 22:12 STINightFall