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-2.0.14 spec/factories/metasploit/credential/nonreplayable_hashes.rb
metasploit-credential-2.0.13 spec/factories/metasploit/credential/nonreplayable_hashes.rb
metasploit-credential-2.0.12 spec/factories/metasploit/credential/nonreplayable_hashes.rb
metasploit-credential-2.0.11 spec/factories/metasploit/credential/nonreplayable_hashes.rb
metasploit-credential-2.0.10 spec/factories/metasploit/credential/nonreplayable_hashes.rb
metasploit-credential-2.0.9 spec/factories/metasploit/credential/nonreplayable_hashes.rb
metasploit-credential-2.0.8 spec/factories/metasploit/credential/nonreplayable_hashes.rb
metasploit-credential-2.0.7 spec/factories/metasploit/credential/nonreplayable_hashes.rb
metasploit-credential-2.0.6 spec/factories/metasploit/credential/nonreplayable_hashes.rb
metasploit-credential-2.0.5 spec/factories/metasploit/credential/nonreplayable_hashes.rb
metasploit-credential-2.0.4 spec/factories/metasploit/credential/nonreplayable_hashes.rb
metasploit-credential-2.0.3 spec/factories/metasploit/credential/nonreplayable_hashes.rb
metasploit-credential-2.0.2 spec/factories/metasploit/credential/nonreplayable_hashes.rb
metasploit-credential-2.0.1 spec/factories/metasploit/credential/nonreplayable_hashes.rb
metasploit-credential-2.0.0 spec/factories/metasploit/credential/nonreplayable_hashes.rb
metasploit-credential-1.1.0 spec/factories/metasploit/credential/nonreplayable_hashes.rb
metasploit-credential-1.0.1 spec/factories/metasploit/credential/nonreplayable_hashes.rb
metasploit-credential-0.14.8 spec/factories/metasploit/credential/nonreplayable_hashes.rb
metasploit-credential-1.0.0 spec/factories/metasploit/credential/nonreplayable_hashes.rb
metasploit-credential-0.14.7 spec/factories/metasploit/credential/nonreplayable_hashes.rb