Sha256: 0df6dab73f1829d68921d8b39c09c2b9e8634fd614ef12b41f6dc619b322e2ee
Contents?: true
Size: 633 Bytes
Versions: 1
Compression:
Stored size: 633 Bytes
Contents
FactoryGirl.define do factory :metasploit_credential_password_hash, # no need to declare metasploit_credential_private as the :parent because :metasploit_credential_password_hash # uses its own data sequence to differentiate password hashes from other private data and #type is # automatically set by ActiveRecord because Metasploit::Credential::Password is an STI subclass. class: Metasploit::Credential::Password do transient do password_data { generate :metasploit_credential_password_data } end data { BCrypt::Password.create(password_data).hash } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
metasploit-credential-0.14.1 | spec/factories/metasploit/credential/password_hashes.rb |