Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^4: encrypt/decrypt string

by artist (Parson)
on Oct 19, 2006 at 18:18 UTC ( [id://579435]=note: print w/replies, xml ) Need Help??


in reply to Re^3: encrypt/decrypt string
in thread encrypt/decrypt string

You might have slightly misunderstood. I have a link for RSS feed. When user clicks on RSS feed, it gives the URL for the RSS feed, particularly for that user. URL should be of the form: server/cgi-bin/rss.pl?feed_id=ABCDEF123456787980". They can take this feed id and plugin into their favorite RSS reader. Now, I should be able to decode the feed_id on the backend, whenever they call and genrate live RSS feed for them.
--Artist

Replies are listed 'Best First'.
Re^5: encrypt/decrypt string
by GrandFather (Saint) on Oct 19, 2006 at 18:32 UTC

    Rather than encrypt/decrypt a string, why not generate a random string that you use as a key to look up the session information? That way there is nothing to decrypt, it's a one time pad in effect.


    DWIM is Perl's answer to Gödel
      I don't have to maintain a table. Also, it's not about the sessions. URL given to user, should be fixed for lifetime, based on login. Also, on decryption, I need to get the 'login' info back.
      --Artist
        Artist, what they are saying is: if you want the login info to be secure, why not just use a random string or number and link it to that login on the server side? If you don't really care about it being secure, why not just send the login unencrypted? Personally, I still can't see what you want to accomplish by encrypting.

        -driver8

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2024-04-26 03:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found