GNU/Linux Password Generator ("pwgen") to PHP. code example Example: generate password linux password=$(openssl rand -base64 32) echo $password