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 12, 2003 08:19
Re: [DOC PATCH] [perl #1165] crypt accepts any character as salt
Message ID:
It was Monday, May 12, 2003 when david nicol took the soap box, saying:
: The comment belongs within the parentheses.

Not really, the parens only enclose the example code used to create a
random salt with the proposed characters.  The  recommended characters
are details before the begining of the parens.

: -+'/', 0..9, 'A'..'Z', 'a'..'z')[rand 64, rand 64]>).  This set of
: ++'/', 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.
: ++restrict what salts C<crypt()> accepts.)

  Casey West

Shooting yourself in the foot with C 
You shoot yourself in the foot. 

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About