Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / November 2006

Tip: Looking for answers? Try searching our database.

hash code generating algorithm.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
lavu - 17 Nov 2006 15:59 GMT
I am trying to provide some security to text files, by adding a
signature
at the end of each text file.
this signature needs to be generated by some kind of
hashing algorithm. so while sending the file,
i will sign the text file and at the receiving end,
the text file will be checked to make sure
that the hash code matches.
( not that it matters for this but my environment is c++ in vs.net2003)
any ideas about what kind of hash algorithm i could use ?
thanks in advance.
William DePalo [MVP VC++] - 17 Nov 2006 17:06 GMT
>I am trying to provide some security to text files, by adding a
> signature
[quoted text clipped - 7 lines]
> any ideas about what kind of hash algorithm i could use ?
> thanks in advance.

Hashes and digital signatures are not the same. Loosely, a signature on a
message is string which is the value of the hash of a message encrypted with
the signer's private key.

So the first thing you need to do is to decide whether you want a signature
or a hash. Just by the way, signatures usually imply the presence of a whole
infrastructure with a trusted "certificate authority".

Popular hash algorithms go by the name of SHA-1 (secure hash #1) and MD5
(message digest #5). Google is your friend.

Cryptography is a huge and hard-to-grok topic. You might want to start
reading here:

http://msdn2.microsoft.com/en-us/library/aa382450.aspx

or here

http://www.eskimo.com/~weidai/cryptlib.html

Regards,
Will
Ben Voigt - 20 Nov 2006 14:59 GMT
>>I am trying to provide some security to text files, by adding a
>> signature
[quoted text clipped - 18 lines]
> Popular hash algorithms go by the name of SHA-1 (secure hash #1) and MD5
> (message digest #5). Google is your friend.
MD5 is considered to be broken... MD4 was broken and the same mathematical
features weaken MD5, making certain attacks feasible using modern computing
systems.

> Cryptography is a huge and hard-to-grok topic. You might want to start
> reading here:
[quoted text clipped - 7 lines]
> Regards,
> Will
William DePalo [MVP VC++] - 20 Nov 2006 15:27 GMT
> MD5 is considered to be broken... MD4 was broken and the same mathematical
> features weaken MD5, making certain attacks feasible using modern
> computing systems.

And for that matter so is SHA-1:

http://www.schneier.com/blog/archives/2005/02/sha1_broken.html

The devil, though, is in the details. Whether the "collision attack"
vulnerability in SHA-1 or a vulnerability in any other algorithm is
significant depends a lot on what one wants to do, the resources one wishes
to expend, and the resources of those who might want to crack one's
security.

Chances are that if someone is posting a question _here_ the security
provided by either MD-5 or SHA-1 (assuming the OP just needs a hash
function) would suffice.

Regards,
Will
lavu - 20 Nov 2006 16:03 GMT
Thanku for giving me something to begin with. Looks like I have a lot
of reading about hash code and digital signatures.
I was told to create an ecncrypted hash code that can be appended to
the file to be secured. Sounds simple but looks like I have quite some
ways to go. My journey begins now......
Ben Voigt - 20 Nov 2006 19:22 GMT
> Thanku for giving me something to begin with. Looks like I have a lot
> of reading about hash code and digital signatures.
> I was told to create an ecncrypted hash code that can be appended to
> the file to be secured. Sounds simple but looks like I have quite some
> ways to go. My journey begins now......

Rather than searching for hash code or digital signature, try "message
authentication code".

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.