crypto-toolbox 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 656588a43c2b38fd768160ea524e05e05c0ddd71
4
- data.tar.gz: 5e656369577a472d8b46c843f5b4090f294319f9
3
+ metadata.gz: 86f8571212724c4325fba91efd1b781af0f2397c
4
+ data.tar.gz: 5a418ad3b0eb7eb3e653f4788c5272fdc339cc2c
5
5
  SHA512:
6
- metadata.gz: 091f51ccf2df451583fae56036f8daba810183dade625bec219efca9925b8b0730b6d5f042ce0e2a98f35ab7334cfe9fc3a18a924e6246b52c37709b91dc1bc2
7
- data.tar.gz: 7952a8f07597323697fca06a876826dc9b94796f2444e78ea0c4822a68675afa7647b92d119fe109d58b3d718b4c802eb6a4c47db05e9e9ce3de4fcbc57348ff
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="en_GB")
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("en_GB")
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 !
@@ -52,5 +52,9 @@ module CryptoChallanges
52
52
  data = CryptBuffer.from_base64(input).str
53
53
  Ciphers::Aes.new(128,:ECB).decipher(data,key)
54
54
  end
55
+
56
+ def solve8(ciphers)
57
+ binding.pry
58
+ end
55
59
  end
56
60
  end
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.1
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-13 00:00:00.000000000 Z
11
+ date: 2015-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aes