• 大小: 22KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-05-07
  • 语言: C/C++
  • 标签: DES加密  

资源简介

使用C++实现的DES加密算法,可编译生成DLL,供其它程序调用

资源截图

代码片段和文件信息

// DES.cpp : Defines the initialization routines for the DLL.
//

#include “stdafx.h“
#include 

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif


static AFX_EXTENSION_MODULE DESDLL = { NULL NULL };

extern “C“ int APIENTRY
DllMain(HINSTANCE hInstance DWORD dwReason LPVOID lpReserved)
{
// Remove this if you use lpReserved
UNREFERENCED_PARAMETER(lpReserved);

if (dwReason == DLL_PROCESS_ATTACH)
{
TRACE0(“DES.DLL Initializing!\n“);

// Extension DLL one-time initialization
if (!AfxInitExtensionModule(DESDLL hInstance))
return 0;

// Insert this DLL into the resource chain
// NOTE: If this Extension DLL is being implicitly linked to by
//  an MFC Regular DLL (such as an ActiveX Control)
//  instead of an MFC application then you will want to
//  remove this line from DllMain and put it in a separate
//  function exported from this Extension DLL.  The Regular DLL
//  that uses this Extension DLL should then explicitly call that
//  function to initialize this Extension DLL.  Otherwise
//  the CDynlinkLibrary object will not be attached to the
//  Regular DLL‘s resource chain and serious problems will
//  result.

new CDynlinkLibrary(DESDLL);
}
else if (dwReason == DLL_PROCESS_DETACH)
{
TRACE0(“DES.DLL Terminating!\n“);
// Terminate the library before destructors are called
AfxTermExtensionModule(DESDLL);
}
return 1;   // ok
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        156  2008-10-15 13:33  DES加密算法C++类\DES.clw

     文件       1512  2008-10-15 13:33  DES加密算法C++类\DES.cpp

     文件        175  2008-10-15 13:33  DES加密算法C++类\DES.def

     文件      24576  2008-12-31 15:20  DES加密算法C++类\DES.dll

     文件       4177  2008-10-15 13:36  DES加密算法C++类\DES.dsp

     文件        531  2008-10-15 13:33  DES加密算法C++类\DES.dsw

     文件       1313  2007-12-04 15:15  DES加密算法C++类\Des.h

     文件       6200  2008-12-31 15:20  DES加密算法C++类\DES.lib

     文件      50176  2008-12-31 15:23  DES加密算法C++类\DES.ncb

     文件      53760  2008-12-31 15:23  DES加密算法C++类\DES.opt

     文件       1664  2008-12-31 15:20  DES加密算法C++类\DES.plg

     文件       3047  2008-10-15 13:33  DES加密算法C++类\DES.rc

     文件       3713  2008-10-15 13:41  DES加密算法C++类\DesEncrypt.cpp

     文件       5623  2008-12-31 15:20  DES加密算法C++类\DesEncrypt.h

     文件       2453  2008-10-15 13:33  DES加密算法C++类\ReadMe.txt

     文件        395  2008-10-15 13:33  DES加密算法C++类\res\DES.rc2

     文件        378  2008-10-15 13:33  DES加密算法C++类\Resource.h

     文件        205  2008-10-15 13:33  DES加密算法C++类\StdAfx.cpp

     文件       1447  2008-10-15 13:33  DES加密算法C++类\StdAfx.h

     目录          0  2017-05-19 14:51  DES加密算法C++类\res

     目录          0  2017-05-19 14:51  DES加密算法C++类

----------- ---------  ---------- -----  ----

               161501                    21


评论

共有 条评论