crypto-toolbox 0.1.8 → 0.1.9

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: 346cf70c7e6496674cd2de627ddd534bd36dc588
4
- data.tar.gz: 72855792f6abc65f01fc0b08bb72f1c93f8dd62b
3
+ metadata.gz: 24485a636d5cc38818c7a94973eb2315c6f99a6c
4
+ data.tar.gz: 7d6a52bb6e920fbf76cafc6e69c2945c62a67433
5
5
  SHA512:
6
- metadata.gz: f0fbb3bce3f7d520f0efc5ee94a9450401f4e35136a0a4589db1c1c3567131c2dba96e83c8ca8f7769dd3774fd8ad5700963602182e63f96fc848697e3d31805
7
- data.tar.gz: 9bec221153e678531c8d7aa945514b3f36973da24dff4905fc404b516d00c8d2a8c6af10a27a7994c40e4963dc8391d7f643fb8ecca35bf1e5ea4d32f36ec591
6
+ metadata.gz: 251989795e3c562c979523a2c2dac33f51f74a7cba13817bf1a8ed5e695838b3220f02b1a237405276c01a248852cf0bdadc137ebfc940ded46c3d20a9269dd9
7
+ data.tar.gz: 6e9a96b977eb116e2d2e0f4026074ac08565d250e0ceb9b36516a8ee00257e3cdf84fac99fabfca872f6c9b9c05c8105bba874220ba834fdc4301ea1b531fbcd
@@ -3,6 +3,7 @@ require 'crypto-toolbox/crypt_buffer.rb'
3
3
  require 'crypto-toolbox/key_filter.rb'
4
4
  require 'crypto-toolbox/spell_checker.rb'
5
5
 
6
+ require 'crypto-toolbox/analyzers/padding_oracle.rb'
6
7
  require 'crypto-toolbox/analyzers/vigenere_xor.rb'
7
8
 
8
9
  require 'crypto-toolbox/ciphers/caesar.rb'
@@ -36,7 +36,7 @@ module Analyzers
36
36
  end
37
37
 
38
38
  def analyze(input)
39
- buf = CryptBuffer.new(input)
39
+ buf = CryptBuffer.from_hex(input)
40
40
  result = find_pattern(buf)
41
41
 
42
42
  if result.nil?
@@ -116,12 +116,6 @@ NOTE: we may at digram and trigram support?
116
116
  #x = CryptBuffer.new(trigram)
117
117
  =end
118
118
 
119
- if $0 == __FILE__
120
-
121
- input = ARGV[0] || "0xF96DE8C227A259C87EE1DA2AED57C93FE5DA36ED4EC87EF2C63AAE5B9A7EFFD673BE4ACF7BE8923CAB1ECE7AF2DA3DA44FCF7AE29235A24C963FF0DF3CA3599A70E5DA36BF1ECE77F8DC34BE129A6CF4D126BF5B9A7CFEDF3EB850D37CF0C63AA2509A76FF9227A55B9A6FE3D720A850D97AB1DD35ED5FCE6BF0D138A84CC931B1F121B44ECE70F6C032BD56C33FF9D320ED5CDF7AFF9226BE5BDE3FF7DD21ED56CF71F5C036A94D963FF8D473A351CE3FE5DA3CB84DDB71F5C17FED51DC3FE8D732BF4D963FF3C727ED4AC87EF5DB27A451D47EFD9230BF47CA6BFEC12ABE4ADF72E29224A84CDF3FF5D720A459D47AF59232A35A9A7AE7D33FB85FCE7AF5923AA31EDB3FF7D33ABF52C33FF0D673A551D93FFCD33DA35BC831B1F43CBF1EDF67F0DF23A15B963FE5DA36ED68D378F4DC36BF5B9A7AFFD121B44ECE76FEDC73BE5DD27AFCD773BA5FC93FE5DA3CB859D26BB1C63CED5CDF3FE2D730B84CDF3FF7DD21ED5ADF7CF0D636BE1EDB79E5D721ED57CE3FE6D320ED57D469F4DC27A85A963FF3C727ED49DF3FFFDD24ED55D470E69E73AC50DE3FE5DA3ABE1EDF67F4C030A44DDF3FF5D73EA250C96BE3D327A84D963FE5DA32B91ED36BB1D132A31ED87AB1D021A255DF71B1C436BF479A7AF0C13AA14794"
122
- analyzer = Analyzers::VigenereXor.new.analyze(input)
123
- end
124
-
125
119
 
126
120
 
127
121
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crypto-toolbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dennis Sivia