haiti-hash 1.0.0 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +2 -1
- data/bin/haiti +7 -17
- data/data/commons.json +29 -0
- data/data/prototypes.json +1064 -110
- data/lib/haiti.rb +7 -0
- data/lib/haiti/hash.rb +3 -0
- data/lib/haiti/version.rb +1 -1
- metadata +29 -75
- data/.editorconfig +0 -21
- data/.gitignore +0 -8
- data/.rubocop.yml +0 -25
- data/.yardopts +0 -4
- data/.yardopts-dev +0 -6
- data/Gemfile +0 -6
- data/Gemfile.lock +0 -56
- data/README.md +0 -33
- data/Rakefile +0 -10
- data/docs/.nojekyll +0 -0
- data/docs/CHANGELOG.md +0 -9
- data/docs/README.md +0 -22
- data/docs/_coverpage.md +0 -15
- data/docs/_media/logo.png +0 -0
- data/docs/_navbar.md +0 -2
- data/docs/_sidebar.md +0 -15
- data/docs/about.md +0 -5
- data/docs/index.html +0 -31
- data/docs/pages/demo.md +0 -3
- data/docs/pages/documentation.md +0 -34
- data/docs/pages/install.md +0 -90
- data/docs/pages/publishing.md +0 -39
- data/docs/pages/quick-start.md +0 -39
- data/docs/pages/usage.md +0 -58
- data/docs/vendor/docsify.js +0 -1
- data/docs/vendor/plugins/emoji.min.js +0 -1
- data/docs/vendor/plugins/search.min.js +0 -1
- data/docs/vendor/prismjs/components/prism-ruby.min.js +0 -1
- data/docs/vendor/themes/vue.css +0 -1
- data/docs/why.md +0 -35
- data/docs/yard/HashIdentifier.html +0 -479
- data/docs/yard/HashIdentifier/Chf.html +0 -590
- data/docs/yard/Version.html +0 -126
- data/docs/yard/_index.html +0 -138
- data/docs/yard/class_list.html +0 -51
- data/docs/yard/css/common.css +0 -1
- data/docs/yard/css/full_list.css +0 -58
- data/docs/yard/css/style.css +0 -496
- data/docs/yard/file.LICENSE.html +0 -70
- data/docs/yard/file.README.html +0 -106
- data/docs/yard/file_list.html +0 -61
- data/docs/yard/frames.html +0 -17
- data/docs/yard/index.html +0 -106
- data/docs/yard/js/app.js +0 -303
- data/docs/yard/js/full_list.js +0 -216
- data/docs/yard/js/jquery.js +0 -4
- data/docs/yard/method_list.html +0 -115
- data/docs/yard/top-level-namespace.html +0 -112
- data/test/test_haiti.rb +0 -33
data/test/test_haiti.rb
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'minitest/autorun'
|
4
|
-
require 'haiti'
|
5
|
-
|
6
|
-
class HaitiTest < Minitest::Test
|
7
|
-
def setup
|
8
|
-
@hash = '5f4dcc3b5aa765d61d8327deb882cf99'
|
9
|
-
@hi = HashIdentifier.new(@hash)
|
10
|
-
end
|
11
|
-
|
12
|
-
def test_hashidentifier_hash
|
13
|
-
assert_equal(@hash, @hi.hash)
|
14
|
-
end
|
15
|
-
|
16
|
-
def test_hashidentifier_type
|
17
|
-
assert_instance_of(Array, @hi.type)
|
18
|
-
assert_instance_of(HashIdentifier:: Chf, @hi.type[0])
|
19
|
-
end
|
20
|
-
|
21
|
-
def test_hashidentifier_type_non_existing
|
22
|
-
hash = 'uuu'
|
23
|
-
hi = HashIdentifier.new(hash)
|
24
|
-
assert_empty(hi.type)
|
25
|
-
end
|
26
|
-
|
27
|
-
def test_chf
|
28
|
-
assert_equal('MD2', @hi.type[0].name)
|
29
|
-
assert_equal('md2', @hi.type[0].john)
|
30
|
-
assert_nil(@hi.type[0].hashcat)
|
31
|
-
assert_equal(false, @hi.type[0].extended)
|
32
|
-
end
|
33
|
-
end
|