I have a Byte[] field that is a file contents that I need to encrypt. Nothing special or fancy, just enough to make sure the next person who gets it won’t be able to easily decode it without some effort. I would use the encryption that comes with .Net Framework 4.0 but I definitely do not need to make the file any bigger than it is.
I thought about just simply reversing the array or adding a few bytes to the end…?
If I can avoid making the array to much bigger that would be great.
Any suggestions?
Thanks!
Does the addition of 1-16 bytes hurt? AES will pad by default using the below method: