rwx/sh/alias/pwgen.sh

18 lines
313 B
Bash
Raw Normal View History

2023-05-18 12:29:49 +00:00
# generate passwords
2024-11-18 15:30:11 +00:00
pwg() { sh_a__pass_word_gen "${@}"; }
sh_a__pass_word_gen() {
2024-11-16 14:26:30 +00:00
pwgen \
-1 \
--num-passwords 1048576 \
--secure \
"${@}"
}
2023-05-18 12:29:49 +00:00
# generate passwords with symbols
2024-11-18 15:30:11 +00:00
pwgs() { sh_a__pass_word_gen_symbols "${@}"; }
sh_a__pass_word_gen_symbols() {
sh_a__pass_word_gen \
2024-11-16 14:26:30 +00:00
--symbols \
"${@}"
}