I am writing a C # application that allows users to store emails in an MS SQL Server database. Many times, multiple users will be copied by email from the client. If they all try to add the same letter to the database, I want the message to be added only once.
MD5 recalls how to do this. I don’t have to worry about malicious falsification, just to make sure that the same email address will be mapped to the same hash and that no two emails with other content will be displayed in the same hash.
My question really comes down to how can I combine multiple fields into one MD5 (or other) hash value. Some of these fields will have one value for each e-mail (for example, subject, body, sender email address), while others will have several values (different number of attachments, recipients). I want to develop a way to uniquely identify email that is platform and language independent (not based on serialization). Any tips?
source
share