473,379 Members | 1,201 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

computing md5 hash

Hi,
Working in pure vc++ 2k5 (complete unmanaged), I want to compute md5 hash of
a given file. Any standard windows api available? Any links?

Thanks,

Ab.
Jan 4 '06 #1
6 1602
look on www.sourceforge.com . there are numerous pure C++ cryptography
projects that have libraries for almost every hash function that is in use.

kind regards,
Bruno.
"Abubakar" <ab*******@gmail.com> wrote in message
news:OU**************@TK2MSFTNGP15.phx.gbl...
Hi,
Working in pure vc++ 2k5 (complete unmanaged), I want to compute md5 hash
of
a given file. Any standard windows api available? Any links?

Thanks,

Ab.

Jan 4 '06 #2
Abubakar wrote:
Hi,
Working in pure vc++ 2k5 (complete unmanaged), I want to compute md5
hash of a given file. Any standard windows api available? Any links?


You can compute MD5 hashes using the Crypto API. It's usually easier to use
a 3rd party library though. One such is Crypto++ which you'll find at
http://www.eskimo.com/~weidai/cryptlib.html

-cd
Jan 4 '06 #3
Or openssl

"Carl Daniel [VC++ MVP]" <cp*****************************@mvps.org.nospam >
wrote in message news:u3*************@TK2MSFTNGP09.phx.gbl...
Abubakar wrote:
Hi,
Working in pure vc++ 2k5 (complete unmanaged), I want to compute md5
hash of a given file. Any standard windows api available? Any links?


You can compute MD5 hashes using the Crypto API. It's usually easier to
use a 3rd party library though. One such is Crypto++ which you'll find at
http://www.eskimo.com/~weidai/cryptlib.html

-cd

Jan 4 '06 #4
Thanks.

"Bruno van Dooren" <br**********************@hotmail.com> wrote in message
news:um**************@TK2MSFTNGP10.phx.gbl...
look on www.sourceforge.com . there are numerous pure C++ cryptography
projects that have libraries for almost every hash function that is in use.
kind regards,
Bruno.
"Abubakar" <ab*******@gmail.com> wrote in message
news:OU**************@TK2MSFTNGP15.phx.gbl...
Hi,
Working in pure vc++ 2k5 (complete unmanaged), I want to compute md5 hash of
a given file. Any standard windows api available? Any links?

Thanks,

Ab.


Jan 4 '06 #5
Thanks.

"Carl Daniel [VC++ MVP]" <cp*****************************@mvps.org.nospam >
wrote in message news:u3*************@TK2MSFTNGP09.phx.gbl...
Abubakar wrote:
Hi,
Working in pure vc++ 2k5 (complete unmanaged), I want to compute md5
hash of a given file. Any standard windows api available? Any links?
You can compute MD5 hashes using the Crypto API. It's usually easier to

use a 3rd party library though. One such is Crypto++ which you'll find at
http://www.eskimo.com/~weidai/cryptlib.html

-cd

Jan 4 '06 #6
There are functions called MD5Final, MD5Init and MD5Update in advapi32.dll.
The same functions are also in cryptdll.dll (the cryptdll.dll functions are
documented on MSDN but the advapi32.dll functions should be identical)
Jan 7 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Andy | last post by:
First of all, can I reassure you that this posting is NOT spam and not market research. Please feel free to email me at the address below to check/validate this message prior to doing the survey if...
9
by: Crirus | last post by:
I have ~200 players on a server... They share the same 512x512 tiles map... Each player have an explored area and a visible area... visible area is given by players's current units and...
34
by: Zahid Faizal | last post by:
Kindly suggest a good opensource package (in C or C++) that can compute the checksum of a file. SHA2 would be preferable, but SHA1/SHA0/MD5 would be acceptable as well. We have cards with...
12
by: Arash Partow | last post by:
Hi all, I've ported various hash functions to python if anyone is interested: def RSHash(key): a = 378551 b = 63689 hash = 0
0
by: natty2006 | last post by:
Submission Deadline extended: 13 November 2006 ************************************************************* IADIS INTERNATIONAL CONFERENCE APPLIED COMPUTING 2007 February 17-20, 2007 -...
0
by: kara18 | last post by:
Hi, am trying to create a hash tables of words and their signatures eg acert crater , here acert is the index while the crater is the value. so how would I computer an int key from...
5
by: Philip Niznik | last post by:
Hi All, This may be a framework question rather than specific to c#, but does anyone know the best approach to computing a hashcode for an audio CD (so I can check if the content of one cd is...
14
by: Aaron Watters | last post by:
So, in between skiing runs I noticed a Business Week cover story on "cloud computing". The article had lots of interesting information in it like about how somebody's mom used to be an airline...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.