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.
- checksums.yaml +4 -4
- data/bin/break-vigenere-xor +6 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 346cf70c7e6496674cd2de627ddd534bd36dc588
|
4
|
+
data.tar.gz: 72855792f6abc65f01fc0b08bb72f1c93f8dd62b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0fbb3bce3f7d520f0efc5ee94a9450401f4e35136a0a4589db1c1c3567131c2dba96e83c8ca8f7769dd3774fd8ad5700963602182e63f96fc848697e3d31805
|
7
|
+
data.tar.gz: 9bec221153e678531c8d7aa945514b3f36973da24dff4905fc404b516d00c8d2a8c6af10a27a7994c40e4963dc8391d7f643fb8ecca35bf1e5ea4d32f36ec591
|
data/bin/break-vigenere-xor
CHANGED
@@ -2,9 +2,12 @@
|
|
2
2
|
|
3
3
|
require 'crypto-toolbox'
|
4
4
|
|
5
|
-
if
|
6
|
-
|
7
|
-
|
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
|
|