First of all I am not very familiar with the world of encryption so please be nice.
I have got a data that should store in an xml using NetDataContractSerializer. This xml file gets the size of from 5MB to 10MB. So I am zippping this file with other xml files (not required encryption due to insensitive info) into one file in order to lower the size.
Due to security reason, I like to encrypt some part of this xml (still major part of a xml file) but it will need to be compressed with other files and encrypted data will not compressed much at the end.
Some articles say compression need to be done prior to encryption. Is there any efficient way of serializing the data and compressed then encrypted? Or all at once conveniently?
Anyone faced similar issue and resolved in a different/smarter way?