Sha256: fbe8dc6033abd0bbc318f450d7508ce5cdda1d1ea101d4ece0e4ccb70886bc09

Contents?: true

Size: 369 Bytes

Versions: 89

Compression:

Stored size: 369 Bytes

Contents

require 'digest/sha1'

FactoryGirl.define do
  factory :metasploit_credential_nonreplayable_hash,
          class: Metasploit::Credential::NonreplayableHash,
          parent: :metasploit_credential_password_hash do

    data { generate(:sha1_non_replayable_hash) }
  end


  sequence :sha1_non_replayable_hash do |n|
    Digest::SHA1.hexdigest "hansolo#{n}"
  end
end

Version data entries

89 entries across 89 versions & 1 rubygems

Version Path
metasploit-credential-0.7.12 spec/factories/metasploit/credential/nonreplayable_hashes.rb
metasploit-credential-0.7.11-java spec/factories/metasploit/credential/nonreplayable_hashes.rb
metasploit-credential-0.7.11 spec/factories/metasploit/credential/nonreplayable_hashes.rb
metasploit-credential-0.7.10-java spec/factories/metasploit/credential/nonreplayable_hashes.rb
metasploit-credential-0.7.10 spec/factories/metasploit/credential/nonreplayable_hashes.rb
metasploit-credential-0.7.10.pre.core.pre.search spec/factories/metasploit/credential/nonreplayable_hashes.rb
metasploit-credential-0.7.9.pre.core.pre.search spec/factories/metasploit/credential/nonreplayable_hashes.rb
metasploit-credential-0.7.8 spec/factories/metasploit/credential/nonreplayable_hashes.rb
metasploit-credential-0.7.8-java spec/factories/metasploit/credential/nonreplayable_hashes.rb