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