Exemplo n.º 1
0
 private void ultraButton2_Click(object sender, EventArgs e)
 {
     Gipasoft.Security.SymmetricCryptography<TripleDESCryptoServiceProvider> sc = new Gipasoft.Security.SymmetricCryptography<TripleDESCryptoServiceProvider>(Gipasoft.Security.Login.Instance.Key, Gipasoft.Security.Login.Instance.IV);
     string usernameStr = sc.Decrypt(utente.Text);
     string passwordStr = sc.Decrypt(password.Text);
     MessageBox.Show("Utente: " + usernameStr + Environment.NewLine + "Password: " + passwordStr);
 }
Exemplo n.º 2
0
 private void openService()
 {
     _service = new SferaServiceClient("SferaServiceCompact");
     Gipasoft.Security.SymmetricCryptography<TripleDESCryptoServiceProvider> sc = new Gipasoft.Security.SymmetricCryptography<TripleDESCryptoServiceProvider>(Gipasoft.Security.Login.Instance.Key, Gipasoft.Security.Login.Instance.IV);
     _service.ClientCredentials.UserName.UserName = sc.Encrypt("giorgio&zeth");
     _service.ClientCredentials.UserName.Password = sc.Encrypt("gipasoft");
     _service.Open();
 }