Module Devise::Models::Encryptable
In: lib/devise/models/encryptable.rb

Encryptable Module adds support to several encryptors.

Options

Encryptable adds the following options to devise_for:

  * +pepper+: a random string used to provide a more secure hash.

  * +encryptor+: the encryptor going to be used. By default is nil.

Examples

   User.find(1).valid_password?('password123') # returns true/false

Methods

Classes and Modules

Module Devise::Models::Encryptable::ClassMethods

Public Instance methods

Generates password salt.

Verifies whether an incoming_password (ie from sign in) is the user password.

Protected Instance methods

Digests the password using the configured encryptor.

[Validate]