Sha256: 6dca701604fe8e2e052dfc2c21ea25a1ad0f26c735fcbb03126b44eebbf9c5ae

Contents?: true

Size: 227 Bytes

Versions: 3

Compression:

Stored size: 227 Bytes

Contents

class SymmetricCredential
  include Mongoid::Document
  include Mongoid::Encryptor

  field :email
  field :password

  validates_presence_of :email, :password

  encrypts :password, :mode => :symmetric, :password => 'key'
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mongoid-encryptor-0.0.5 spec/models/symmetric_credential.rb
mongoid-encryptor-0.0.4 spec/models/symmetric_credential.rb
mongoid-encryptor-0.0.1 spec/models/symmetric_credential.rb