I'am trying to encrypt and decrypt a text string by calling a SimpleAES class which i got from this accepted anwser Simple 2 way encryption
My problem is how to call this class from Form1 and get the encrypted/decrypted anwser returned?
I tried the following:
private void encryptbtn_Click(object sender, EventArgs e)
{
string encryptkey = inputtxt.Text;
SimpleAES simpleAES1 = new SimpleAES();
simpleAES1.EncryptToString(encryptkey);
decrypttxt.Text = encryptkey.ToString();
}
Tried to find some basics on classes but couldn't find any covering returning from a class.