title: Is there any way for Decrypt Password in aspnet_Membership table?
body: <p>I forgot password of admin.I must add new user for web application.</p>
  
  <p>I dont know which method is encrypted for password in aspnet_Membership  table.</p>
  
  <p>E.g </p>
  
  <pre><code>select * from aspnet_Membership where UserId='5c908238-f526-4f4c-aac6-a4b284483137'
  </code></pre>
  
  <p>Password : zEttVSSsEktBXeAHKiB+ihtD9OY=</p>
  
  <p>PasswordSalt : v20qOhDVPnwzY8KPimy9XA==</p>
  
  <p>In web.config </p>
  
  <pre><code>     &lt;membership defaultProvider="eaMemberShipProvider" userIsOnlineTimeWindow="15"&gt;
  &lt;providers&gt;
  
      &lt;add name="eaMemberShipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web,
     Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" 
  
      connectionStringName="MyDB" 
     enablePasswordRetrieval="false" enablePasswordReset="true" 
  
     requiresQuestionAndAnswer="true" 
      applicationName="MyApplication" requiresUniqueEmail="false" passwordFormat="Hashed" 
  
      maxInvalidPasswordAttempts="5" 
       minRequiredPasswordLength="1" minRequiredNonalphanumericCharacters="0" 
  
        passwordAttemptWindow="10" passwordStrengthRegularExpression="" /&gt;
  
    &lt;/providers&gt;
      &lt;/membership&gt;
  </code></pre>
  
  <p>And I tried Decrypt  by a program in C# like this </p>
  
  <pre><code>    public static string EncodePasswordToBase64(string password)
      {
          try
          {
              byte[] encData_byte = new byte[password.Length];
              encData_byte = System.Text.Encoding.UTF8.GetBytes(password);
              string encodedData = Convert.ToBase64String(encData_byte);
              return encodedData;
          }
          catch (Exception ex)
          {
              throw new Exception("Error in base64Encode" + ex.Message);
          }
      }
  
  
      public string DecodeFrom64(string encodedData)
      {
          System.Text.UTF8Encoding encoder = new System.Text.UTF8Encoding();
  
          System.Text.Decoder utf8Decode = encoder.GetDecoder();
  
          byte[] todecode_byte = Convert.FromBase64String(encodedData);
  
          int charCount = utf8Decode.GetCharCount(todecode_byte, 0, todecode_byte.Length);
          char[] decoded_char = new char[charCount];
          utf8Decode.GetChars(todecode_byte, 0, todecode_byte.Length, decoded_char, 0);
          string result = new String(decoded_char);
          return result;
      }
  
  
     private void button2_Click(object sender, EventArgs e)
      {
          textBox3.Text = DecodeFrom64(textBox2.Text);
      } 
  </code></pre>
  
  <p>For this password zEttVSSsEktBXeAHKiB+ihtD9OY=  </p>
  
  <p>Textbox3=  �KmU$�KA]�* ~�C�</p>