RubyGems.org

Generate a 4 word password from words of size 3-8 characters, with frequencies in the 30th-60th percentile. This range gives a nice set of uncommon but not completely alien words. $ chbs generate --verbose -W 3..8 -P 30..60 Corpus size: 6396 candidate words of 33075 total Entropy: 48 bits (2^48 = 281474976710656) Years to guess at 1000 guesses/sec: 8926 magnate-thermal-sandbank-augur With the --verbose flag, the utility will calculate a time-to-guess based on a completely arbitrary 1000 guesses/sec. If you'd like a more secure password, either relax the various filtering rules (-W and -P), add more words to the password, or use a larger corpus. By default we use the American TV Shows & Scripts corpus taken from Wiktionary. Others provided: * Project Gutenberg 2005 corpus taken from Wiktionary. * 1 of every 7 of the top 60000 lemmas from wordfrequency.info (6900 actual lemmas after processing) See http://xkcd.com/936/ for the genesis of the idea. Data sources: http://en.wiktionary.org/wiki/Wiktionary:Frequency_lists http://wordfrequency.info/

installgem install correct-horse-battery-staple
Authors

Robert Sanders

6,361 total downloads 844 for this version
Owners

D7ac22e431f31deb276657d3c63fa10e

Gemfile
gem 'correct-horse-battery-staple', '~> 0.6.6'
Versions
  1. 0.6.6 February 14, 2013 (190 KB)
  2. 0.6.5 February 14, 2013 (190 KB)
  3. 0.6.4 January 13, 2012 (193 KB)
  4. 0.6.3 January 11, 2012 (193 KB)
  5. 0.6.2 January 11, 2012 (192 KB)
Show all versions (6 total)
Development Dependencies
  1. hoe ~> 2.12
  2. rubyforge >= 2.0.4