Click here to Skip to main content
16,005,169 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to use PPP protocol from Windows ?? Pin
Joaquín M López Muñoz8-Jun-03 23:51
Joaquín M López Muñoz8-Jun-03 23:51 
GeneralVoice chat appln Pin
Member 4302028-Jun-03 22:20
Member 4302028-Jun-03 22:20 
QuestionHow to command the controller of Floppy Disk Device to do verify? Pin
FlyingDancer8-Jun-03 21:53
FlyingDancer8-Jun-03 21:53 
Generalmd5 Pin
Abin8-Jun-03 19:08
Abin8-Jun-03 19:08 
GeneralRe: md5 Pin
Michael Dunn8-Jun-03 20:10
sitebuilderMichael Dunn8-Jun-03 20:10 
GeneralRe: md5 Pin
Dominik Reichl8-Jun-03 21:15
Dominik Reichl8-Jun-03 21:15 
GeneralRe: md5 Pin
Abin8-Jun-03 21:24
Abin8-Jun-03 21:24 
GeneralRe: md5 Pin
Dominik Reichl8-Jun-03 21:51
Dominik Reichl8-Jun-03 21:51 
Then go and download my ReHash hash calculator source code. Go to the "algo" directory and grab the files MD5.cpp and MD5.h.

Include these 2 files to your project. These 2 files implement the MD5 standard as described in RFC 1321 by Rivest.

To hash a string, do the following:

char yourstring[] = "this can be a string of any length";
MD5_CTX ctx;
MD5Init(&ctx, 0);
MD5Update(&ctx, (unsigned char *)yourstring, strlen(yourstring));
MD5Final(&ctx);
Now ctx.digest[16] contains the 16 hash bytes (MD5 is a 128-bit hash, therefor 16 bytes [16*8=128]).

You could output these 16 bytes like this:
for(int i = 0; i < 16; i++) printf("%02X ", ctx.digest[i]);
Hope that helps
-Dominik



_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do?? Wink | ;)

GeneralRe: md5 Pin
Abin9-Jun-03 4:37
Abin9-Jun-03 4:37 
GeneralCapture code Pin
Denis A. Vergara8-Jun-03 16:20
Denis A. Vergara8-Jun-03 16:20 
GeneralGetTextExtent Pin
crewchill8-Jun-03 14:07
crewchill8-Jun-03 14:07 
GeneralRe: GetTextExtent Pin
Michael Dunn8-Jun-03 14:52
sitebuilderMichael Dunn8-Jun-03 14:52 
GeneralRe: GetTextExtent Pin
basementman9-Jun-03 5:35
basementman9-Jun-03 5:35 
GeneralCalculating video stream data rate Pin
georgiek508-Jun-03 13:29
georgiek508-Jun-03 13:29 
GeneralRe: Calculating video stream data rate Pin
Michael Dunn8-Jun-03 14:56
sitebuilderMichael Dunn8-Jun-03 14:56 
GeneralRe: locking the view Pin
geo_m8-Jun-03 21:34
geo_m8-Jun-03 21:34 
GeneralRe: locking the view Pin
geo_m10-Jun-03 19:26
geo_m10-Jun-03 19:26 
QuestionHow to add editbox on statusbar? Pin
zeki yugnak8-Jun-03 11:28
zeki yugnak8-Jun-03 11:28 
AnswerRe: How to add editbox on statusbar? Pin
Michael Dunn8-Jun-03 15:05
sitebuilderMichael Dunn8-Jun-03 15:05 
Generalactivate control Pin
aguest8-Jun-03 11:05
aguest8-Jun-03 11:05 
GeneralRe: activate control Pin
valikac8-Jun-03 13:26
valikac8-Jun-03 13:26 
GeneralRe: activate control Pin
aguest8-Jun-03 14:18
aguest8-Jun-03 14:18 
GeneralRe: activate control Pin
aguest8-Jun-03 14:19
aguest8-Jun-03 14:19 
GeneralRe: activate control Pin
Dominik Reichl8-Jun-03 22:00
Dominik Reichl8-Jun-03 22:00 
GeneralRe: activate control Pin
aguest9-Jun-03 5:28
aguest9-Jun-03 5:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.