I am trying to encode a file (say for instance, a wav file) so that once encrypted it cannot be opened or modified until I have decrypted it again back to it’s original form. I’ve been poking around and it seems the best way to do this is with the Blowfish class, by turning the file into a MemoryBlock.
-Is this the best way of going about this? If not is there a better way?
-If so, how do I go about using the Blowfish class to encrypt a MemoryBlock? I guess I need to do some conversion to a 32-bit integer and I need to iterate through the memory block 2 integers at the time?
Any tips or prodding in the right direction would be great, I’m not too sure where to begin. I’ve been able to encrypt text files using strings and Blowfish but don’t know if it is possible to do something similar for an entire file type.