Click here to Skip to main content
11,494,851 members (63,637 online)
Click here to Skip to main content

Use Windows Crypto API to calculate a MD5 string.

, 29 Aug 2002 165.3K 4.9K 56
Rate this:
Please Sign up or sign in to vote.
Use Windows Crypto API to calculate a MD5 string.

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

Share

About the Author

Victor M. Valenzuela
Web Developer
Spain Spain
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.

Comments and Discussions

 
GeneralThanks Pin
Asaf G6-May-08 1:05
memberAsaf G6-May-08 1:05 
QuestionHow to decrypt data? Pin
ivax4-Oct-05 1:49
memberivax4-Oct-05 1:49 
AnswerRe: How to decrypt data? Pin
John A. Johnson26-Oct-05 1:06
memberJohn A. Johnson26-Oct-05 1:06 
GeneralA better solution : here is the code Pin
Elmue22-Apr-04 11:43
memberElmue22-Apr-04 11:43 
GeneralRe: A better solution : here is the code Pin
HughJampton25-Apr-05 7:11
memberHughJampton25-Apr-05 7:11 
GeneralRe: A better solution : here is the code Pin
Anonymous25-Apr-05 13:32
sussAnonymous25-Apr-05 13:32 
GeneralRe: A better solution : here is the code Pin
HughJampton25-Apr-05 16:00
memberHughJampton25-Apr-05 16:00 
GeneralExcellent code - one simple modification Pin
Douglas R. Keesler5-Jun-05 16:41
memberDouglas R. Keesler5-Jun-05 16:41 
GeneralRe: A better solution : here is the code Pin
pscholl6-Jun-08 7:01
memberpscholl6-Jun-08 7:01 
GeneralRe: A better solution : here is the code Pin
Elmue6-Jun-08 15:40
memberElmue6-Jun-08 15:40 
GeneralProblem with this constructor. Pin
Mr.Prakash20-Jan-04 17:28
memberMr.Prakash20-Jan-04 17:28 
GeneralCompile Error ! Pin
freedem2-Dec-03 16:00
memberfreedem2-Dec-03 16:00 
GeneralRe: Compile Error ! Pin
Victor M. Valenzuela2-Dec-03 22:28
memberVictor M. Valenzuela2-Dec-03 22:28 
GeneralRe: Compile Error ! Pin
Mihai Moga29-Mar-06 21:44
memberMihai Moga29-Mar-06 21:44 
GeneralRe: Compile Error ! Pin
bahram_cho6-Apr-07 21:42
memberbahram_cho6-Apr-07 21:42 
Generalcompilation Errors Pin
rohitgad24-Sep-03 8:40
memberrohitgad24-Sep-03 8:40 
GeneralRe: compilation Errors Pin
Vinayak16-Jun-04 10:54
memberVinayak16-Jun-04 10:54 
GeneralRe: compilation Errors Pin
Scott B.21-Mar-06 19:59
memberScott B.21-Mar-06 19:59 
GeneralDifferent Output Pin
Atif Goheer5-Aug-03 17:42
memberAtif Goheer5-Aug-03 17:42 
GeneralRe: Different Output Pin
qihongbo28-Sep-03 23:04
memberqihongbo28-Sep-03 23:04 
GeneralThanks Pin
Paul Hooper25-Apr-03 15:40
memberPaul Hooper25-Apr-03 15:40 
GeneralCrypto.h Pin
Anonymous4-Nov-02 4:15
sussAnonymous4-Nov-02 4:15 
GeneralRe: Crypto.h Pin
Stefan-Mihai MOGA27-Jun-05 1:49
memberStefan-Mihai MOGA27-Jun-05 1:49 
GeneralNeeds improvements Pin
Vagif Abilov30-Aug-02 3:46
memberVagif Abilov30-Aug-02 3:46 

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

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

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.150520.1 | Last Updated 30 Aug 2002
Article Copyright 2002 by Victor M. Valenzuela
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid