Class: Trocla::Formats::Mysql
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/mysql.rb', line 3 def format(plain_password, = {}) '*' + Digest::SHA1.hexdigest(Digest::SHA1.digest(plain_password)).upcase end |