htaccess password encryption
Allows user to set a password, which is encrypted to format with htaccess,
and stored in the htpasswd file in it's encrypted form.
The user is then prompted to sign in using the unencrypted version of the password they created.
Please note that, normally, this function would be limited to the area administrator.

In this particular example, the user is atypically permitted to create their own id and password from the browser, and log into a file storage directory set aside for this use.
The password is required to upload and delete files inside the directory.