Run time exception while decrypting string => Tag Mismatch
Hi, Can anyone help me out on the javax.crypto.AEADBadTagException error in the 'Email Decrypt' functionality. But few days back, i can able to trigger emails successfully. Kindly check the below stack trace, for more information=> com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: javax.crypto.AEADBadTagException: Tag mismatch! at Encryption.Decrypt (Error : '') at EmailTemplate.SendEmailMessage (SubMicroflow : 'Decrypt') at EmailTemplate.IVK_SendTestMessage (SubMicroflow : 'SendEmailMessage') Advanced stacktrace: at com.mendix.modules.microflowengine.microflow.impl.ErrorEvent.throwError$1(ErrorEvent.scala:17) Caused by: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: javax.crypto.AEADBadTagException: Tag mismatch! FYI: I reffered to the following link https://forum.mendix.com/link/questions/90111 But still i am facing the same, even after re-entering password. Thanks & Regards, Srilatha
In my experience, if you change the encryption key, you will need to re-encrypt any previously entered passwords. In my apps, I have had to re-enter any previously saved email passwords via a page in my app.
After changing the encryption key, any strings encrypted with a different key cannot be un-encrypted.