generatePwd fct