Click here to Skip to main content
6,595,854 members and growing! (17,941 online)
Email Password   helpLost your password?
General Programming » Cryptography & Security » Cryptography     Intermediate

Use Windows Crypto API to calculate a MD5 string.

By Victor M. Valenzuela

Use Windows Crypto API to calculate a MD5 string.
VC6, VC7Win2K, WinXP, MFC, Dev
Posted:29 Aug 2002
Views:108,522
Bookmarked:43 times
Announcements
Loading...
 
Search    
Advanced Search
Add to IE Search
printPrint   add Share
      Discuss Discuss   Broken Article?Report  
33 votes for this article.
Popularity: 4.58 Rating: 3.02 out of 5
5 votes, 19.2%
1
5 votes, 19.2%
2
1 vote, 3.8%
3
5 votes, 19.2%
4
10 votes, 38.5%
5

Introduction

The source code demonstrates how to invoke the Windows Crypto API to calculate a MD5 string.

The MD5 Message-Digest Algorithm is described in Internet RFC 132.

The sample uses the class Cmd5Capi, a very simple MFC class to wrap the standard win api necesary calls.

Includes required

#include <wincrypt.h> // Cryptographic API Prototypes and Definitions

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

Victor M. Valenzuela


Member
Now, I works for Aurigae S.A a spanish services enterprise, specialized on information technologies for critical mission applications, mainly in the areas of payment system management, stock trading and telecommunications.

Occupation: Web Developer
Location: Spain Spain

Other popular Cryptography & Security articles:

Article Top
You must Sign In to use this message board.
FAQ FAQ 
 
Noise Tolerance  Layout  Per page   
 Msgs 1 to 24 of 24 (Total in Forum: 24) (Refresh)FirstPrevNext
GeneralThanks PinmemberAsaf G1:05 6 May '08  
GeneralHow to decrypt data? Pinmemberivax1:49 4 Oct '05  
GeneralRe: How to decrypt data? PinmemberJohn A. Johnson1:06 26 Oct '05  
GeneralA better solution : here is the code PinmemberElmue11:43 22 Apr '04  
GeneralRe: A better solution : here is the code PinmemberHughJampton7:11 25 Apr '05  
GeneralRe: A better solution : here is the code PinsussAnonymous13:32 25 Apr '05  
GeneralRe: A better solution : here is the code PinmemberHughJampton16:00 25 Apr '05  
GeneralExcellent code - one simple modification PinmemberDouglas R. Keesler16:41 5 Jun '05  
GeneralRe: A better solution : here is the code Pinmemberpscholl7:01 6 Jun '08  
GeneralRe: A better solution : here is the code PinmemberElmue15:40 6 Jun '08  
GeneralProblem with this constructor. PinmemberMr.Prakash17:28 20 Jan '04  
GeneralCompile Error ! Pinmemberfreedem16:00 2 Dec '03  
GeneralRe: Compile Error ! PinmemberVictor M. Valenzuela22:28 2 Dec '03  
GeneralRe: Compile Error ! PinmemberMihai Moga21:44 29 Mar '06  
GeneralRe: Compile Error ! Pinmemberbahram_cho21:42 6 Apr '07  
Generalcompilation Errors Pinmemberrohitgad8:40 24 Sep '03  
GeneralRe: compilation Errors PinmemberVinayak10:54 16 Jun '04  
GeneralRe: compilation Errors PinmemberScott B.19:59 21 Mar '06  
GeneralDifferent Output PinmemberAtif Goheer17:42 5 Aug '03  
GeneralRe: Different Output Pinmemberqihongbo23:04 28 Sep '03  
GeneralThanks PinmemberPaul Hooper15:40 25 Apr '03  
GeneralCrypto.h PinsussAnonymous4:15 4 Nov '02  
GeneralRe: Crypto.h PinmemberStefan-Mihai MOGA1:49 27 Jun '05  
GeneralNeeds improvements PinmemberVagif Abilov3:46 30 Aug '02  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 29 Aug 2002
Editor: Nishant Sivakumar
Copyright 2002 by Victor M. Valenzuela
Everything else Copyright © CodeProject, 1999-2009
Web20 | Advertise on the Code Project