HI ALL,
i want to create own algorithm for Encrypt & Decrypt like as TripleDes,blow fish algorithm.
Please Help me.
Thanx & regards
MsHema
I WANT TO CREATE ALGORITHM FOR ENCRYPT & DECRYPT
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Niradhip ChakrabortyRank #429 · 5.8K reputationPosted Sep 20, 2009, 9:36 PM EDT
Encryption:
public string EncryptString(string strInput)
{
int i = 0;
string strTemp = null;
for (i = 0; i <= strInput.Length - 1; i++)
{
int charValue = Convert.ToInt32(strInput[i]); // converting in ascii
charValue ^= 30;
strTemp += char.ConvertFromUtf32(charValue);
}
return strTemp;
}
Decryption:
public string DecryptString(string strInput)
{
int i = 0;
string strTemp = null;
for (i = 0; i <= strInput.Length - 1; i++)
{
int charValue = Convert.ToInt32(strInput[i]); // converting in ascii
charValue ^= 30;
strTemp += char.ConvertFromUtf32(charValue);
}
return strTemp;
}