Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: passwords revisited

by dempa (Friar)
on Jul 13, 2000 at 11:07 UTC ( [id://22325]=note: print w/replies, xml ) Need Help??


in reply to passwords revisited

If you look up crypt in perlfunc, you'll see this:
When verifying an existing encrypted string you should use the encrypted text as the salt (like `crypt($plain, $crypted) eq $crypted'). This allows your code to work with the standard `crypt' and with more exotic implementations.
You have have used substr in your code to cut off just the salt. I don't have access to any FreeBSD box, so I can't test if this is really the problem, but I figured I should throw this in anyway just in case.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-03-28 16:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found