Well, a week ago I began to use c#, and I'm a bit confused.
I began with cryptography, basically hash and salt.
My teacher gave us some "homework" for doing this weekend and all my mates and me are very confused.
I have this simple code:
The exercise consists of "decrypting" a hashed password (was hashed using SHA256managed) and we know it is a 4 character number.
I tried doing it with loops and decrypting all characters one by one but I got stuck and I don't know how to continue.
If you can give me a hand with this I'd really appreciate it.
Thanks!
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();
}
}
}