From: Casey West Date: Fri, 9 May 2003 15:25:59 +0000 (-0400) Subject: Re: [DOC PATCH] [perl #1165] crypt accepts any character as salt X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d3989d752d99f59d5b497f1becb9bfd9c9469b96;p=p5sagit%2Fp5-mst-13.2.git Re: [DOC PATCH] [perl #1165] crypt accepts any character as salt Message-ID: <20030509192559.GS49820@geeknest.com> p4raw-id: //depot/perl@19463 --- diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index d62f61a..b7c1aaf 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -870,7 +870,10 @@ different strings. When choosing a new salt create a random two character string whose characters come from the set C<[./0-9A-Za-z]> (like C). +'/', 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 system's crypt library, and Perl can't +restrict what salts C accepts. Here's an example that makes sure that whoever runs this program knows their own password: