Skip to content

Commit

Permalink
Use xkcdpass for password generation
Browse files Browse the repository at this point in the history
Bitwarden is just slow and unresponsive
  • Loading branch information
Blackjacx committed Aug 19, 2024
1 parent a110f2e commit d3be512
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions bootstrap/zsh_config_files/aliases.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@
# Security
#-------------------------------------------------------------------------------

# generate strong passphrase using bitwarden-cli
alias pwg="bw generate -p --capitalize --words 8 --includeNumber"
# generate strong passphrase using bitwarden-cli (deprecated because slow)
# alias pwg="bw generate -p --capitalize --words 8 --includeNumber"
pwg() {
printf '%s%s%s' \
"$(shuf -i 0-9 -n 1)" \
"$(xkcdpass --numwords 8 --delimiter '-' --case alternating)" \
"$(shuf -i 0-9 -n 1)"
}

#-------------------------------------------------------------------------------
# Git
Expand Down

0 comments on commit d3be512

Please sign in to comment.