title: Encryption password FOSUserBundle
body: <p>I have a symfony project using FOSUSerBundle to manage users , Now I need to access to Database via a Simple Rest Webservice ,
  The encryption in the registration is : Sha512 , How can i get the same hash result as FOS 
  I tried :</p>
  
  <pre><code>hash('sha512',($salt.$password));
  </code></pre>
  
  <p>and</p>
  
  <pre><code>hash('sha512',($password.$salt));
  </code></pre>
  
  <p>But it doesnt work ! Any suggestions ?</p>