小编Cor*_*ory的帖子

使用sha256managed解密哈希

好吧,一周前我开始使用c#,我有点困惑.

我从加密开始,基本上是哈希和盐.

我的老师给了我们这个周末做的"功课",我和我的所有伙伴都非常困惑.

我有这个简单的代码:

练习包括"解密"散列密码(使用SHA256managed进行哈希处理),我们知道它是一个4个字符的数字.

我尝试使用循环并逐个解密所有字符,但我卡住了,我不知道如何继续.

如果你能帮助我,我真的很感激.

谢谢!

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Security.Cryptography;
using System.IO;

namespace Examen
{
    class Program
    {
        static void Main(string[] args)
        {

            string hashed_password = "YOSGtSkJ41KX7K80FEmg+vme4ioLsp3qr28XU8nDQ9c=";



            Console.ReadLine();
        }


    }
}
Run Code Online (Sandbox Code Playgroud)

c# encryption hash

-1
推荐指数
1
解决办法
8155
查看次数

标签 统计

c# ×1

encryption ×1

hash ×1