save hashed password in database and some adjust

add 	security hash password before insert into database
modify 	adjust format
change the algorithm of generatePassword()