2

I've (finally) successfully got
System.Configuration.Configuration.ConfigurationSection.SectionInformation.ProtectSection
working to en/de-crypt an XML config file.

But I just read that both RsaProtectedConfigurationProvider and DataProtectionConfigurationProvider will only work on one given computer, which makes sense now that I think about it.

What is the easiest way to enable users to share an encrypted XML config file and allow them to all open it. I read about rolling my own encryption but is there any easier way?

Community
  • 1
  • 1
Eliezer
  • 429
  • 1
  • 9
  • 20
  • 3
    You can use symmetric key encryption, such as Rijndael, etc. and just use a shared key (password). – dub stylee Aug 13 '15 at 17:20
  • 1
    You need to use the same MachineKey. – SLaks Aug 13 '15 at 17:23
  • What are you trying to protect here? A service endpoint? A local database? Something else? – Gregory A Beamer Aug 13 '15 at 17:45
  • @GregoryABeamer, an XML config file containing usernames/passwords. Users need to be able to load it, modify it, save it - then share it with another user. – Eliezer Aug 13 '15 at 17:49
  • I wouldn't store those kind of information localy, winforms can be easily reversed, so your encyption/decryption methods can be found, I suggest you to save that in a database using a webservice. – Kyore Nov 20 '15 at 14:59

0 Answers0