I'm having trouble location information about whether or not encrypting a file's header is good enough. The files in question are media files that range in size from 500mb to 4GB.
If I had no performance or time constraints, I would simply encrypt the entirety with AES256. However, with my current implementation (in C#
), it takes about 3 minutes to decrypt a 2GB file. This is about 2m45s beyond my time limits.
How vulnerable is that file's contents without the file header?
Apologies if this question is silly, this is my first foray into file security.
AesCryptoService
provider takes about 15s for 2GB when using AES128. If you're willing to use native interop you should be able to speed that up a lot, especially if it uses AES-NI. 2) If performance matters, use AES-128 not AES-256. It's still very secure and about 1.4 times faster. $\endgroup$