-1
protected void Button1_Click(object sender, EventArgs e)
{
string EPass = Helper.ComputeHash(txtPassword.Text, "SHA512", null);
lblmsg.Text = EPass; //Encrypting The Plain Text To Cipher Text
}
protected void btnAuthenticate_Click(object sender, EventArgs e)
{
bool flag = Helper.VerifyHash(txtPassword.Text, "SHA512", lblmsg.Text);
if (flag == true)
{
Label1.Text = "You are the correct user";
}
}
我可以使用什麼方法解密密文文本?純文本並將純文本顯示到標籤中。謝謝。將密碼從密文中解密爲純文本
你正在使用散列函數,而不是一個算法,你不能像散列算法一樣解密散列!所以不,你不能將散列文本解密爲純文本! –
感謝@AppDeveloper的回覆,任何簡單的方法都可以將密文解密爲純文本。謝謝 – Michael
好吧,你不能說解密,但破解是可能的! –