Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Generate Checksum on string? 1

Status
Not open for further replies.

rdgerken

Technical User
Jul 8, 2002
108
Can anybody post some code or give me some info on how to generate a checksum on an ASCII string? I have an application where I need to compare large strings, and be able to tell if the string has changed.

Thanks!
 
You could use an MD5 message digest in the same way, which is supported by .NET (so you wouldn't have to code the algorithm)

See for a comprehensive example which uses a byte array, but it should be relatively easy to adapt.

Steve

[small]"Every program can be reduced by one instruction, and every program has at least one bug. Therefore, any program can be reduced to one instruction which doesn't work." (Object::perlDesignPatterns)[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top