title: ASP.NET Membership Password Answer Value in PHP
body: <p>Any one knows how to make Password Answer value with PHP?
  This is required when we change or reset password.
  I've figured out how to make Password value, but this method doesn't work for Password Answer value.</p>
  
  <pre><code>$salt = '9IrVZRGqwEMfzG3aFdrzEg=='; // Straight from the DB
  $password = 'password'; // Password value in text
  
  $salt = base64_decode($salt); 
  $utf16Password = mb_convert_encoding($password, 'UTF-16LE', 'UTF-8');
  echo base64_encode(sha1($salt . $utf16Password, true));
  </code></pre>
  
  <p>There might be a way to get it as above.
  Please help me.
  Thank you.</p>