summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2011-08-12 13:25:56 +0200
committermh <mh@immerda.ch>2011-08-12 13:25:56 +0200
commitec8e874a46ed9a548825cbddaa2d5675512ea470 (patch)
tree24de4d6ff9cff54571c9c8a6baf168182aa80343 /lib
parent3c62a97ec02c46703fe5dc2b28493932e5bf706e (diff)
add missing bcrypt file
Diffstat (limited to 'lib')
-rw-r--r--lib/trocla/formats/bcrypt.rb6
1 files changed, 6 insertions, 0 deletions
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