crypto-toolbox 0.2.1 → 0.2.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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86f8571212724c4325fba91efd1b781af0f2397c
|
4
|
+
data.tar.gz: 5a418ad3b0eb7eb3e653f4788c5272fdc339cc2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03272a1b10a23da115f9a2ff84010a4e30b62313037ab34d56e16596a77afc64c6b89b635fc0ca48f5031647cc2648a433932186f8dee21d7097abe512e3d1b5
|
7
|
+
data.tar.gz: f5d4fd7146c99b5da0fdd6d1d08335cbaa4cc063f228eaef3f0d9f0735375d1974a868987c398f612a9440249a4956b7e38ffde0ba158cb1e61b00fca41aba44
|
@@ -6,7 +6,7 @@ module Analyzers
|
|
6
6
|
class AsciiPlain
|
7
7
|
|
8
8
|
|
9
|
-
def initialize(keys,ciphertext,dict_lang="
|
9
|
+
def initialize(keys,ciphertext,dict_lang="en_US")
|
10
10
|
@keys = keys
|
11
11
|
@c = @ciphertext = ciphertext
|
12
12
|
@keylen = keys.first.length
|
@@ -17,7 +17,7 @@ module Analyzers
|
|
17
17
|
# how often is the key repeated
|
18
18
|
reps = @c.bytes.length / @keylen
|
19
19
|
result =[]
|
20
|
-
spell_checker = Analyzers::Utils::SpellChecker.new("
|
20
|
+
spell_checker = Analyzers::Utils::SpellChecker.new("en_US")
|
21
21
|
|
22
22
|
# should we fork here ?
|
23
23
|
@keys.each_with_index do |key,i| # i is used as a simple counter only !
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: crypto-toolbox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dennis Sivia
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aes
|