private static void Main(string[] args) { CryptLib crypt = new CryptLib("password", "iv"); string encryptedText = crypt.Encrypt("this is a secret message"); Console.WriteLine(encryptedText); string decryptedText = crypt.Decrypt(encryptedText); Console.WriteLine(decryptedText); Console.ReadLine(); }
protected void Button1_Click(object sender, EventArgs e) { lbl_encrypted.Text = CryptLib.Encrypt(txt_encr.Text); }