summaryrefslogtreecommitdiff
path: root/lib/trocla/formats/pgsql.rb
blob: de233c7918979e8cb905a6f5f22ce8bcfe541d0b (plain)
1
2
3
4
5
6
7
class Trocla::Formats::Pgsql
  require 'digest/md5'
  def format(plain_password,options={})
    raise "You need pass the username as an option to use this format" unless options['username'] 
    "md5" + Digest::MD5.hexdigest(plain_password + options['username'])
  end
end