blob: a097f95247c64784b0b2fe91bee7aecc5d975c96 (
plain)
1
2
3
4
5
6
|
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
|