develooper Front page | perl.perl5.porters | Postings from May 2003

[DOC PATCH] [perl #1165] crypt accepts any character as salt

Thread Next
From:
Casey West
Date:
May 9, 2003 10:51
Subject:
[DOC PATCH] [perl #1165] crypt accepts any character as salt
Message ID:
20030509175639.GP49820@geeknest.com
http://rt.perl.org/rt2/Ticket/Display.html?id=1165

Since Schwern hasn't been able to convince anyone that this should be
fixed in the interpreter, I'm going to supply his suggested
documentation patch.

  Casey West

-- 
"Professor Goddard does not know the relation between action and
reaction and the need to have something better than a vacuum against
which to react. He seems to lack the basic knowledge ladled out daily
in high schools."
 -- 1921 New York Times editorial about Robert Goddard's revolutionary
    rocket work. 

--- perl-current.orig/pod/perlfunc.pod  Fri May  9 00:58:19 2003
+++ perl-current/pod/perlfunc.pod       Fri May  9 13:46:26 2003
@@ -870,7 +870,10 @@
 
 When choosing a new salt create a random two character string whose
 characters come from the set C<[./0-9A-Za-z]> (like C<join '', ('.',
-'/', 0..9, 'A'..'Z', 'a'..'z')[rand 64, rand 64]>).
+'/', 0..9, 'A'..'Z', 'a'..'z')[rand 64, rand 64]>).  This set of
+characters is just a recommendation.  The characters allowed in
+the salt depend solely on your systems crypt library, Perl can't
+restrict what salts C<crypt()> accepts.
 
 Here's an example that makes sure that whoever runs this program knows
 their own password:

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About