hello,
after you encrypt a file using CryptEncrypt with a block cipher key which has a block size of 8 bytes, filesize increases by 8 bytes. but when you decrypt the encypted file using CryptDecrypt, the filesize of the decrypted file is still bigger than the original file size by 8 bytes. how can i get the original file(=the original filesize) after decrypting?
Truncate it to its original size and if necessary, store that size somewhere in the file. Just check the documentation to see if there is a technique to get the unencrypted length.
Most likely redundant information after decryption.. I'd think 8)