Giter Site home page Giter Site logo

python-diceware's Introduction

Generate Diceware Passphrase

Build Status NOT READY FOR PRIMETIME

Generate a random, memorable pass-phrase, for example kirby bang basin flux chill memo

Inspired by the excellent [http://diceware.com](Diceware method).

WARNING Using a computer to generate your passphrases is not as secure as rolling physical die with a paper reference of the diceware list.

Depending on your appetite for security vs convenience, you should consider actually rolling die, or at the very least read this section on levels of security on the diceware website. It's quite an interesting read.

If you are looking for a convenient way to generate passphrases, you're confident that this code isn't dodgy (you can look) and that your computer is not being spied on, this could be for you :)

Example Usage

As a Python module:

from diceware import generate_passphrase
print(generate_passphrase())

As a command-line tool:

> diceware

Installation

> pip install diceware

Technical stuff

This is implemented against the advice of, but in accordance with the suggestions on the Diceware website, namely:

  • uses os.urandom() for entropy, which is preferable to Python's (less secure random module).
  • uses the 2^13 long wordlist diceware8k.txt of mostly English words

python-diceware's People

Stargazers

Andrew Downing avatar

Watchers

Paul Fawkesley avatar

python-diceware's Issues

Use the 7776 long word list if possible

If the SystemRandom.choice() isn't biased, then there's no benefit to using the 8192-long wordlist.

It would be better to use the standard wordlist length to make it easier to support different languages.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.