I often need to generate random passwords when testing development work. To help with that, I’ve created a LaunchBar 6 Action, Generate Password.lbaction.

The Action makes use of a Ruby implementation of the KeePass Password Generator. Since macOS ships with Ruby, no external dependencies are required. Just install and you’re ready to go!

Grab “Generate.Password.zip” from the latest release at https://github.com/itspriddle/generate-password.lbaction/releases. Unzip and open “Generate Password.lbaction” to install it.

To generate a password, invoke LaunchBar and select “Generate Password”. After running the action, the newly generated password is copied to the system clipboard.

By default, this Action will generate a 20 character password using L{9}d{9}s{9} as the KeePass character set. This will generate a password with 9 mixes-case letters, 9 digits, and 2 special characters.

To specify a different character set, press Space after selecting the Action from LaunchBar and type in the desired character set, eg: S{30}.

See the project README for full info.