Adding password encryption to a Dreamweaver registration form is even easier than adding encryption to a Dreamweaver login form. Much like changing the Dreamweaver login form to add encryption, changing the registration form will also cause an error (according to Dreamweaver) but regardless this method should work just fine. After inserting the code mentioned below you should not attempt to modify this registration script via the insert record dialog provided by Dreamweaver. Instead, edit the code manually when making changes.
Example code snippet:
$insertSQL = sprintf("INSERT INTO users (username, password) VALUES (%s, %s)"
Change your code to add “sha1″ or “md5″ depending on what type of encryption you wish to use:
$insertSQL = sprintf("INSERT INTO users (username, password) VALUES (%s, sha1(%s))"