encryption in c#
- by Raja
i am implementing on algorithm in c#.
it has encrypt one word . i have check using decrypt also.
now i am using a textbox. want to pass a string in that text box that gives my whole string as cypher text. i dont know how to use. i have mad one loop there and calacated the string length.
now suppose my function is
it is PasswordEncryptor.cs file
public static double REncryptText(double m)
{// code
}
this fuction is doing a single number convertion into the encrpt
and in code
i know this is wrong i want try in this
for (int i = 0; i <= 32; i++)
{
int [] cyph = new int[5];
// cyph=PasswordEncryptor.REncryptText(i);
cypherText.Text = c;
}
i want that after entering the string into textbox it will call that string till string length and and by adding all the part of string one by one, i will get a final encrpytion code and will use further
please help me in doing this