Click here to Skip to main content
15,891,951 members
Articles / Programming Languages / C++

Hashing using the Win32 Crypto API

Rate me:
Please Sign up or sign in to vote.
4.80/5 (13 votes)
22 Jul 20056 min read 111.7K   2.7K   42  
How to make hashing using the Win32 Crypto API.
// stdafx.h : include file for standard system include files,
//  or project specific include files that are used frequently, but
//      are changed infrequently
//

#if !defined(AFX_STDAFX_H__F396FB17_ACD2_4B38_B421_E3E8E25C2B20__INCLUDED_)
#define AFX_STDAFX_H__F396FB17_ACD2_4B38_B421_E3E8E25C2B20__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#define VC_EXTRALEAN		// Exclude rarely-used stuff from Windows headers

#include <afxwin.h>         // MFC core and standard components
#include <afxext.h>         // MFC extensions
#include <afxdisp.h>        // MFC Automation classes
#include <afxdtctl.h>		// MFC support for Internet Explorer 4 Common Controls
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h>			// MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT

#define _WIN32_WINNT 0x0400

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_STDAFX_H__F396FB17_ACD2_4B38_B421_E3E8E25C2B20__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

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


Written By
Technical Lead
Denmark Denmark
I'm a technical lead and software architect, who holds a master's degree from Aarhus University, Denmark. I have commercial experience with IT and software engineering since mid-nineties and my professionalism has been confirmed by IEEE with my elevation to Senior Member.


Active help channel - Codementor
https://www.codementor.io/jessn/profile


Deprecated help channel - Support & help
https://groups.google.com/forum/#!forum/nielsen-tools-support

Comments and Discussions