Ti può servire dare un'occhiata a:

http://php.net/manual/en/function.password-hash.php
http://php.net/manual/it/function.crypt.php