The .Net Framework supports encryption of connection strings in the app.config file. This replaces the need to use the registry.
See this MSDN article[^] for more details.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)