diff options
-rw-r--r-- | lib/trocla/formats/bcrypt.rb | 6 |
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 |