Changeset 7690
- Timestamp:
- 04/02/12 19:52:05 (13 years ago)
- Location:
- trunk/sources/HeuristicLab.Clients.Common/3.3
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Clients.Common/3.3/ClientFactory.cs
r7259 r7690 41 41 where T : ClientBase<I>, I 42 42 where I : class { 43 return CreateClient<T, I>(endpointConfigurationName, remoteAddress, Settings.Default.UserName, Settings.Default.Password);43 return CreateClient<T, I>(endpointConfigurationName, remoteAddress, Settings.Default.UserName, CryptoService.DecryptString(Settings.Default.Password)); 44 44 } 45 45 public static T CreateClient<T, I>(string endpointConfigurationName, string remoteAddress, string userName, string password) … … 71 71 public static ChannelFactory<I> CreateChannelFactory<I>(string endpointConfigurationName, string remoteAddress) 72 72 where I : class { 73 return CreateChannelFactory<I>(endpointConfigurationName, remoteAddress, Settings.Default.UserName, Settings.Default.Password);73 return CreateChannelFactory<I>(endpointConfigurationName, remoteAddress, Settings.Default.UserName, CryptoService.DecryptString(Settings.Default.Password)); 74 74 } 75 75 public static ChannelFactory<I> CreateChannelFactory<I>(string endpointConfigurationName, string remoteAddress, string userName, string password) -
trunk/sources/HeuristicLab.Clients.Common/3.3/HeuristicLab.Clients.Common-3.3.csproj
r7435 r7690 108 108 <Reference Include="System.Core" /> 109 109 <Reference Include="System.Drawing" /> 110 <Reference Include="System.Security" /> 110 111 <Reference Include="System.ServiceModel" /> 111 112 <Reference Include="System.Windows.Forms" /> … … 117 118 <ItemGroup> 118 119 <Compile Include="ClientFactory.cs" /> 120 <Compile Include="CryptoService.cs" /> 119 121 <Compile Include="PasswordDialog.cs"> 120 122 <SubType>Form</SubType> -
trunk/sources/HeuristicLab.Clients.Common/3.3/PasswordDialog.cs
r7259 r7690 32 32 private void PasswordDialog_Load(object sender, EventArgs e) { 33 33 usernameTextBox.Text = Settings.Default.UserName; 34 passwordTextBox.Text = Settings.Default.Password;34 passwordTextBox.Text = CryptoService.DecryptString(Settings.Default.Password); 35 35 savePasswordCheckBox.Checked = Settings.Default.SavePassword; 36 36 } … … 41 41 Settings.Default.Password = string.Empty; 42 42 Settings.Default.Save(); 43 Settings.Default.Password = passwordTextBox.Text;43 Settings.Default.Password = CryptoService.EncryptString(passwordTextBox.Text); 44 44 if (savePasswordCheckBox.Checked) 45 45 Settings.Default.Save(); -
trunk/sources/HeuristicLab.Clients.Common/3.3/Properties/Settings.Designer.cs
r7435 r7690 2 2 // <auto-generated> 3 3 // This code was generated by a tool. 4 // Runtime Version:4.0.30319. 2394 // Runtime Version:4.0.30319.530 5 5 // 6 6 // Changes to this file may cause incorrect behavior and will be lost if … … 38 38 [global::System.Configuration.UserScopedSettingAttribute()] 39 39 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 40 [global::System.Configuration.DefaultSettingValueAttribute("anonymous")]41 public string Password {42 get {43 return ((string)(this["Password"]));44 }45 set {46 this["Password"] = value;47 }48 }49 50 [global::System.Configuration.UserScopedSettingAttribute()]51 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]52 40 [global::System.Configuration.DefaultSettingValueAttribute("True")] 53 41 public bool SavePassword { … … 59 47 } 60 48 } 49 50 [global::System.Configuration.UserScopedSettingAttribute()] 51 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 52 [global::System.Configuration.DefaultSettingValueAttribute("AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAA36TvN4MDBkWUU6yPrzj49gAAAAACAAAAAAADZgAAwAAAABAAA" + 53 "ABr3+B3SidbFwV5hCTHGoESAAAAAASAAACgAAAAEAAAAGSI+4CIIV5GmEl09qLBIxIYAAAAkpj3t9H1L" + 54 "BYhpUjjoM6qEc83XlY0xbnuFAAAADY3OscJ1F9ThR3SHB0sLax4TAN8")] 55 public string Password { 56 get { 57 return ((string)(this["Password"])); 58 } 59 set { 60 this["Password"] = value; 61 } 62 } 61 63 } 62 64 } -
trunk/sources/HeuristicLab.Clients.Common/3.3/Properties/Settings.settings
r4387 r7690 6 6 <Value Profile="(Default)">anonymous</Value> 7 7 </Setting> 8 <Setting Name="Password" Type="System.String" Scope="User">9 <Value Profile="(Default)">anonymous</Value>10 </Setting>11 8 <Setting Name="SavePassword" Type="System.Boolean" Scope="User"> 12 9 <Value Profile="(Default)">True</Value> 13 10 </Setting> 11 <Setting Name="Password" Type="System.String" Scope="User"> 12 <Value Profile="(Default)">AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAA36TvN4MDBkWUU6yPrzj49gAAAAACAAAAAAADZgAAwAAAABAAAABr3+B3SidbFwV5hCTHGoESAAAAAASAAACgAAAAEAAAAGSI+4CIIV5GmEl09qLBIxIYAAAAkpj3t9H1LBYhpUjjoM6qEc83XlY0xbnuFAAAADY3OscJ1F9ThR3SHB0sLax4TAN8</Value> 13 </Setting> 14 14 </Settings> 15 15 </SettingsFile> -
trunk/sources/HeuristicLab.Clients.Common/3.3/app.config
r4387 r7690 11 11 <value>anonymous</value> 12 12 </setting> 13 <setting name="Password" serializeAs="String">14 <value>anonymous</value>15 </setting>16 13 <setting name="SavePassword" serializeAs="String"> 17 14 <value>True</value> 15 </setting> 16 <setting name="Password" serializeAs="String"> 17 <value>AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAA36TvN4MDBkWUU6yPrzj49gAAAAACAAAAAAADZgAAwAAAABAAAABr3+B3SidbFwV5hCTHGoESAAAAAASAAACgAAAAEAAAAGSI+4CIIV5GmEl09qLBIxIYAAAAkpj3t9H1LBYhpUjjoM6qEc83XlY0xbnuFAAAADY3OscJ1F9ThR3SHB0sLax4TAN8</value> 18 18 </setting> 19 19 </HeuristicLab.Clients.Common.Properties.Settings>
Note: See TracChangeset
for help on using the changeset viewer.