summaryrefslogtreecommitdiff
path: root/pod/perlfunc.pod
diff options
context:
space:
mode:
authorCasey West <casey@geeknest.com>2003-05-09 11:25:59 -0400
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2003-05-09 19:33:25 +0000
commitd3989d752d99f59d5b497f1becb9bfd9c9469b96 (patch)
tree464a41d85483fdd6ea2f8fb106e3da09a755e56e /pod/perlfunc.pod
parent1b7a0411f8b7cab25944dd0429da7dbe6061945b (diff)
downloadperl-d3989d752d99f59d5b497f1becb9bfd9c9469b96.tar.gz
Re: [DOC PATCH] [perl #1165] crypt accepts any character as salt
Message-ID: <20030509192559.GS49820@geeknest.com> p4raw-id: //depot/perl@19463
Diffstat (limited to 'pod/perlfunc.pod')
-rw-r--r--pod/perlfunc.pod5
1 files changed, 4 insertions, 1 deletions
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod
index d62f61a0f1..b7c1aafba2 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<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 system's 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: