コード例 #1
0
ファイル: Util.cs プロジェクト: gojeda04/latch-plugin-pGina
 internal static string SetSettingsString(string setting)
 {
     return(Util.GetString(ProtectedData.Protect(Util.GetBytes(setting), null, DataProtectionScope.LocalMachine)));
 }
コード例 #2
0
ファイル: Util.cs プロジェクト: gojeda04/latch-plugin-pGina
 internal static string GetSettingsString(string o)
 {
     // We can increase security adding some entropy but we are not that paranoid, are we? :)
     return(Util.GetString(ProtectedData.Unprotect(Util.GetBytes((string)o), null, DataProtectionScope.LocalMachine)));
 }