1 changed files with 9 additions and 4 deletions
@ -1,12 +1,17 @@ |
|||||||
#!/bin/bash |
#!/bin/bash |
||||||
|
|
||||||
#Создан: Пт 26 фев 2016 21:33:55 |
#Создан: Пт 26 фев 2016 21:33:55 |
||||||
#Изменён: Пт 26 фев 2016 21:33:55 |
#Изменён: Вс 25 окт 2020 17:21:57 |
||||||
|
|
||||||
#- Генератор паролей |
#- Генератор паролей |
||||||
|
|
||||||
for i in `seq ${2:-10}`; { |
SYMBOLS="A-Za-z0-9_/@$#*%^&()[]<>:;~!?" |
||||||
</dev/urandom tr -dc A-Za-z0-9_ | head -c ${1:-8} |
|
||||||
echo "" |
for i in $(seq ${2:-10}); { |
||||||
|
# OpenSSL version: |
||||||
|
# openssl rand -base64 "${1:-8}" | head -c "${1:-8}" |
||||||
|
|
||||||
|
head /dev/urandom | tr -dc "$SYMBOLS" | head -c "${1:-8}" |
||||||
|
echo |
||||||
} |
} |
||||||
|
|
||||||
|
Loading…
Reference in new issue