Forum Moderators: coopster & phranque

Message Too Old, No Replies

very very simple encryption and decryption

         

lindajames

8:23 pm on Jul 31, 2003 (gmt 0)

10+ Year Member



hi,

i am looking for a very simple encryption and decryption script that will allow me to easily encrypt and decrypt data within a source code. at the moment i am using one called My::Crypt. i like it but the problem is that the encrypted string contains characters that cannot be used in a GET method form and therefore i have to use URI::Escape to solve it.

I dont want to do all that, im looking for something that will encrypt my data very simply into just numbers and letters rather than any other characters.

if anyone knows of any simple code like that please let me know. your suggestions would be very much appreciated.

cheers
linda

jatar_k

11:21 pm on Jul 31, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



we use md5 for our url encryption in php

I found this but am not sure if it is the right one
[perldoc.com...]

killroy

8:13 am on Aug 1, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



hmmm.. md5 is not an encryption algorythim,but a hash. you canot preserve the source data.

SN

lindajames

1:11 pm on Aug 1, 2003 (gmt 0)

10+ Year Member



ohhh.... isnt there any simple encryption and decryption code out there? i want to be able to encrypt a particular variable and then pass it on to another script using the GET method and then decrypt it in that script. At the moment im using My::Crypt but the problem with that is that it contains more than just letters and numbers and therefore is kind of a problem. Im looking for something that basically just changes it to letters and numbers only.

any suggestions would be appreciated.

cheers
linda

jatar_k

5:03 pm on Aug 1, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



a good point killroy, never post as you are running out the door from work. Not really sure what I was thinking on that one.

What exactly are you trying to pass lindajames that it needs to be encrypted?

jeremy goodrich

5:06 pm on Aug 1, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



There is a module called "Crypt" have you looked at that one? I've browsed some code that makes use of it, seems rather straight forward.

lindajames

5:20 pm on Aug 1, 2003 (gmt 0)

10+ Year Member



im trying to encrypt passwords