summaryrefslogtreecommitdiff
path: root/lib/trocla/formats/sha256crypt.rb
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2011-12-17 15:09:50 +0100
committermh <mh@immerda.ch>2011-12-17 15:09:50 +0100
commit615d346cc72c523c822c03ed1a47ffd47680d6ff (patch)
tree1aba9aee129b3bd11fbe744a5f8aa09f1eef187e /lib/trocla/formats/sha256crypt.rb
parent32f5c0adea3911a5619656a4b346feff46b0c9a8 (diff)
parent16158840cd12bcb74574eeb5104a8b3f3ec61305 (diff)
Merge remote-tracking branch 'immerda/master'
Diffstat (limited to 'lib/trocla/formats/sha256crypt.rb')
-rw-r--r--lib/trocla/formats/sha256crypt.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/trocla/formats/sha256crypt.rb b/lib/trocla/formats/sha256crypt.rb
index fe6659c..6bd1b72 100644
--- a/lib/trocla/formats/sha256crypt.rb
+++ b/lib/trocla/formats/sha256crypt.rb
@@ -1,6 +1,6 @@
# salted crypt
class Trocla::Formats::Sha256crypt
def format(plain_password,options={})
- plain_password.crypt('$5$' << Trocla::Util.random_str(8) << '$')
+ plain_password.crypt('$5$' << Trocla::Util.salt << '$')
end
end