Automatic generation of client-side password