Add user with php

Hi.

I want add users with a php form.

I have an issue with the password. How can I crypt the password with php?

Thanks for your help.

Nicolas