My problem is related on how store massive informations on a 3D terrain. These informations should be secret and since they are very bulky should also be compressed. I opted for file storage and now I was wondering to know the best pracitces to encrypt/compress (or compress/encrypt) object data to files.
I just don't even know if it would be better to write to file and then compress and encrypt it or if work on a data stream and then write to file.
Any suggestion will be appreciated!