Hi all,

I've tried to use the crypt function to crypt a string longer than 8
characters but only the first 8 characters are considered.

I have used (like an example):

my $string = "1234567890";
my $result = crypt($string, $string);

Then I verify with:

if ($result eq crypt($string, $result)) {
print "ok";
}

.... but I could also verify with:

if ($result eq crypt("12345678", $result)) {
print "ok";
}

And it verifies with only the first 8 characters.

Thanks.

Teddy's Center: http://teddy.fcc.ro/
Email: [EMAIL PROTECTED]



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to