---
title: "EFF’s Dice Random Number Generator digitized to become DicePass.org"
description: "<p><strong>TL;DR</strong> – this is why (and how) I created the electronic version of <a href="https://dicepass.org">EFF’s Dice</a>.</p>
<p><a href="https://i1.wp.com/eran.sandler.co.il/wp-content/uploads/2016/09/dicepass.jpg"><img class="alignright size-medium wp-image-456" src="https://i2.wp.com/eran.sandler.co.il/wp-content/uploads/2016/09/dicepass-300x251.jpg?fit=300%2C251" alt="dicepass" srcset="https://i1.wp.com/eran.sandler.co.il/wp-content/uploads/2016/09/dicepass.jpg?resize=300%2C251 300w, https://i1.wp.com/eran.sandler.co.il/wp-content/uploads/2016/09/dicepass.jpg?resize=768%2C641 768w, https://i1.wp.com/eran.sandler.co.il/wp-content/uploads/2016/09/dicepass.jpg?resize=1024%2C855 1024w, https://i1.wp.com/eran.sandler.co.il/wp-content/uploads/2016/09/dicepass.jpg?w=1080 1080w" sizes="(max-width: 300px) 100vw, 300px" data-recalc-dims="1" /></a></p>
<p>I love the <a href="https://eff.org">Electronic Frontier Foundation</a> (EFF) and believe in their just cause. I support it as much as I can and try to educate as many people as I can about their rights, privileges online and how to correctly behave in this new found jungle.</p>"
doc_version: "1"
last_updated: "2017-06-02"
date: 2016-09-13
tags: [Code, dice, dicepass, eff, passphrase generator, Privacy, prng, pseudo random number generator, random password generator]
canonical: "https://eran.sandler.co.il/2016/09/13/effs-dice-random-number-generator-digitized-to-become-dicepass-org/"
---

## Sitemap

- [Home](https://eran.sandler.co.il/)

**TL;DR** &#8211; this is why (and how) I created the electronic version of [EFF&#8217;s Dice][1].

[<img class="alignright size-medium wp-image-456" src="https://i2.wp.com/eran.sandler.co.il/wp-content/uploads/2016/09/dicepass-300x251.jpg?fit=300%2C251" alt="dicepass" srcset="https://i1.wp.com/eran.sandler.co.il/wp-content/uploads/2016/09/dicepass.jpg?resize=300%2C251 300w, https://i1.wp.com/eran.sandler.co.il/wp-content/uploads/2016/09/dicepass.jpg?resize=768%2C641 768w, https://i1.wp.com/eran.sandler.co.il/wp-content/uploads/2016/09/dicepass.jpg?resize=1024%2C855 1024w, https://i1.wp.com/eran.sandler.co.il/wp-content/uploads/2016/09/dicepass.jpg?w=1080 1080w" sizes="(max-width: 300px) 100vw, 300px" data-recalc-dims="1" />][2]
  
I love the [Electronic Frontier Foundation][3] (EFF) and believe in their just cause. I support it as much as I can and try to educate as many people as I can about their rights, privileges online and how to correctly behave in this new found jungle.

A while back I got a post about their new &#8220;toy&#8221;/campaign EFF&#8217;s Random Number Generator also known as [Dice][4].

The idea behind it is to help people generate more secure passwords that they can actually remember and the means to do it was so simple. A dice. Or 5 (if you want to optimize).

The concept is simple.

  1. Roll a dice and record the digit. Do it 5 times.
  2. These 5 numbers now represent a 5 digits number.
  3. Lookup a word associate with this number in a wordlist such as [this one][5].
  4. Repeat the process 6 times so that you have at the end 6 words.
  5. You are now the proud owner of a passphrase that has roughly 2⁷⁷ variations (that about 221,073,919,720,733,357,899,776 variations)!

That&#8217;s it.

So simple. If the words you got are reasonable enough you can even construct a sentence from it and it will be even easier to remember.

EFF created these 5 custom dices as part of their [summer security reboot][6], so it will take a lot less time to physically generate the passphrase.

While I enjoy rolling dices as much as the next person, I thought it would be interesting to create a (rather) secure version of it that can (if needed) be hosted online.

While investigating about secure Pseudo Random Number Generators (PRNG) in JavaScript I found out about _crypto.getRandomValues_ which is an API implement inside modern browser that uses the Operating Systems&#8217; PRNG (find out if [your browser support it][7])

So, I&#8217;ve created [DicePass][1] (you can also get the [code on Github][8]). You can use the hosted version or clone the repository and run it locally (just open index.html in your browser).

The hosted version doesn&#8217;t use any tracking code (no Google Analytics) or 3rd parties that can track you. Even the share buttons are custom implementation using a URL that opens in a new window/tab to protect your privacy.

Feedback, comments and pull requests are welcome.

Enjoy, and use long random passphrases!

&nbsp;

 [1]: https://dicepass.org
 [2]: https://i1.wp.com/eran.sandler.co.il/wp-content/uploads/2016/09/dicepass.jpg
 [3]: https://eff.org
 [4]: https://eff.org/dice
 [5]: https://www.eff.org/files/2016/07/18/eff_large_wordlist.txt
 [6]: https://supporters.eff.org/donate/summer-security-reboot-c
 [7]: http://caniuse.com/#feat=getrandomvalues
 [8]: https://github.com/erans/dicepass