title: Is there any way to use dbo.HashPasswordString() of SQL Server with PHP similar to md5()?
body: <p>I'm trying to create a registration and login form. Using SQL Server, I can do that like:</p>
  <pre><code>SELECT Account, Password
  FROM USER
  WHERE Account = ? and Password = dbo.HashPasswordString(?)
  </code></pre>
  <p>However, what I'm trying to do is a PHP function to handle the hashing without using <code>dbo.HashPasswordString()</code> in the query. It seems <code>HashPasswordString()</code> of SQL Server is not a MD5, so I can't do it just like <code>md5()</code> function in PHP. Is there any PHP function similar to that in SQL Server, so I can just hash it in PHP before inserting it in the query for example.</p>