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

17 lines
298 B
Bash

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