public void UnusualChars()
 {
     var encryptor = new TripleDesStringEncryptor();
     var encrypted = encryptor.EncryptString("!@#$%^&*()- +=");
     var decrypted = encryptor.DecryptString(encrypted);
     Assert.AreEqual("!@#$%^&*()- +=", decrypted);
 }
 public void Simple()
 {
     var encryptor = new TripleDesStringEncryptor();
     var encrypted = encryptor.EncryptString("password");
     var decrypted = encryptor.DecryptString(encrypted);
     Assert.AreEqual("password", decrypted);
 }
 public void SetSosOnlinePassword(string rawPassword)
 {
     SosOnlinePassword = new TripleDesStringEncryptor().EncryptString(rawPassword);
 }
Example #4
0
 public void SetPassword(string value)
 {
     EncryptedPassword = new TripleDesStringEncryptor().EncryptString(value);
 }
 public void SetPassword(string value)
 {
     EncryptedPassword = new TripleDesStringEncryptor().EncryptString(value);
 }
 public void SetSosOnlineProxyPassword(string rawPassword)
 {
     SosOnlineProxyPasswordEncrypted = new TripleDesStringEncryptor().EncryptString(rawPassword);
 }
 public void SimpleWordEncryptsToKnownValue()
 {
     var encryptor = new TripleDesStringEncryptor();
     var encrypted = encryptor.EncryptString("password");
     Assert.AreEqual("wwwfBrRRCDxe3qSYCrri3w==", encrypted);
 }