I'm working on a php script that will gather data based on a form, one of which will be a password. This password will be updated in a DB for access to uploading pics for a pic gallery as well as serve as the ftp password.

This means that the password must be sent to the /etc/passwd file as well...while I'm sure I can figure something out there, I need to know what encryption is used for FC 6 when encrypting the password for the passwd file. Is it md5??

Also, if anyone happens to have any wisdom on how to update the /etc/passwd file via php feel free to throw in suggestions. Thanks!