title: Decrypting ASPNET_Membership Password
body: <p>I am trying to decrypt my password stored in <code>aspnet_membership</code> table...</p>
  
  <p>I am using the following code,        </p>
  
  <pre><code>Dim encodedPassword() As Byte = System.Text.Encoding.UTF8.GetBytes(password)
  encodedPassword = MyBase.EncryptPassword(encodedPassword)
  Dim decryptedPassword() As Byte = MyBase.DecryptPassword(encodedPassword)
  If (decryptedPassword IsNot Nothing) Then
    Return System.Text.Encoding.UTF8.GetString(decryptedPassword, 0, decryptedPassword.Length)
  End If
  </code></pre>
  
  <p>but at the line of <code>DecryptPassword(encodedPassword)</code> it shows error as </p>
  
  <blockquote>
    <p>"Length of the data to decrypt is invalid."</p>
  </blockquote>