Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: file comparison

by Marshall (Canon)
on Jun 27, 2009 at 03:24 UTC ( [id://775224]=note: print w/replies, xml ) Need Help??


in reply to file comparison

I would recommend setting up an SSL (Secure Socket Link). One link with some definitions is: http://en.wikipedia.org/wiki/Secure_Sockets_Layer

There are many ways of doing this. The main point is that your thinking (algorithm) is not correct. There will be essentially be an encrypt function and a decrypt function.

A layer on top of that is that the number of bytes sent == number bytes received by some protocol. This is like receiving a binary file with a "checksum".

By definition of an encrypted link, there is NO comparison of sent byte 1 to received byte 1. Ie, I sent a "secret message", you get it and decrypt it, but there is never any discussion about whether my char 3 is the same as char 3 that you sent. In fact, I may even send more encrypted bits (or even less) than you sent me to encrypt to begin with!

Typically the encrypted message is "transported" via standard protocols that show the num bytes sent, etc. You "got" the encrypted message by: 1)transport layer says that it is ok (number of bytes sent and received are the same and reasonable probability that no transmission error occured, 2)decrypted values "make sense".

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-25 17:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found