xxxx18一60岁hd中国/日韩女同互慰一区二区/西西人体扒开双腿无遮挡/日韩欧美黄色一级片 - 色护士精品影院www

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

資源簡介

des的C++代碼,可直接編譯執(zhí)行.

資源截圖

代碼片段和文件信息

//?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的編碼與解碼
//
//?創(chuàng)建日期:2004-06-08
//?修改日期:2005-06-23
//////////////////////////////////////////////////////////////////////
#include?“base64.h“
#include?


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

Cbase64::Cbase64()
{

}

Cbase64::~Cbase64()
{

}


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


//////////////////////////////////////////////////////////////////////////
//?函數(shù):????DWORD?Calcbase64toANSILen()
//?功能:????計(jì)算base64字符串轉(zhuǎn)成ANSI字符串需要多少內(nèi)存
//?參數(shù):????dwANSILen?base64字符串的長度
//???strbase64End2?base64字符串結(jié)尾的二個字符串
//?返回值:??DWORD?ANSI字符串的長度
//?日期:????[6/23/2005]
//////////////////////////////////////////////////////////////////////////
inline?DWORD?Cbase64::Calcbase64toANSILen(DWORD?dwbase64Len?const?CString?strbase64End2)
{
?//計(jì)算‘=‘出現(xiàn)的次數(shù),
?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;
}


//////////////////////////////////////////////////////////////////////////
//?函數(shù):????PSTR?AllocMembase64()
//?功能:????分配base64字符串所需要的空間,這個內(nèi)存需要用戶手動刪除
//?參數(shù):????dwANSILen?ANSI字符串的長度
//?返回值:??PSTR?base64內(nèi)存地址
//?日期:????[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;
}


//////////////////////////////////////////////////////////////////////////
//?函數(shù):????PSTR?AllocMemANSI()
//?功能:????分配base64字符串所需要的空間,這個內(nèi)存需要用戶手動刪除
//?參數(shù):????dwANSILen?ANSI字符串的長度
//?返回值:??PSTR?base64內(nèi)存地址
//?日期:????[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


評論

共有 條評論