dotfiles/tools/genpasswd

5 lines
76 B
Text
Raw Normal View History

2015-12-12 07:56:13 +00:00
#!/bin/bash
l=$1
2016-09-18 13:58:16 +01:00
[ "$l" == "" ] && l=32
openssl rand -base64 $l | cut -c-$l