rwx/sh/alias/pwgen.sh
2024-11-19 09:17:14 +01:00

17 lines
303 B
Bash

# generate passwords
pwg() { sa__pass_word_gen "${@}"; }
sa__pass_word_gen() {
pwgen \
-1 \
--num-passwords 1048576 \
--secure \
"${@}"
}
# generate passwords with symbols
pwgs() { sa__pass_word_gen_symbols "${@}"; }
sa__pass_word_gen_symbols() {
sa__pass_word_gen \
--symbols \
"${@}"
}