// OPEN SOURCE

bashword

Generate random passwords and passphrases in Bash

A command-line password and passphrase generator written in pure Bash. No external dependencies — uses /dev/urandom for randomness.

Features

  • Generate random passwords with configurable length and character sets
  • Generate passphrases using word lists
  • Configurable separators, capitalization, and numeric padding for passphrases
  • Copy to clipboard support on macOS and Linux
  • Man page documentation
  • Comprehensive test suite using Bats