MD5 Hash
by Wayne Eversole · in Torque 3D Professional · 05/13/2011 (6:22 pm) · 14 replies
Anyone have a working MD5 Hash for T3D?
I found one for TGE for passwords but it will not compile on T3D.
This resource gives me link errors.
http://www.garagegames.com/community/blogs/view/4392
1>md5console.obj : error LNK2019: unresolved external symbol "void __cdecl MD5Final(unsigned char * const,struct MD5_CTX &)" (?MD5Final@@YAXQAEAAUMD5_CTX@@@Z) referenced in function "char const * __cdecl cf_getStringMD5(class SimObject *,int,char const * *)" (?cf_getStringMD5@@YAPBDPAVSimObject@@HPAPBD@Z)
Thanks
I found one for TGE for passwords but it will not compile on T3D.
This resource gives me link errors.
http://www.garagegames.com/community/blogs/view/4392
1>md5console.obj : error LNK2019: unresolved external symbol "void __cdecl MD5Final(unsigned char * const,struct MD5_CTX &)" (?MD5Final@@YAXQAEAAUMD5_CTX@@@Z) referenced in function "char const * __cdecl cf_getStringMD5(class SimObject *,int,char const * *)" (?cf_getStringMD5@@YAPBDPAVSimObject@@HPAPBD@Z)
Thanks
About the author
#3
05/15/2011 (12:16 pm)
I tried it and when I built the project I got these errors:c:\torque\torque 3d pro 1.1 preview\engine\source\console\stringmd5.h(36): error C2146: syntax error : missing ';' before identifier 'state' c:\torque\torque 3d pro 1.1 preview\engine\source\console\stringmd5.h(36): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\torque\torque 3d pro 1.1 preview\engine\source\console\stringmd5.h(36): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\torque\torque 3d pro 1.1 preview\engine\source\console\stringmd5.h(37): error C2146: syntax error : missing ';' before identifier 'count' c:\torque\torque 3d pro 1.1 preview\engine\source\console\stringmd5.h(37): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\torque\torque 3d pro 1.1 preview\engine\source\console\stringmd5.h(37): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\torque\torque 3d pro 1.1 preview\engine\source\console\stringmd5.h(38): error C2146: syntax error : missing ';' before identifier 'buffer' c:\torque\torque 3d pro 1.1 preview\engine\source\console\stringmd5.h(38): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\torque\torque 3d pro 1.1 preview\engine\source\console\stringmd5.h(38): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\torque\torque 3d pro 1.1 preview\engine\source\console\stringmd5.h(44): error C2061: syntax error : identifier 'U8' c:\torque\torque 3d pro 1.1 preview\engine\source\console\stringmd5.h(45): error C2065: 'U8' : undeclared identifier c:\torque\torque 3d pro 1.1 preview\engine\source\console\stringmd5.h(45): error C2059: syntax error : ')' c:\torque\torque 3d pro 1.1 preview\engine\source\console\consolefunctions.cpp(2536): error C2660: 'MD5Update' : function does not take 3 arguments c:\torque\torque 3d pro 1.1 preview\engine\source\console\consolefunctions.cpp(2537): error C3861: 'MD5Final': identifier not found
#4
05/27/2011 (7:40 pm)
Can I get some help please? I'm using Visual 2010 Express. Thanks :)
#5
05/28/2011 (5:49 am)
It did work fine for me. Make sure you add the files correctly (using add-> existing files or someting) and put them into the right directory. Also, if you haven't changed the files, I don't see how you can get syntax errors with several missing ";".
#6
05/28/2011 (12:07 pm)
Weird. I put them in the right directory (console) and I have not changed the files at all. I just tried it with 2008 instead of 2010 and it still gave me the same errors.
#7
05/28/2011 (2:29 pm)
I'm pretty sure I'm doing everything right, but just in case, could someone please post some step by step instructions on implementing the MD5? Thanks.
#8
05/28/2011 (11:23 pm)
This is so weird. I just made a new project and tried putting the stringmd5 files in the console folder and building it, and I get the same errors. I really need some instructions.
#9
Edit: for 1.1 preview check that the include references are pointing to the correct locations by checking to see if the files and locations exist, maybe the structure has changed again slightly.
05/29/2011 (12:20 am)
I've only tried it with 2008 Express. Just make sure you are not using the old TGE/A link in thread link I posted, as there is a reference to that before the T3D version. Tested on 1.1B3 it works, not sure about 1.1 preview. Edit: for 1.1 preview check that the include references are pointing to the correct locations by checking to see if the files and locations exist, maybe the structure has changed again slightly.
#10
05/29/2011 (1:40 am)
All the include references are pointing to the correct locations. I am using the files from post #19, and the little code blocks to add to consoleFunctions.cpp. I hope this gets fixed for 1.1 preview. Thanks for all the help by the way.
#11
05/29/2011 (5:58 pm)
I have no idea why it's not working for you Mitchell. I followed the exact same steps from post #19 and it works fine for me in 1.1 preview.
#12
I started using T3D 1.1 beta 3. I used files from my TGEA version and it works fine. I am also using VS 2008.
05/30/2011 (4:31 pm)
Witch version of T3D are you using?I started using T3D 1.1 beta 3. I used files from my TGEA version and it works fine. I am also using VS 2008.
#13
Oh I see where the errors are coming from. When you add the #include "console/stringmd5.h" in consolefunctions.cpp make sure you add it after the other #includes.
05/30/2011 (5:34 pm)
@MitchellOh I see where the errors are coming from. When you add the #include "console/stringmd5.h" in consolefunctions.cpp make sure you add it after the other #includes.
Torque Owner Jules
Something2Play