Class: Trocla::Formats::Md5crypt
- Defined in:
- lib/trocla/formats/md5crypt.rb
Overview
salted crypt
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
expensive, #expensive?, expensive?, #initialize, #render
Constructor Details
This class inherits a constructor from Trocla::Formats::Base
Instance Method Details
#format(plain_password, options = {}) ⇒ Object
3 4 5 |
# File 'lib/trocla/formats/md5crypt.rb', line 3 def format(plain_password,={}) plain_password.crypt('$1$' << Trocla::Util.salt << '$') end |