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 :
hash('sha512',($salt.$password));
and
hash('sha512',($password.$salt));
But it doesnt work ! Any suggestions ?