diff options
Diffstat (limited to 'lib/trocla/formats/sha512crypt.rb')
-rw-r--r-- | lib/trocla/formats/sha512crypt.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/trocla/formats/sha512crypt.rb b/lib/trocla/formats/sha512crypt.rb new file mode 100644 index 0000000..47eb11e --- /dev/null +++ b/lib/trocla/formats/sha512crypt.rb @@ -0,0 +1,6 @@ +# salted crypt +class Trocla::Formats::Sha512crypt < Trocla::Formats::Base + def format(plain_password,options={}) + plain_password.crypt('$6$' << Trocla::Util.salt << '$') + end +end |