would it be possible to add some encryption support?
for example, for storing a database connection string;
for security reasons the database connection string
should be stored in encrypted format.
The .NET Framework has a lot of methods to perform
encryption tasks in the System.Security.Cryptography
namespace. I don't think that Nini would take care of
encryption itself but I could add something to the manual
and FAQ to show how to do this.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Kind fo agree but you could provide a middle ground solution.
If the user wants to have all entries encrypted you can accept
an ICryptoTransform when opening the config source. Haven't
tried using the CreateDecryptor and trying to encrypt (or the
other way arround) but it'll probably fail as different algorithm
has different ways to being initialized for Encryption or
Decryption. If this does not work 2 parameters are needed.
If those parameters are given then for each get or set Nini
would encrypt or decrypt the data as needed.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=163900
The .NET Framework has a lot of methods to perform
encryption tasks in the System.Security.Cryptography
namespace. I don't think that Nini would take care of
encryption itself but I could add something to the manual
and FAQ to show how to do this.
Logged In: YES
user_id=101134
Kind fo agree but you could provide a middle ground solution.
If the user wants to have all entries encrypted you can accept
an ICryptoTransform when opening the config source. Haven't
tried using the CreateDecryptor and trying to encrypt (or the
other way arround) but it'll probably fail as different algorithm
has different ways to being initialized for Encryption or
Decryption. If this does not work 2 parameters are needed.
If those parameters are given then for each get or set Nini
would encrypt or decrypt the data as needed.