To generate the password for 4 modes to use.