public string Encrypt(string plainText, string key1, string key2) { var cipherText1 = desMotor.Encrypt(plainText, key1); var finalCipherText = desMotor.Encrypt(cipherText1, key2); return(finalCipherText); }
public void EncryptTest(string plainText, string key, string cipherText) { Assert.Equal(cipherText, desMotor.Encrypt(plainText, key)); }