Genpasswd

secrets_genpasswd

Generate random passwords when 'pwgen' or 'apg' are not available. Supports standard alphanumeric, special character, and Koremutake phonetic syllable modes. Options to require at least one digit, uppercase, or special character.

Arguments

  • $1 (string): Optional flags: -c N (char count), -D (digit), -h (help), -K (Koremutake),

Exit codes

  • 0: Success
  • 1: Invalid option or password length less than 4

Output on stdout

  • One or more generated passwords, one per line