Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^3: [OT?] Sanity check... (On MD5, 3DES, Cookies and other animals)

by waswas-fng (Curate)
on Nov 05, 2004 at 20:51 UTC ( [id://405631]=note: print w/replies, xml ) Need Help??


in reply to Re^2: [OT?] Sanity check... (On MD5, 3DES, Cookies and other animals)
in thread [OT?] Sanity check... (On MD5, 3DES, Cookies and other animals)

Mod_perl side: use MD5; $date = get_todays_shortdate(); # 11/05/2004 $Private_secret = "This is my private server password" $data = "this is my signed data." $digest = MD5->hash("$date:$Private_secret:$data");
Send the digest and the data over to the other server and it knows the Private_secret and can verify that the data has been signed by constructing the same string calling md5->hash on it and comparing the two digests... If the hacker does not know the private_secret or the layout of the digest string then they cant forge the $data sig.


-Waswas

Replies are listed 'Best First'.
Re^4: [OT?] Sanity check... (On MD5, 3DES, Cookies and other animals)
by smullis (Pilgrim) on Nov 05, 2004 at 20:58 UTC

    Aha!

    Great idea...


    Cheers

    SM

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://405631]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-03-29 08:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found