Click here to Skip to main content
15,891,473 members
Articles / Desktop Programming / ATL

How to use Crypto API in your ASP projects.

Rate me:
Please Sign up or sign in to vote.
5.00/5 (2 votes)
28 Aug 20013 min read 270.9K   1.2K   53  
This article shows how to make one ATL COM component with crypt/decrypt functions and how to use it in ASP programs. It shows also how to register a component in MTS.
// MyCrypt.h : main header file for the MYCRYPT application
//

#if !defined(AFX_MYCRYPT_H__CCBC0FF4_ACF3_11D4_9660_00A0D212FC63__INCLUDED_)
#define AFX_MYCRYPT_H__CCBC0FF4_ACF3_11D4_9660_00A0D212FC63__INCLUDED_

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

#ifndef __AFXWIN_H__
	#error include 'stdafx.h' before including this file for PCH
#endif

#include "resource.h"		// main symbols

/////////////////////////////////////////////////////////////////////////////
// CMyCryptApp:
// See MyCrypt.cpp for the implementation of this class
//

class CMyCryptApp : public CWinApp
{
public:
	CMyCryptApp();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMyCryptApp)
	public:
	virtual BOOL InitInstance();
	//}}AFX_VIRTUAL

// Implementation

	//{{AFX_MSG(CMyCryptApp)
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};


/////////////////////////////////////////////////////////////////////////////

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

#endif // !defined(AFX_MYCRYPT_H__CCBC0FF4_ACF3_11D4_9660_00A0D212FC63__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
Web Developer
Romania Romania
I make programming for over 4 years and extensive experience in C++, ASP, Pascal, MFC, COM+, ATL, TCP/IP, HTTP protocols, XML, XSL, SOAP and SQL.
For the last 2 years i working extensively at the background of financial sites (databases, n tier architecture).

I’m available for contracts and/or outsourcing (<Adrian Bacaianu>adrian_bacaianu@yahoo.com).

Comments and Discussions