|
MD5 hash of a string in C |
John Grube
Member #7,432
July 2006
|
I need to get the MD5 hash of a string so I can send it to a webserver, but all the examples I find all come up with linker errors. I'm using MinGW to compile different C examples, and like I said, they don't work. So, does anyone have any working code they'd be willing to share or does anyone have any links to something that does work? Edit: Actually, something for SHA-1 would work too. |
Jonatan Hedborg
Member #4,886
July 2004
|
I found one on google fairly quickly. There were some compile errors, but i didnt need those functions anyway. It was for C++.
|
dudaskank
Member #561
July 2000
|
Maybe you can try this: http://sourceforge.net/projects/libmd5-rfc/ Toque a balada do amor inabalável, eterna love song de nós dois |
John Grube
Member #7,432
July 2006
|
Quote: I found one on google fairly quickly. There were some compile errors, but i didnt need those functions anyway. It was for C++. Yes, but I need one for C. Quote: Maybe you can try this: http://sourceforge.net/projects/libmd5-rfc/ That was one of the ones I tried. I keep getting the following errors: Quote:
[Linker error] undefined reference to `WinMain@16' Is there a library I need to tell the linker to use? |
BAF
Member #2,981
December 2002
|
Look at the source for md5sum on linux... http://www.netlib.org/crc/md5sum.c |
|