Skip to main content

Diceware Passphrase Generator

This is a command-line tool for generating secure passphrases based on the diceware method. The diceware method uses a list of words and random dice rolls to create strong and memorable passwords.

Prerequisites

To use this tool, you need to have Python 3 installed on your system.

Installation

  1. Download the code from the release page
  2. Unzip the code

Usage

Run the diceware.py script with the desired options to generate a passphrase.

python diceware.py [-h] [-w NUMBER OF WORDS] [--wordlist=wordlist.txt]

Options

  • -h, --help: Show the help message and exit.
  • -w NUMBER OF WORDS, --words=NUMBER OF WORDS: Specify the number of words in the passphrase.
  • --wordlist=wordlist.txt: Specify the wordlist file to use for generating the passphrase. If not provided, the default wordlist (wordlist.txt) will be used.

If you don't specify the options when running the script, an interactive prompt will ask you for the number of words and the wordlist.

Wordlist

The tool uses a wordlist file containing a set of words. If you want to use a custom wordlist, make sure it is a text file where each word is on a separate line. The default wordlist (wordlist.txt) is used if no custom wordlist is specified.

Example

Here's an example of how to use the tool:

python diceware.py -w 6

This command will generate a passphrase consisting of 6 random words from the default wordlist.

Disclaimer

Please note that the security of your generated passphrase depends on the quality and randomness of the wordlist used. Use a trusted wordlist and ensure that it has enough entropy to provide adequate security.

Contribution

Contributions to the Diceware Passphrase Generator are welcome! If you'd like to contribute, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Make the necessary changes and commit them.
  4. Push your changes to your fork.
  5. Submit a pull request.

Please ensure that your code follows the existing style and conventions used in the project. Also, remember to write tests for any new functionality you add.

Contact

If you have any questions or suggestions regarding the BMI Calculator, please feel free to reach out:

License

This project is licensed under the MIT License. See the LICENSE file for details.

Metadata

Release files for diceware-passphrase-generator 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for diceware-passphrase-generator 1.0.2
File Size Uploaded
diceware_passphrase_generator-1.0.2.tar.gz 52.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for diceware-passphrase-generator 1.0.2
File Interpreter ABI Platform
diceware_passphrase_generator-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 58.5 kB

Release files / diceware_passphrase_generator-1.0.2.tar.gz

Download URL diceware_passphrase_generator-1.0.2.tar.gz
Size 52.7 kB
Tags Source
SHA-256 checksum
How to use checksums
19d8bc9bec0d9914380d79ead74bb28dc97dc3df202c99c856167ec718b4111a
BLAKE2b-256 checksum
How to use checksums
f06b1ca3e79412164243f98ae5a0a7f27f50ec1113893bb9fa822be3a23ab935
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release files / diceware_passphrase_generator-1.0.2-py3-none-any.whl

Download URL diceware_passphrase_generator-1.0.2-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a2d38669ad62b5e383956e22c11c7b2979d604b15cba0f6a559976633a0ade14
BLAKE2b-256 checksum
How to use checksums
b72ba914ed660a3856a3b6951346be18040ff22000d64c10368d8a4ed27fedcf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page