Im trying to do the encryption and decryption in sha1 with the help of SHA1CyptoServiceProvider.
The encryption of SHA1 is performed well but i need the code for decryption of SHA1.

Encryption code:

string p="hai";  //input text
SHA1CyptoServiceProvider encrypt=new SHA1CyptoServiceProvider().
byte[] enctxt=encrypt.ComputeHash(Encoding.Default.GetBytes(p));
foreach(byte temp in enctxt)
{
out=temp.ToString("x");
}

thank u pritaeas

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.