I want to encrypt an object of my Windows Forms application using RSACryptoServic eProvider class and then serialize the encrypted object. The problem is, the RSACryptoServic eProvider.Encry pt() method takes the data to be encrypted as a byte[] parameter and not System.Object.
Is there any workaround for this?
Is there any way to convert any arbitrary object into a byte array WITHOUT serializing the plain object ? (serializing...