Free packages available on the Microsoft website to help with software development day by day.
Perfil NuGet Microsoft - Mauricio Junior
This package you can use to encrypt and decrypt your database connection string. We are using public key and private key using .NET 6. .
see more here on Nuget Microsoft