Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Encoding Password

by knobunc (Pilgrim)
on May 11, 2001 at 00:51 UTC ( #79559=note: print w/ replies, xml ) Need Help??


in reply to Encoding Password

It depends what you want to do.

Do you want to:

  1. Be able to get the exact text back later? e.g. to pass to a different program to authenticate the user.
  2. Be able to simply check that the password given matches the one previously given

The two cases are different since in the first you have to have a reversible way of getting it out which is pretty much going to be unsafe no matter what. If you can do the second case you can use the crypt function to munge the password, store the munged version and then later munge the new password given and compare the two munged versions. That way you never need to store the cleartext version.

If that doesn't help, tell us what you are really trying to do and we will help.

-ben


Comment on Re: Encoding Password

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2014-09-02 01:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (18 votes), past polls