Possible Duplicate:
Removing Padded Value in Decrypted Message
I tried to encrypt and decrypt a file in ECB mode using AES Algorithm but I encountered one problem during decryption, I don't know how to remove the padded value.. because every byte in a file is unpredicted.. I am only using 0x00 in padding.
how to remove the padded value in a encrypted file during decryption? how can I also determined that is a padded value and not a original byte of a file.