Sha256: 4ea9d34c71978772c84f5c53806a5ca3f0a3d4a51bbdcd558b630fa072c3fe12
Contents?: true
Size: 630 Bytes
Versions: 67
Compression:
Stored size: 630 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 ignore do password_data { generate :metasploit_credential_password_data } end data { BCrypt::Password.create(password_data).hash } end end
Version data entries
67 entries across 67 versions & 1 rubygems