Perl Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPerl Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old February 6th, 2001, 03:05 PM
s_ashok s_ashok is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Location: Chicago, IL
Posts: 14 s_ashok User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi,
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.

Thanks

Reply With Quote
  #2  
Old February 6th, 2001, 03:27 PM
dwarf dwarf is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 300 dwarf User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
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.

Reply With Quote
  #3  
Old February 6th, 2001, 04:31 PM
s_ashok s_ashok is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Location: Chicago, IL
Posts: 14 s_ashok User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

thanks

Reply With Quote
  #4  
Old February 6th, 2001, 05:01 PM
mickalo's Avatar
mickalo mickalo is offline
Ole` Timer
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Location: N.W. Iowa
Posts: 469 mickalo User rank is Private First Class (20 - 50 Reputation Level)mickalo User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 5 h 19 sec
Reputation Power: 8
Send a message via AIM to mickalo Send a message via MSN to mickalo
Wink

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??

Mickalo
__________________

Thunder Rain Internet Publishing

Custom Programming & Database development
Providing Personal/Business
Internet Solutions that work!

Reply With Quote
  #5  
Old February 7th, 2001, 12:55 AM
dwarf dwarf is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 300 dwarf User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
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.

Reply With Quote
  #6  
Old February 7th, 2001, 09:01 AM
s_ashok s_ashok is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Location: Chicago, IL
Posts: 14 s_ashok User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

thanks

Reply With Quote
  #7  
Old February 7th, 2001, 09:34 AM
mickalo's Avatar
mickalo mickalo is offline
Ole` Timer
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Location: N.W. Iowa
Posts: 469 mickalo User rank is Private First Class (20 - 50 Reputation Level)mickalo User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 5 h 19 sec
Reputation Power: 8
Send a message via AIM to mickalo Send a message via MSN to mickalo
Wink

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.

Cheers

Mickalo

Reply With Quote
  #8  
Old February 7th, 2001, 09:56 AM
s_ashok s_ashok is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Location: Chicago, IL
Posts: 14 s_ashok User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Well, I think I will do so in case i run into some kind of complications.thnks


Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > encryption of cookie


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway