Re: Problem with Image Loading (General questions)

by wodAlan, (6930 days ago) @ Maverick5

Hi Maverick,

I think that I see the problem. Ciphers work on block of data, so when you encrypt, last chunk has to be aligned up to a 'BlockSize' of data, so few bytes are added.
When you decrypt it, those bytes are also added to decrypted file. That's why you see garbage , or like in your case you cannot open the image.
To get rid of it, use Optimized = True, or use PKCS7 padding.
Also I presume that you encrypt your image with wodCrypt.
Hope I helped,

Regards,
Alan

locked

Complete thread: