Thanks everyone for the help. I was half-expecting to be brutally made fun of and laughed at for the sloppy coding. ;-)
I will try some of these sugesstions.
Cop: The randomly generated password is going to change every day. The file gets overwritten once a day with a new password. This password will reside in a password-protected web area for the admins of that particular to view and assign to users.