CriptConnectionString-NET-6 (nuget): This package you can use to encrypt and decrypt your database connection string. We can use private key. You can use public key and private key to crypt and decrypt your connection string.  C# Example:  CriptConnectionString.Cripto cripto = new CriptConnectionString.Cripto(); Console.WriteLine(cripto.EncryptAES(connection, "public key", "private key"));  You can see more in this article: https://ecode10.com/artigo/3055/CriptConnectionString
Keywords: .net|6|security|criptography|decrypt|encrypt|public|key|private|mauriciojunior.net