in reply to Re^2: Storing encrypted data in url
in thread Storing encrypted data in url

Thank you for the reply.

Yes that's essentially the criteria, though this won't be a login, it will point to a virtual public url. So it's actually okay if search engines/caches or whatever pick it up as the other poster mentioned.

And it's no problem if a key has to be involved to encrypt, decrypt on each end. So I'll take a look at the PGP module, I kind of assumed it'd give me a huge 256 character long url or some such, which I've been trying to avoid.

I'm also wondering if whatever method is used to store passwords in /etc/shadow would work. I gather that is non trivial to decrypt and should be reliable given its wide use.

thanks! Kevin

Replies are listed 'Best First'.
Re^4: Storing encrypted data in url
by chb (Deacon) on Dec 06, 2004 at 09:00 UTC
    I think the methods used in /etc/shadow (classic unix-crypt or MD5) and the like would not work for you, as these methods are one-way. You cannot decrypt anything, you can only check if a password is valid by putting the user-supplied password though the hashing (not encrypting) algorithm and comparing the result to the stored value in /etc/shadow.