Message length Invalid

Discussion related to AES Crypt, the file encryption software for Windows, Linux, Mac, and Java.
Post Reply
ram.tiwari
Posts: 1
Joined: Sat Jan 06, 2018 6:27 pm

Message length Invalid

Post by ram.tiwari »

When i am going to decrypt my Aes Encrypted zip file in my windows 7 machine then it is showing error "Message length invalid" but it is working fine another windows machine where we have encrypted zip file and file size is 75.1 MB. So kindly tell me why it is happening because it is very critical please give us solutions.
User avatar
paulej
Posts: 595
Joined: Sun Aug 23, 2009 7:32 pm
Location: Research Triangle Park, NC, USA
Contact:

Re: Message length Invalid

Post by paulej »

This error is returned when AES Crypt attempts to read a 16 octet cipher block, but the operating system returns only a partial block. In other words, the file has been truncated somehow. If you were to compare these two files, you'd discover they're not exactly the same length.

Try to get the file length down to the exact number of bytes. Be careful about using the file properties window since some information about size isn't the actual file size. If in doubt, use the "direct" command at the command line.

If you're handy at the command line, getting a hash of the two files would tell you if any bytes changed. Here's a tool that will do that: https://www.packetizer.com/security/sha1/
Post Reply