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