password_dynamo 0.0.00016 → 0.0.00017

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.md +30 -0
  2. data/lib/dynamo.rb +3 -2
  3. metadata +1 -2
  4. data/lib/terminal.rb +0 -0
data/README.md CHANGED
@@ -0,0 +1,30 @@
1
+ ### Password Dynamo - A Gem ###
2
+
3
+ [↳ Jump to how it works](#how-it-works)
4
+
5
+ #### Background ####
6
+
7
+ Password Dynamo is a command line tool that generates passphrases are difficult to guess but easy to remember.
8
+
9
+ Strong passwords can be hard to remember. We are often advised to mix numbers, capital letters, and symbols into our passwords to make them harder to guess. Unfortunately, this technique often makes the password significantly harder to remember, but not much harder to guess. There is an easier way to create a memorable password. Select four common words, [like this xkcd explains](http://xkcd.com/936/), and your password will be harder to break and easier to remember.
10
+
11
+ Password Dynamo was built to assist in the process of selecting four random words. Originally I coded this with the system dictionary, but I found many of the words in it to be archaic and thus, harder to remember. I found a list of the ten thousand most commonly used words in the English language based on their [frequency on television programs](http://en.wiktionary.org/wiki/Wiktionary:Frequency_lists#TV_and_movie_scripts) and used it as my dictionary.
12
+
13
+ This gem is based off of this [sinatra](http://password-dynamo.heroku.com/) [application](https://github.com/strand/password-dynamo) and was created for my [Ruby Course](http://www.pce.uw.edu/courses/ruby-core-language/downtown-seattle-autumn-2012/?certificate=8545) at the University of Washington.
14
+
15
+ #### How it works ####
16
+
17
+ Install the gem with the command `gem install password-dynamo`. Then, at the command prompt, call `dynamo` and Password Dynamo will respond with a four word passphrase. If you call it with the `--complex` or `-c` flag it will respond with a complex passphrase which contains a capital letter, a number, dashes, and no spaces. This password will satisfy the complexity requirements of most sites. For example:
18
+
19
+ > 22:36 ~/Code: **gem install password_dynamo**
20
+ > Fetching: password_dynamo-0.0.00016.gem (100%)
21
+ > Successfully installed password_dynamo-0.0.00016
22
+ > 1 gem installed
23
+ > Installing ri documentation for password_dynamo-0.0.00016...
24
+ > Installing RDoc documentation for password_dynamo-0.0.00016...
25
+ > 22:37 ~/Code: **dynamo**
26
+ > chopped ship grill howdy
27
+ > 22:37 ~/Code: **dynamo -c**
28
+ > visitation6door's-Formality-relative
29
+ > 22:37 ~/Code: **dynamo --complex**
30
+ > messed2cosmo-lawn-Complaint
data/lib/dynamo.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  class Dynamo
2
- WORDS ||= IO.readlines(File.expand_path('../words.txt', __FILE__)).map(&:chomp).uniq!
3
-
2
+ dictionary_path = File.expand_path('../words.txt', __FILE__)
3
+ WORDS ||= IO.readlines(dictionary_path).map(&:chomp).uniq!
4
+
4
5
  def initialize
5
6
  end
6
7
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: password_dynamo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.00016
4
+ version: 0.0.00017
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -20,7 +20,6 @@ extra_rdoc_files: []
20
20
  files:
21
21
  - bin/dynamo
22
22
  - lib/dynamo.rb
23
- - lib/terminal.rb
24
23
  - lib/words.txt
25
24
  - LICENSE.md
26
25
  - README.md
data/lib/terminal.rb DELETED
File without changes