Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Crypt::CBC and verifying passwords

by Belgarion (Chaplain)
on May 19, 2004 at 17:56 UTC ( [id://354698]=note: print w/replies, xml ) Need Help??


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....

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://354698]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2025-07-20 11:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.