pgp-word-list 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +21 -0
  3. data/README.md +24 -0
  4. data/lib/pgp-word-list.rb +3 -0
  5. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e62da070f173ea7f9491b6c1536f12505a9ff96b
4
- data.tar.gz: 5111a78c879d715e0ae3e88b1c531840403cc9e3
3
+ metadata.gz: 7d664dba4fcbf2786c8701fef0f63e0ded2bd58b
4
+ data.tar.gz: 7da3b6e3dff16cdc5790e3dfc01738c2812e92a3
5
5
  SHA512:
6
- metadata.gz: 823870a511b1c922c77660ae5b60a64aa5b5d81ba6f3db3f26678a3af2253aeba4ef744edcec211f41f0a52c6d557ecb89d68e3b723eccad99d02f5256b778b3
7
- data.tar.gz: 09a00ff45cbcdfc63685828454dfd161799de83d650b62b6d48e15d31269b4ff3e115a3fa21a722821310270473bb2235863ff700be07ed795c8f86a5ace158a
6
+ metadata.gz: 8d33a07a5fc92cd1db4ed631ee22ce0b2c3818fcaf1607399430ee3e0b83c5f768300f73f182e220da2953c94322b8564e18cec1ceb83336af18e36a36ec57da
7
+ data.tar.gz: f4642a98fd6c06266a74cae0afb21685264d5323ebf25131b52d37cafcec6aeffdb59b68dfe7afa4c56ed3e0e18fad9cea8866850780a34898b3ec676285d35d
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (C) 2015 Warren Guy <warren@guy.net.au>
4
+ The word list itself belongs to PGP Corporation.
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
7
+ this software and associated documentation files (the "Software"), to deal in
8
+ the Software without restriction, including without limitation the rights to
9
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
10
+ the Software, and to permit persons to whom the Software is furnished to do so,
11
+ subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
18
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
19
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
20
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -2,8 +2,14 @@
2
2
 
3
3
  Convert hex strings to PGP word lists and vice-versa.
4
4
 
5
+ See [PGP word list on WikiPedia](http://en.wikipedia.org/wiki/PGP_word_list]) for more information.
6
+
7
+ I've also written a JavaScript version: [javascript-pgp-word-list](https://github.com/warrenguy/javascript-pgp-word-list).
8
+
5
9
  ## Usage
6
10
 
11
+ Available as a gem on [RubyGems](https://rubygems.org/gems/pgp-word-list).
12
+
7
13
  ````
8
14
  require 'pgp-word-list'
9
15
 
@@ -12,4 +18,22 @@ require 'pgp-word-list'
12
18
 
13
19
  > "stairway souvenir flytrap recipe adrift upcoming artist positive spearhead Pandora spaniel stupendous tonic concurrent transit Wichita lockup visitor flagpole escapade".to_pgp_hex
14
20
  => "D1D464C004F00FB5C9A4C8D8E433E7FB7FF56256"
21
+
22
+ > ["stairway", "souvenir", "flytrap", "recipe"].to_pgp_hex
23
+ => ["D1", "D4", "64", "C0"]
24
+
25
+ > ["D1", "D4", "64", "C0"].to_pgp_words
26
+ => ["stairway", "souvenir", "flytrap", "recipe"]
15
27
  ````
28
+
29
+ ## Author
30
+
31
+ Warren Guy <warren@guy.net.au>
32
+
33
+ https://warrenguy.me
34
+
35
+ The word list itself belongs to PGP Corporation.
36
+
37
+ ## License
38
+
39
+ MIT license. See [LICENSE](https://github.com/warrenguy/ruby-pgp-word-list/blob/master/LICENSE)
data/lib/pgp-word-list.rb CHANGED
@@ -36,6 +36,9 @@ class PGPWordList
36
36
  end
37
37
 
38
38
  def self.word_list
39
+ # from http://en.wikipedia.org/wiki/PGP_word_list
40
+ # 'hex' => ['even word', odd word']
41
+
39
42
  {
40
43
  '00' => ['aardvark', 'adroitness'], '01' => ['absurd', 'adviser'],
41
44
  '02' => ['accrue', 'aftermath'], '03' => ['acme', 'aggregate'],
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pgp-word-list
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Warren Guy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-29 00:00:00.000000000 Z
11
+ date: 2015-01-30 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: PGP word list gem
14
14
  email: warren@guy.net.au
@@ -16,6 +16,7 @@ executables: []
16
16
  extensions: []
17
17
  extra_rdoc_files: []
18
18
  files:
19
+ - LICENSE
19
20
  - README.md
20
21
  - lib/pgp-word-list.rb
21
22
  homepage: https://github.com/warrenguy/ruby-pgp-word-list