title: Encode and Decode Passwords in WPF Applications
body: <p>I have a WPF applications that contains a user form. I have a password field I need to decript it,  I just have an encrypt method for this:</p>
  
  <pre><code>public static string Encode(string value)
      {
          var hash = System.Security.Cryptography.SHA1.Create();
          var encoder = new System.Text.ASCIIEncoding();
          var combined = encoder.GetBytes(value ?? "");
          return BitConverter.ToString(hash.ComputeHash(combined)).ToLower().Replace("-", "");
  
      }
  </code></pre>
  
  <p>How to create a Decode method for this?</p>