91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 130.11 KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2024-08-01
  • 語言: 其他
  • 標簽: des??

資源簡介

des的C++代碼,可直接編譯執行.

資源截圖

代碼片段和文件信息

//?base64.cpp:?implementation?of?the?Cbase64?class.
//
//////////////////////////////////////////////////////////////////////

#include?“stdafx.h“
#include?“base64.h“

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


//?base64.cpp:?implementation?of?the?base64?class.
//
//?作者:王軍建
//
//?用途:base64的編碼與解碼
//
//?創建日期:2004-06-08
//?修改日期:2005-06-23
//////////////////////////////////////////////////////////////////////
#include?“base64.h“
#include?


//////////////////////////////////////////////////////////////////////
//?Construction/Destruction
//////////////////////////////////////////////////////////////////////

Cbase64::Cbase64()
{

}

Cbase64::~Cbase64()
{

}


//////////////////////////////////////////////////////////////////////////
//?函數:????DWORD?CalcANSItobase64Len()
//?功能:????計算ANSI字符串轉成base64字符串需要多少內存
//?參數:????dwANSILen?ANSI字符串的長度
//?返回值:??DWORD?base64字符串的長度
//?日期:????[6/23/2005]
//////////////////////////////////////////////////////////////////////////
inline?DWORD?Cbase64::CalcANSItobase64Len(DWORD?dwANSILen)
{
?return?(dwANSILen%3)???(dwANSILen+3)/3*4?:?dwANSILen/3*4;
}


//////////////////////////////////////////////////////////////////////////
//?函數:????DWORD?Calcbase64toANSILen()
//?功能:????計算base64字符串轉成ANSI字符串需要多少內存
//?參數:????dwANSILen?base64字符串的長度
//???strbase64End2?base64字符串結尾的二個字符串
//?返回值:??DWORD?ANSI字符串的長度
//?日期:????[6/23/2005]
//////////////////////////////////////////////////////////////////////////
inline?DWORD?Cbase64::Calcbase64toANSILen(DWORD?dwbase64Len?const?CString?strbase64End2)
{
?//計算‘=‘出現的次數,
?int?count?=?0;
?for?(int?i=0;?ise64End2.GetLength();?i++)
??if?(strbase64End2[i]?==?‘=‘)
???count?++;

?DWORD?dwANSILen?=?(dwbase64Len%4)???(dwbase64Len+4)/4*3?:?dwbase64Len/4*3;
?dwANSILen?-=?count;
?return?dwANSILen;
}


//////////////////////////////////////////////////////////////////////////
//?函數:????PSTR?AllocMembase64()
//?功能:????分配base64字符串所需要的空間,這個內存需要用戶手動刪除
//?參數:????dwANSILen?ANSI字符串的長度
//?返回值:??PSTR?base64內存地址
//?日期:????[6/23/2005]
//////////////////////////////////////////////////////////////////////////
inline?PSTR?Cbase64::AllocMembase64(DWORD?dwANSILen)
{
?int?len?=?Cbase64::CalcANSItobase64Len(dwANSILen);
?char*?pbase64?=?new?char[len+1];
?ZeroMemory(pbase64?len+1);
?
?return?pbase64;
}


//////////////////////////////////////////////////////////////////////////
//?函數:????PSTR?AllocMemANSI()
//?功能:????分配base64字符串所需要的空間,這個內存需要用戶手動刪除
//?參數:????dwANSILen?ANSI字符串的長度
//?返回值:??PSTR?base64內存地址
//?日期:????[6/23/2005]
//////////////////////////////////////////////////////////////////////////
inline?PSTR?Cbase64::AllocMemANSI(DWORD?dwbase64Len)
{
?int?len?=?Cbase64::Calcbase64toANSILen(dwbase64Len);
?char*?pANSI?=?new?char[len+1];
?ZeroMemory(pANSI?len+1);
?
?return?pANSI;
}


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

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????目錄??????????0??2008-04-05?11:01??TestDesEncrypt

?????文件??????16906??2008-04-05?10:15??TestDesEncrypt\base64.cpp

?????文件???????1704??2006-09-02?15:58??TestDesEncrypt\base64.h

?????文件???????3723??2008-04-05?08:09??TestDesEncrypt\ReadMe.txt

?????目錄??????????0??2008-04-05?08:09??TestDesEncrypt\res

?????文件???????1078??2008-04-05?08:09??TestDesEncrypt\res\TestDesEncrypt.ico

?????文件????????406??2008-04-05?08:09??TestDesEncrypt\res\TestDesEncrypt.rc2

?????文件????????876??2008-04-05?08:16??TestDesEncrypt\resource.h

?????文件????????216??2008-04-05?08:09??TestDesEncrypt\StdAfx.cpp

?????文件???????1054??2008-04-05?08:09??TestDesEncrypt\StdAfx.h

?????文件??????36048??2008-04-05?10:21??TestDesEncrypt\TestDesEncrypt.aps

?????文件???????1486??2008-04-05?10:54??TestDesEncrypt\TestDesEncrypt.clw

?????文件???????2175??2008-04-05?08:09??TestDesEncrypt\TestDesEncrypt.cpp

?????文件???????4522??2008-04-05?10:54??TestDesEncrypt\TestDesEncrypt.dsp

?????文件????????551??2008-04-05?08:09??TestDesEncrypt\TestDesEncrypt.dsw

?????文件?????217088??2008-04-05?10:53??TestDesEncrypt\TestDesEncrypt.exe

?????文件???????1412??2008-04-05?08:09??TestDesEncrypt\TestDesEncrypt.h

?????文件??????66560??2008-04-05?10:54??TestDesEncrypt\TestDesEncrypt.ncb

?????文件??????53760??2008-04-05?10:54??TestDesEncrypt\TestDesEncrypt.opt

?????文件???????2106??2008-04-05?10:53??TestDesEncrypt\TestDesEncrypt.plg

?????文件???????6081??2008-04-05?10:21??TestDesEncrypt\TestDesEncrypt.rc

?????文件???????5372??2008-04-05?10:54??TestDesEncrypt\TestDesEncryptDlg.cpp

?????文件???????1509??2008-04-05?10:17??TestDesEncrypt\TestDesEncryptDlg.h

?????文件???????9099??2008-04-05?08:18??TestDesEncrypt\WjcDes.cpp

?????文件????????997??2003-04-18?10:47??TestDesEncrypt\WjcDes.h

-----------?---------??----------?-----??----

???????????????434729????????????????????25


評論

共有 條評論