cryptography
cryptography copied to clipboard
Xchacha20 issue going from 2.0.4 to 2.0.5
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!