the search results from google are all added code, but php supports it natively: http://ca.php.net/manual/en/function.crypt.php
Edit: crypt -> bcrypt, stupid iPad autocorrect