actually, the archived documentation section of the security assist support page has a tutorial for creating a new password page that will generate a random password, store it in the database using encryption and email the non encrypted value:
06_new_password.swf