pwgen

Generates random passwords with customizable length and character sets

brewmacoslinux
Try with needOr install directly
Source

About

Password generator

Commands

pwgen

Examples

Generate a single 16-character password$ pwgen 16 1
Generate 5 passwords of 12 characters each, excluding ambiguous characters$ pwgen -B 12 5
Generate a 20-character password with only alphanumeric characters$ pwgen -A 20 1