in reply to Re: Re: Crypt::DES returns same string
in thread Crypt::DES returns same string
Ahhhh ok, I think i'm begining to understand. DES cant do this. Given a key and plaintext, DES will always produce the same ciphertext.
What I think you're after is session management.
The basic gist is:
The token can be an MD5 hash. The list of users can be in a database or in a flatfile, and you should have a sessions table (or ff) which would have the token and the user_id in it.
Each page view you get the token (from a CGI param or from a cookie) and look it up in your session table.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Crypt::DES returns same string
by learn_forever (Acolyte) on Mar 30, 2002 at 23:10 UTC | |
by Ryszard (Priest) on Mar 30, 2002 at 23:36 UTC |