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

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

Thread Previous | Thread Next
Casey West
May 9, 2003 10:58
Re: [DOC PATCH] [perl #1165] crypt accepts any character as salt
Message ID:
It was Friday, May 09, 2003 when Casey West took the soap box, saying:
: 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.

I was given a quick heads-up about some grammar issues.  New patch

  Casey West

The Internet is so big, so powerful and pointless that for some people
it is a complete substitute for life. 
 -- Andrew Brown

--- perl-current.orig/pod/perlfunc.pod  Fri May  9 00:58:19 2003
+++ perl-current/pod/perlfunc.pod       Fri May  9 13:56:57 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, and 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 Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About