write password hash generation script