From ec8e874a46ed9a548825cbddaa2d5675512ea470 Mon Sep 17 00:00:00 2001 From: mh Date: Fri, 12 Aug 2011 13:25:56 +0200 Subject: add missing bcrypt file --- lib/trocla/formats/bcrypt.rb | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 lib/trocla/formats/bcrypt.rb (limited to 'lib') diff --git a/lib/trocla/formats/bcrypt.rb b/lib/trocla/formats/bcrypt.rb new file mode 100644 index 0000000..7196e54 --- /dev/null +++ b/lib/trocla/formats/bcrypt.rb @@ -0,0 +1,6 @@ +class Trocla::Formats::Bcrypt + require 'bcrypt' + def format(plain_password,options={}) + BCrypt::Password.create(plain_password).to_s + end +end -- cgit v1.2.3