class Trocla::Formats::Pgsql

Public Instance Methods

format(plain_password,options={}) click to toggle source
# File lib/trocla/formats/pgsql.rb, line 3
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