diff options
author | mh <mh@immerda.ch> | 2011-07-27 18:43:55 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2011-07-27 18:43:55 +0200 |
commit | 9146a541ff96b92f4f14c6292307b68dc4673097 (patch) | |
tree | 3637ab49056565fad3566d78698634c2a6ab7265 /lib/trocla/formats/mysql.rb |
initial release of trocla
Diffstat (limited to 'lib/trocla/formats/mysql.rb')
-rw-r--r-- | lib/trocla/formats/mysql.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/trocla/formats/mysql.rb b/lib/trocla/formats/mysql.rb new file mode 100644 index 0000000..7fbc3a7 --- /dev/null +++ b/lib/trocla/formats/mysql.rb @@ -0,0 +1,6 @@ +class Trocla::Formats::Mysql + require 'digest/sha1' + def format(plain_password,options={}) + "*" + Digest::SHA1.hexdigest(Digest::SHA1.digest(plain_password)).upcase + end +end
\ No newline at end of file |