Sha256: e1709ededaf4dbf5fa0d8af2a4c20a4eaf91a29c13f0494e63d84176197e5550
Contents?: true
Size: 207 Bytes
Versions: 2
Compression:
Stored size: 207 Bytes
Contents
class Trocla::Formats::Mysql < Trocla::Formats::Base require 'digest/sha1' def format(plain_password, options = {}) '*' + Digest::SHA1.hexdigest(Digest::SHA1.digest(plain_password)).upcase end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
trocla-0.5.1 | lib/trocla/formats/mysql.rb |
trocla-0.5.0 | lib/trocla/formats/mysql.rb |