class HashIdentifier::Chf

Cryptographic hash function object

Attributes

extended[R]

@return [Boolean] Display by default or not. If true it is displayed in

extended mode only, mostly hash type using salt.
hashcat[R]

@return [String] Hashcat hash ID. nil if unknown.

john[R]

@return [String] John the Ripper hash reference. nil if unknown.

name[R]

@return [String] name of the identified hash type

samples[R]

@return [Array<String>] Examples of hashes

Public Class Methods

new(mode) click to toggle source
# File lib/haiti/hash.rb, line 18
def initialize(mode)
  @name = mode['name']
  @john = mode['john']
  @hashcat = mode['hashcat']
  @extended = mode['extended']
  @samples = mode['samples']
end