Encrypting DataConnectionString

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
5 years ago
I would like to encrypt the DataConnectionString and decrypt it at runtime when called or needed.  Given how resourceful hacking can be, I think it is too vulnerable inside the App-_Data folder in plain text.  I am able to do this on my other .NET Core apps with an encrypter and a decrypter method; however, I am looking at the database calls in NopCommerce and can't seem to figure out where to decrypt the connection string.

Has anyone tried to do this with nopCommerce, successfully?
5 years ago
I would imagine you would be modifying

     public partial class DataSettingsManager

          LoadSettings routine would de-encrypt
     and
          SaveSettings routine would encrypt
5 years ago
@Yidna,

Thank you for the reference.  Utilizing the LoadSettings() Method, I was able to secure my SQL Server Connection String.  :)

Have a wonderful day!

Johnny
4 years ago
thanks for this good idea.
Can you share the code of encryption and decryption.

tnanks
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.