Class: Trocla::Formats::Argon2
- Defined in:
- lib/trocla/formats/argon2.rb
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
4 5 6 |
# File 'lib/trocla/formats/argon2.rb', line 4 def format(plain_password, = {}) Argon2::Password.create(plain_password,['argon2'] || {}) end |