May I suggest you to use openssl, a default installed command, instead makepasswd, which must be installed yet? $ openssl rand -base64 16 zB5HFNcYHPs2DYWt4Bsdzw==