/// <summary> /// Decrypt the ciphertext message /// </summary> /// <param name="ciphertext"></param> /// <param name="key"></param> /// <returns></returns> public static string Decrypt(string ciphertext, string key) { return(Vigenere.ProcessKey(ciphertext, key, -1)); }
/// <summary> /// Encrypt the cleartext message /// </summary> /// <param name="cleartext"></param> /// <param name="key"></param> /// <returns></returns> public static string Encrypt(string cleartext, string key) { return(Vigenere.ProcessKey(cleartext, key, 1)); }