in reply to Crypt::CBC and verifying passwords

There doesn't appear to be anything wrong with the code you presented. I just tried it by setting $password and $dbpw to the same value, and the encrypted values are both the same. I would image the problem is either in the database retrieval routine or the comparison routine.

Perhaps you can provide more code or a more detailed explanation.

Replies are listed 'Best First'.
Re: Re: Crypt::CBC and verifying passwords
by geektron (Curate) on May 19, 2004 at 18:35 UTC
    i can't believe i didn't catch something so stupid.

    the keys and IV-strings are different between subs ...

    /me bangs head on desk repeatedly....