dotfiles/tools/genpasswd

4 lines
76 B
Bash
Executable file

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