Good authorisation or registration can be good for you personally its good for some will be what he writes, someone will be good to use a framework.
There is a super versatile tool in this regard. All depend on your requirements.
I can only say that personally, for myself, always and everywhere use the function
crypt.
By the way there is an excellent detailed article on passwords:
php.net/manual/ru/faq.passwords.php