public void UnusualChars() { var encryptor = new TripleDesStringEncryptor(); var encrypted = encryptor.EncryptString("!@#$%^&*()- +="); var decrypted = encryptor.DecryptString(encrypted); Assert.AreEqual("!@#$%^&*()- +=", decrypted); }
public void SimpleWordDecryptsToSameValueEncrypted() { var encryptor = new TripleDesStringEncryptor(); var encrypted = encryptor.EncryptString("password"); var decrypted = encryptor.DecryptString(encrypted); Assert.AreEqual("password", decrypted); }
public void SimpleWordEncryptsToKnownValue() { var encryptor = new TripleDesStringEncryptor(); var encrypted = encryptor.EncryptString("password"); Assert.AreEqual("wwwfBrRRCDxe3qSYCrri3w==", encrypted); }