CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
Decryption

 



perlkid
stranger

Apr 18, 2000, 3:20 AM

Post #1 of 8 (1281 views)
Decryption Can't Post

  
After Someone has submitted a password and it is encrypted and printed to a data base, if they forget it how can I decrypt it to send it back to them? Or is that not possible?

perlkid


perlkid
stranger

Apr 17, 2000, 10:39 PM

Post #2 of 8 (1281 views)
Re: Decryption [In reply to] Can't Post

 
Thanks you Guys!

I read what you wrote and it was very helpfull.

I am going to try using lwp like that, it looks familiar. So I guess after it brings in the data I can make all kinds of substitutions, right? Can I split $content into somthing? The file I'm trying to parse is in XML, news from http://www.moreover.com

So how can I split $content when the fields are separted by tags instead of pipes which is what I'm used to. I wouldn't have a problem if the tags were all the same but their different for the title, description , and source ect...

Well I'll just let you have a look.

http://p.moreover.com/cgi-local/page?index_xml+xml

I don't want most of the information, just the title, url, and maybe the source.

Thanks alot Cure, Japhy

perlkid


darian
Deleted

Apr 18, 2000, 3:48 AM

Post #3 of 8 (1281 views)
Re: Decryption [In reply to] Can't Post

Perl does not have a decrypt feature. What I would do is to write the username and password in a file in a secure directory and then query that file for the lost password or simply write a new on in place of their old password they forgot. The latter one is probably a more secure way of doing it.


perlkid
stranger

Apr 18, 2000, 6:15 AM

Post #4 of 8 (1281 views)
Re: Decryption [In reply to] Can't Post

 Hi Darian,

I was hoping it had a decryption feature but I kind of expected it not to.

That's a good idea though. But I don't know how to replace an individual field or line in a large data base. How could I do that? I figured that I would need to find the line with their information by using a matching operator but how can I replace the line that I find?

Also, do you know how to use any of the lwp modules to go to a url and fetch a data base? Because I am trying to figure that out.

Thanks Darian

perlkid


Cure
User

Apr 18, 2000, 8:03 AM

Post #5 of 8 (1281 views)
Re: Decryption [In reply to] Can't Post

Hi

LWP::Simple

use LWP::Simple;
$content = get("http://www.sn.no/");

print $content;

Cure


japhy
Enthusiast

Apr 18, 2000, 8:14 AM

Post #6 of 8 (1281 views)
Re: Decryption [In reply to] Can't Post

I wrote an explanation on how crypt() works, and something you might want to do for encryption.

Read it here.


Cure
User

Apr 18, 2000, 1:00 PM

Post #7 of 8 (1281 views)
Re: Decryption [In reply to] Can't Post

Hi

Example.
go here you -> http://www.x-rates.com/htmlgraphs/DEM120.html

you see the the 2.06 (its in bold)

Im going to show you a example that will fecth 2.06 from that website.

use LWP::Simple;

get('http://www.x-rates.com/htmlgraphs/DEM120.html') =~
/<B>(\d)\.(\d{2})<\/B>\n/ and print $1,'.',$2;


Just use regular expressions-> like the example.

If you want finger control over the website your trying to fecth-> then I would recommend using the LWP::UserAgent module

Cure




perlkid
stranger

Apr 20, 2000, 5:25 AM

Post #8 of 8 (1281 views)
Re: Decryption [In reply to] Can't Post

 
Hi cure, Sorry for the late response. I had a system crash yesturday.

About the regular expressions, I tried using the example but I couldn't get any results. What was I doing wrong. And maybe LWP::UserAgent is for me but I don't know how to use that module any better.

Thanks,

perlkid

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives