generate password is public