Module: Mori::Password
- Includes:
- BCrypt
- Defined in:
- lib/mori/password.rb
Instance Method Summary collapse
Instance Method Details
#compare_encrypted(string) ⇒ Object
11 12 13 |
# File 'lib/mori/password.rb', line 11 def compare_encrypted(string) ::BCrypt::Password.new(string) end |
#encrypt(string) ⇒ Object
7 8 9 |
# File 'lib/mori/password.rb', line 7 def encrypt(string) ::BCrypt::Password.create(string, :cost => cost) end |