Any examples on user sign up?

I was wondering if there are any examples of users being able to sign up for an account in an application? Something that would create the users and encrypt their passwords in the DB?

Thanks. Any info is appreciated.