How to generate secure passwords using terminal (Mac/Linux) ?

PWGEN

Installation

brew install pwgen
apt-get install -y pwgen
yum install -y pwgen

Usage

random passwords generated with pwgen
$ pwgen -s -1 12
# pwgen -s 10 4 -1 -y
# pwgen -s 20 -1 -v -c -0

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store