Resolved Method to encrypt xml file data shared on multiple machines

Asismey

New member
Joined
Aug 26, 2023
Messages
3
Programming Experience
Beginner
Hi,

I have a application which uses a number of xml files for storing data, I want to encrypt the data so they cannot be easily changed by unauthorised people, the issue I have come across is when I use an encryption like this example here EncryptedXml.XmlEncTripleDESUrl Field (System.Security.Cryptography.Xml) it will only decrypt on the machine it was encrypted on, is there a way to use a persistent symmetric key so it will work on any computer / User ?

Its just to stop an xml file being edited easily, no secure data in the file, if they go to the trouble of decompiling ...

Cheers
 
Where did you see that the encryption/decryption will only work on the single machine? That sample code there is just to show you how the class can be used. It's not meant to be production quality code. The sample just takes the randomized initialized key and IV of the DES provider. You can set the key and IV to some known value that you can share between machines.
 

Latest posts

Back
Top Bottom