tasos-py / AES-Encryption-Classes

AES encryption in Python, PHP, C#, Java, C++, F#, Ruby, Scala, Node.js
MIT License
145 stars 58 forks source link

Mac check failed! #1

Closed khspace closed 5 years ago

tasos-py commented 5 years ago

This error message means that the ciphertext or password/key is invalid. When encrypting data the MAC of ciphertext is computed and appended to the ciphertext. When decrypting data the MAC of ciphertext is computed again, and then it is compared with the received MAC to verify the authenticity of the ciphertext. If this check fails an exception is raised and decryption is aborted. If you think the ciphertext and password are correct, please provide enough details so that I can reproduce the error.