public void TestDecrypt() { RSA rsa = RSA.Create(); ICrypter crypter = new RSAPasswordCrypter(rsa); string encrypted = crypter.EncryptString("testmessage"); string decrypted = crypter.DecryptString(encrypted); Assert.AreEqual("testmessage", decrypted); }