in reply to Non matching encrypted string

Could it be that different seeds are being used? But why go through the trouble of comparing the encrypted passwords? Why not compare $p1 and $p2, and don't even bother with the encryption if they differ?

Abigail

Replies are listed 'Best First'.
Re: Re: Non matching encrypted string
by hardburn (Abbot) on Oct 09, 2003 at 16:24 UTC

    Could it be that different seeds are being used?

    There's no point to using CBC mode if the seeds are the same :)

    So yes, the only way to do it is to check the passwords before encrypting. Which is what should have been done in the first place.

    ----
    I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
    -- Schemer

    Note: All code is untested, unless otherwise stated