Bugs: Browse | Submit New | Admin

[#12606] String#crypt default random salt

Date:
2007-07-26 20:59
Priority:
3
Submitted By:
7rans (transami)
Assigned To:
Akinori MUSHA (knu)
Category:
Crypto / Digest / Compression
State:
Open
Platform:
 
Summary:
String#crypt default random salt

Detailed description
Seems reasonable that String#crypt would generate a random salt if none is given.  I noticed other systems/languages
provide that.

  # Where String.rand_letter is a pseudo-function.

  def crypt(salt=nil)
    salt ||= String.rand_letter + String.rand_letter
    ...
  end

Thanks.

Add A Comment: Notepad

Please login


Followup

Message
Date: 2007-07-26 21:02
Sender: 7rans 

Sorry, I should have submitted that as a patch.

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item