Sha256: 1bd54c415c8bd902be9a9bf4ffb90f39ae147280a1800c3dda568f523ff4b694

Contents?: true

Size: 682 Bytes

Versions: 6

Compression:

Stored size: 682 Bytes

Contents

# frozen_string_literal: true

class HashIdentifier
  # Cryptographic hash function object
  class Chf
    # @return [String] name of the identified hash type
    attr_reader :name
    # @return [String] John the Ripper hash reference. nil if unknown.
    attr_reader :john
    # @return [String] Hashcat hash ID. nil if unknown.
    attr_reader :hashcat
    # @return [Boolean] Display by default or not. If true it is displayed in
    #   extended mode only, mostly hash type using salt.
    attr_reader :extended

    def initialize(mode)
      @name = mode['name']
      @john = mode['john']
      @hashcat = mode['hashcat']
      @extended = mode['extended']
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
haiti-hash-1.1.2 lib/haiti/hash.rb
haiti-hash-1.1.1 lib/haiti/hash.rb
haiti-hash-1.1.0 lib/haiti/hash.rb
haiti-hash-1.0.1 lib/haiti/hash.rb
haiti-hash-1.0.0 lib/haiti/hash.rb
haiti-hash-0.0.1 lib/haiti/hash.rb