المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Decrypting using MD5



C# Programming
01-09-2010, 02:00 PM
Hi all, i use the following code to encrypt a string using MD5:

using System.Security.Cryptography;

public static string EncodePassword(string originalPassword)
{
Byte[] originalBytes;
Byte[] encodedBytes;
MD5 md5;

// Conver the original password to bytes; then create the hash
md5 = new MD5CryptoServiceProvider();
originalBytes = ASCIIEncoding.Default.GetBytes(originalPassword);
encodedBytes = md5.ComputeHash(originalBytes);

// Bytes to string
return System.Text.RegularExpressions.Regex.Replace(BitConverter.ToString(encodedBytes), "-", "").ToLower();
}

But i don't know how to decrypt it using MD5 ????????

Do anyone help me ?????????

Regards...