This website requires JavaScript.
Explore
Help
Sign in
cyplo
/
dotfiles
Watch
1
Star
0
Fork
You've already forked dotfiles
0
Code
Issues
Pull requests
Projects
Releases
Packages
Wiki
Activity
Actions
a7ad8bf45e
dotfiles
/
tools
/
genpasswd
5 lines
96 B
Text
Raw
Normal View
History
Unescape
Escape
genpasswd tool added
2015-12-12 07:56:13 +00:00
#!/bin/bash
l=$1
Change default genpasswd length to 32
2016-09-18 13:58:16 +01:00
[ "$l" == "" ] && l=32
genpasswd tool added
2015-12-12 07:56:13 +00:00
tr -dc A-Za-z0-9_ < /dev/urandom | head -c ${l} | xargs
Reference in a new issue
Copy permalink