rwx/sh/alias/pwgen.sh
2024-11-18 16:30:11 +01:00

17 lines
313 B
Bash

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