dotfiles/tools/genpasswd

5 lines
76 B
Bash
Executable File

#!/bin/bash
l=$1
[ "$l" == "" ] && l=32
openssl rand -base64 $l | cut -c-$l