crypto-toolbox 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/break-vigenere-xor +6 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cb26fa406648e8e856c7aaf45c86b9c78b6cff6d
4
- data.tar.gz: c9dcc5cd246e4547fd3e22c8be90725dd496aa08
3
+ metadata.gz: 346cf70c7e6496674cd2de627ddd534bd36dc588
4
+ data.tar.gz: 72855792f6abc65f01fc0b08bb72f1c93f8dd62b
5
5
  SHA512:
6
- metadata.gz: 45e036a7da35bcead7b46b3036de35d73f0cb7642f4f6cc9a8edb316372b6304134b2a18babbad1bd044fc0d75d1572c64ccb18d52c2667bd10bb9a02056b493
7
- data.tar.gz: 129d788d0a7139a2e2399c496cb83522ead7ff6c6f6c61530bb1c1576f7ec8f41277b7378e9ea5ae289c59db4563e35978cd47d372fb818ebf0227cae7efa597
6
+ metadata.gz: f0fbb3bce3f7d520f0efc5ee94a9450401f4e35136a0a4589db1c1c3567131c2dba96e83c8ca8f7769dd3774fd8ad5700963602182e63f96fc848697e3d31805
7
+ data.tar.gz: 9bec221153e678531c8d7aa945514b3f36973da24dff4905fc404b516d00c8d2a8c6af10a27a7994c40e4963dc8391d7f643fb8ecca35bf1e5ea4d32f36ec591
@@ -2,9 +2,12 @@
2
2
 
3
3
  require 'crypto-toolbox'
4
4
 
5
- if $0 == __FILE__
6
- input = ARGV[0] || "0xF96DE8C227A259C87EE1DA2AED57C93FE5DA36ED4EC87EF2C63AAE5B9A7EFFD673BE4ACF7BE8923CAB1ECE7AF2DA3DA44FCF7AE29235A24C963FF0DF3CA3599A70E5DA36BF1ECE77F8DC34BE129A6CF4D126BF5B9A7CFEDF3EB850D37CF0C63AA2509A76FF9227A55B9A6FE3D720A850D97AB1DD35ED5FCE6BF0D138A84CC931B1F121B44ECE70F6C032BD56C33FF9D320ED5CDF7AFF9226BE5BDE3FF7DD21ED56CF71F5C036A94D963FF8D473A351CE3FE5DA3CB84DDB71F5C17FED51DC3FE8D732BF4D963FF3C727ED4AC87EF5DB27A451D47EFD9230BF47CA6BFEC12ABE4ADF72E29224A84CDF3FF5D720A459D47AF59232A35A9A7AE7D33FB85FCE7AF5923AA31EDB3FF7D33ABF52C33FF0D673A551D93FFCD33DA35BC831B1F43CBF1EDF67F0DF23A15B963FE5DA36ED68D378F4DC36BF5B9A7AFFD121B44ECE76FEDC73BE5DD27AFCD773BA5FC93FE5DA3CB859D26BB1C63CED5CDF3FE2D730B84CDF3FF7DD21ED5ADF7CF0D636BE1EDB79E5D721ED57CE3FE6D320ED57D469F4DC27A85A963FF3C727ED49DF3FFFDD24ED55D470E69E73AC50DE3FE5DA3ABE1EDF67F4C030A44DDF3FF5D73EA250C96BE3D327A84D963FE5DA32B91ED36BB1D132A31ED87AB1D021A255DF71B1C436BF479A7AF0C13AA14794"
7
- analyzer = Analyzers::VigenereXor.new.analyze(input)
5
+ if ARGV[0].nil?
6
+ $stderr.puts "Missing Argument: Ciphertext (hexstring)"
7
+ else
8
+ ciphertext = ARGV[0]
9
+
10
+ Analyzers::VigenereXor.new.analyze(ciphertext)
8
11
  end
9
12
 
10
13
 
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.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dennis Sivia