genpasswd tool added
This commit is contained in:
parent
c7381cffa3
commit
964c04fe8b
1 changed files with 4 additions and 0 deletions
4
tools/genpasswd
Executable file
4
tools/genpasswd
Executable file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/bash
|
||||||
|
l=$1
|
||||||
|
[ "$l" == "" ] && l=16
|
||||||
|
tr -dc A-Za-z0-9_ < /dev/urandom | head -c ${l} | xargs
|
Loading…
Reference in a new issue