あなたは、この使用することができます:RSAProtectedConfigurationProviderまたはDPAPIProtectedConfigurationProviderを使用して暗号化を実行するために
try
{
// Open the configuration file and retrieve
// the connectionStrings section.
Configuration config = ConfigurationManager.
OpenExeConfiguration(exeConfigName);
ConnectionStringsSection section =
config.GetSection("connectionStrings")
as ConnectionStringsSection;
if (section.SectionInformation.IsProtected)
{
// Remove encryption.
section.SectionInformation.UnprotectSection();
}
else
{
// Encrypt the section.
section.SectionInformation.ProtectSection(
"DataProtectionConfigurationProvider");
}
// Save the current configuration.
config.Save();
Console.WriteLine("Protected={0}",
section.SectionInformation.IsProtected);
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
たりエンタープライズライブラリデータアクセスアプリケーションブロックを。 リンク: http://msdn.microsoft.com/en-us/library/89211k9b(VS.80).aspx
RijndaelManagedを使用して、接続文字列を暗号化/復号化することができます。 – mbadeveloper
Googleで回答が見つかりませんでしたか?これは本当によく文書化されています。それともXamarinのために問題なのですか? – smoore4
Googleでは、web.configで接続文字列を暗号化することについて話しています。 – Phill