2 Replies - 778 Views - Last Post: 28 September 2012 - 08:32 PM

Encryption problem.

Posted 28 September 2012 - 06:40 PM

I am currently making a program to encrypt and decrypt another program. The problem I'm running into is that I am unable to run the decrypted program. It decompiles to the same code. My guess would be the extra bytes it needs to add to make it cryptable. I am using AES with a 128-bit key. If you know a solution to this problem, please reply.

Re: Encryption problem.

Re: Encryption problem.

Posted 28 September 2012 - 08:32 PM

Well basiclly what is happening is I am encrypting a .jar file, and when it is decrypted, it has slightly more bytes because in order to be encrypted/decrypted, the amount of bytes has to be divisible by 16. Is there any known way to get rid of this "padding"?