my xfce4 dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
2.1 KiB

3 years ago
  1. # genpass
  2. This plugin provides three unique password generators for ZSH. Each generator
  3. has at least a 128-bit security margin and generates passwords from the
  4. cryptographically secure `/dev/urandom`. Each generator can also take an
  5. optional numeric argument to generate multiple passwords.
  6. To use it from an interactive ZSH, add `genpass` to the plugins array in your
  7. zshrc file:
  8. plugins=(... genpass)
  9. You can also invoke password generators directly (they are implemented as
  10. standalone executable files), which can be handy when you need to generate
  11. passwords in a script:
  12. ~/.oh-my-zsh/plugins/genpass/genpass-apple 3
  13. ## genpass-apple
  14. Generates a pronounceable pseudoword passphrase of the "cvccvc" consonant/vowel
  15. syntax, inspired by [Apple's iCloud Keychain password generator][1]. Each
  16. password has exactly 1 digit placed at the edge of a "word" and exactly 1
  17. capital letter to satisfy most password security requirements.
  18. % genpass-apple
  19. gelcyv-foqtam-fotqoh-viMleb-lexduv-6ixfuk
  20. % genpass-apple 3
  21. japvyz-qyjti4-kajrod-nubxaW-hukkan-dijcaf
  22. vydpig-fucnul-3ukpog-voggom-zygNad-jepgad
  23. zocmez-byznis-hegTaj-jecdyq-qiqmiq-5enwom
  24. [1]: https://developer.apple.com/password-rules/
  25. ## genpass-monkey
  26. Generates visually unambiguous random meaningless strings using [Crockford's
  27. base32][2].
  28. % genpass-monkey
  29. xt7gn976e7jj3fstgpy27330x3
  30. % genpass-monkey 3
  31. n1qqwtzgejwgqve9yzf2gxvx4m
  32. r2n3f5s6vbqs2yx7xjnmahqewy
  33. 296w9y9rts3p5r9yay0raek8e5
  34. [2]: https://www.crockford.com/base32.html
  35. ## genpass-xkcd
  36. Generates passphrases from `/usr/share/dict/words` inspired by the [famous (and
  37. slightly misleading) XKCD comic][3]. Each passphrase is prepended with a digit
  38. showing the number of words in the passphrase to adhere to password security
  39. requirements that require digits. Each word is 6 characters or less.
  40. % genpass-xkcd
  41. 9-eaten-Slav-rife-aired-hill-cordon-splits-welsh-napes
  42. % genpass-xkcd 3
  43. 9-worker-Vlad-horde-shrubs-smite-thwart-paw-alters-prawns
  44. 9-tutors-stink-rhythm-junk-snappy-hooray-barbs-mewl-clomp
  45. 9-vital-escape-Angkor-Huff-wet-Mayra-abbés-putts-guzzle
  46. [3]: https://xkcd.com/936/