February 6th, 2001, 03:05 PM
This problem really baffles me and tho i have tried, but without much success. While setting the cookie I have to encrypt it without using the crypt() function. Will be happy to have some pointers to show me the right path.
February 6th, 2001, 03:27 PM
Why on earth would you want to do something like that?? OK, nevermind, try searching the CPAN for some modules that provide some different kinds of encryption.
February 6th, 2001, 04:31 PM
that is a a good question. But, It happens to be the requirement. And as I am quite new in Perl, it is quite difficult to build a encryption. anyway, fyi, I did search the cpan for this bit of information. Alas. No good. Will give a try a again. In case anybody happens to get/have any clue , will be glad to get some inputs.
February 6th, 2001, 05:01 PM
do you have the MD5 module installed on your server?? Why can't you use the crypt() function?? Is this a one-way encrytion?? Or does it have to decrypted back??
February 7th, 2001, 12:55 AM
Well, I don't know why it should be a requirement. If it has something to do with security, then perhpas you should search other options. As we all know, cookie is just a plain text file stored on a clients computer. So...
As for CPAN, you need to know which module are you looking for. mickalo there gave a good one, so I think that the MD5 encryption scheme supports decryption. Wouldn't know thought, crypt() always handled my problems.
February 7th, 2001, 09:01 AM
okay, This is certainy not one way encryption, In that case I guess, I could have used crypt() function. This happens to be two way. I have to encode first and then decode.
February 7th, 2001, 09:34 AM
We wrote a couple of modules awhile back for a customer that needed this type of encoding/decoding to access credit card information. A special key is used to decode/encode the value. One is for numercial values and one is for a string value. It's not very difficult to implement into your program,..if your using Perl. Feel free to contact me if you would like more details.
February 7th, 2001, 09:56 AM
Well, I think I will do so in case i run into some kind of complications.thnks