Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
diceware-debian
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
drebs
diceware-debian
Commits
c46b7deb
Commit
c46b7deb
authored
10 years ago
by
ulif
Browse files
Options
Downloads
Patches
Plain Diff
Update README.
parent
36b9624b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.rst
+144
-6
144 additions, 6 deletions
README.rst
with
144 additions
and
6 deletions
README.rst
+
144
−
6
View file @
c46b7deb
diceware
diceware
========
========
Passphrases
you will
remember...
Passphrases
to
remember...
|build-status|_
|build-status|_
...
@@ -10,10 +10,148 @@ Passphrases you will remember...
...
@@ -10,10 +10,148 @@ Passphrases you will remember...
`diceware` is a password generator following the proposals of
`diceware` is a password generator following the proposals of
Arnold G. Reinhold on http://diceware.com .
Arnold G. Reinhold on http://diceware.com . It generates passphrases
by concatenating words randomly picked from wordlists. For instance::
With `
diceware
` you can generate passwords that are build from word
$
diceware
lists.
Art83LiarRivetBlytheIs>am
While `diceware` provides by no means strong cryptography, you might
The passphrase contains by default six capitalized words with no space
find it useful for not too risky tasks.
char or similar in-between and a single special char (the ``>`` in the
example above).
.. contents::
Install
-------
This Python package can be installed via pip_::
$ pip install diceware
The exact way depends on your operating system.
How to Use
----------
Once installed, use ``--help`` to list all available options::
$ diceware --help
usage: diceware [-h] [-n NUM] [-c | --no-caps] [-s NUM]
Create a passphrase
optional arguments:
-h, --help show this help message and exit
-n NUM, --num NUM number of words to concatenate. Default: 6
-c, --caps Capitalize words. This is the default.
--no-caps Turn off capitalization.
-s NUM, --specials NUM
Insert NUM special chars into generated word.
With ``-n`` you can tell how many words are supposed to be picked for
your new passphrase::
$ diceware -n 1
A*ay
$ diceware -n 2
FaheyFr?ed
The number of special chars put into the generated phrase can be
determined with the ``-s`` option::
$ diceware -s 2
LipidFool$kullRu6yI'mPack
Here ``"$"`` and ``"'"`` are the special chars.
To switch special chars completely off, set ``-s`` to zero::
$ diceware -s 0
LazyGainMaimBlondDentUtmost
By default the single phrase words are capitalized, i.e. the first
char of each word is made uppercase. This does not neccessarily give
better security (1 bit at most), but it helps reading a phrase.
You can nevertheless disable caps with the ``--no-caps`` option::
$ diceware --no-caps -s 0
oceanblendbaronferrylistenvalet
This leads to lower-case passphrases, maybe easier to type on smart
phones or similar.
What is it good for?
--------------------
Normally, `diceware` passphrases are easier to remember than shorter
passwords constructed in more or less bizarre ways. But at the same
time `diceware` passphrases provide more entropy as `xkcd`_ can show
with the famous '936' proof_:
.. image:: http://imgs.xkcd.com/comics/password_strength.png
:align: center
.. _xkcd: http://xkcd.com/
.. _proof: http://xkcd.com/936/
The standard english wordlist of this `diceware` implementation
contains 8192 == 2**13 different english words. It is a copy of the
`Diceware8k list`_ provided by Mr. Reinhold. Therefore, picking a random word
from this list gives an entropy of 13 bits. Picking six words means an
entropy of 6 x 13 == 73 bits.
The special chars replacing chars of the originally created passphrase
give some more entropy (the more chars you have, the more additional
entropy), but not much. For instance, for a sixteen chars phrase you
have sixteen possibilities to place one of the 36 special chars. That
makes 36 x 16 possibilitities or an entropy of about 9.17 you can add.
To get an entropy increase of at least 10 bits, you have to put a
special char in a phrase with at least 29 chars (while at the same
time an additional word would give you 13 bits of extra
entropy). Therefore you might think again about using special chars in
your passphrase.
Credits
-------
Arnold G. Reinhold deserves all merits for the working parts of
`Diceware`_. The non-working parts are certainly my fault.
Links
-----
- Diceware_ home page
- Source_ on github
Wordlists:
- `Diceware8k list`_ by Arnold G. Reinhold.
License
-------
This Python implementation of Diceware, (C) 2015 Uli Fouquet, is
licensed under the GPL v3+.
The Copyright for the Diceware_ idea and the `Diceware8k list`_ are
Copyright by Arnold G. Reinhold. See file LICENSE for details.
.. raw:: html
<a href="https://github.com/ulif/diceware"><img style="position: absolute; top: 0; right: 0; border: 0;" alt="Fork me on GitHub" src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png"></a>
.. _pip: https://pip.pypa.io/en/latest/
.. _`Diceware8k list`: http://world.std.com/~reinhold/diceware8k.txt
.. _`Diceware`: http://diceware.com/
.. _`Source`: http://github.com/ulif/diceware/
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment