hashcheck 0.1.3 → 0.1.4

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
  SHA256:
3
- metadata.gz: cfa01c29b49f8ac37146fdb1aacddd6a41884dce4547302d15cf46a867668599
4
- data.tar.gz: 7048c259826eea4e8b7bf7725cb5ee1389f57e520d1435bfd1caac636cb3224d
3
+ metadata.gz: 979e5578031307823f17d721667c82420f9dedc3a220014f0d98c9b31170ec09
4
+ data.tar.gz: 113dc45a3386a99e994ef2c4cf41b9a0715b9789b593a1b0c61fbf7d0f5889c3
5
5
  SHA512:
6
- metadata.gz: 3f372acce71d77357954c2b27ca2782f35b598f1e98dfeb56914a4145c67beddce6db198164c544b78a87ee4126ffb31b86baea389fea303fc471a710c62d4c8
7
- data.tar.gz: 7d76ea2fac7582f92af841c26cd047c28e0bdee3d35b77263f89c6aae9dc9db8397fca0f0f9da07db2e79e4f886cfd1c5c6ac2ccb56cbdd5e1c57cbdea2fda53
6
+ metadata.gz: d0b720e25d3fcbfc739c8a0f74376ef744d35b99bce33dfb7f89fb1fb08eaddf9400f7fa7f62b467cee060598e3e73c7573c65f1dbe63bbaa6e5597fb2357733
7
+ data.tar.gz: b6373603c5f5982936d01bf2c9e5381fc6e4bcb38195fb578b770c54f34f2b2662e8efa36c5e161f6e1f22cd1c5892746b1580aff5df3f967d0af13ab283064a
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hashcheck (0.1.2)
4
+ hashcheck (0.1.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -6,7 +6,7 @@ require 'optionparser'
6
6
  options = {}
7
7
  printers = Array.new
8
8
 
9
- OptionParser.new do |opts|
9
+ i = OptionParser.new do |opts|
10
10
  opts.banner = "Usage: hashcheck -e [value] \nDefaults: hashcheck -e hash_value"
11
11
  opts.on("-e", "--hash Hash value", String, "Input hash value") do |value|
12
12
  options[:value] = value
@@ -14,20 +14,24 @@ OptionParser.new do |opts|
14
14
  opts.on("-s", "--salt Salt", "Prints salt and hash type") do |s|
15
15
  options[:salt] = True
16
16
  end
17
- end.parse!
17
+ end
18
+ i.parse!
18
19
 
19
20
  if options[:value].nil?
20
21
  print("Please enter the hash: \n")
21
22
  options[:value]=gets.chomp! unless gets.chomp.empty?
22
- end
23
-
24
- print "\n"
25
-
26
- ' ___ ___ .__ _________ .__ __ '
27
- ' / | \_____ _____| |__ \_ ___ \| |__ ____ ____ | | __'
28
- '/ ~ \__ \ / ___/ | \/ \ \/| | \_/ __ \_/ ___\| |/ /'
29
- '\ Y // __ \_\___ \| Y \ \___| Y \ ___/\ \___| < '
30
- ' \___|_ /(____ /____ >___| /\______ /___| /\___ >\___ >__|_ \ '
23
+ end
24
+
25
+ puts "HashCheck: \tOutputs the tool to which the hash belongs, \n\t\talong with the hash,salt and algorithm used to encrypt the data"
26
+ puts i.banner
27
+ puts <<-'EOF'
28
+
29
+ ___ ___ .__ _________ .__ __
30
+ / | \_____ _____| |__ \_ ___ \| |__ ____ ____ | | __
31
+ / ~ \__ \ / ___/ | \/ \ \/| | \_/ __ \_/ ___\| |/ /
32
+ \ Y // __ \_\___ \| Y \ \___| Y \ ___/\ \___| <
33
+ \___|_ /(____ /____ >___| /\______ /___| /\___ >\___ >__|_ \
34
+ EOF
31
35
 
32
36
 
33
37
 
data/bin/setup CHANGED
@@ -5,4 +5,4 @@ set -vx
5
5
 
6
6
  bundle install
7
7
 
8
- # Do any other automated setup that you need to do here
8
+ # Do any other automated setup that you need to do here
@@ -1,4 +1,4 @@
1
1
 
2
2
  module Hashcheck
3
- VERSION = "0.1.3"
3
+ VERSION = "0.1.4"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hashcheck
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Akhil