共 4 篇文章 |
|
gzip zlib deflate 相关介绍。int CGzip:ogzip(const std::string &inStr , std::string &outStr){ char pAddHead[10];// gzip header static const char deflate_magic[2] = {''37'', ''\213''};//gzip''s raw deflate body if(CGzip:eflate(inStr,outStr)<0){ return -... 阅1836 转2 评0 公众公开 11-12-06 15:57 |
Crypto++库在VS 2005中的使用——RSA加解密。voidGenerateRSAKey(unsigned int keyLength, const char *privFilename, const char*pubFilename, const char *seed);cryptlib.lib(randpool.obj): error LNK2005: "public: __thiscall std::basic_string<char,structstd::char_traits<char>,class std::allocator<char>>:... 阅417 转4 评0 公众公开 11-11-16 18:29 |
40 //通过校验,看看strDigest是否对应原来的message 41 if( bIsSuccess ) 42 { 43 cout << "sussessive verify" << endl; 44 cout << "origin string is: " << strMessage << endl << endl; 45 } 46 else 47 { 48 cout << "fail!... 阅1471 转13 评0 公众公开 11-11-16 18:28 |
void HexTouChar(unsigned char *Dst,const char *Src, const int SrcLen);CMySHA::CMySHA(void){void CMySHA::uCharToHex(char *Dst, const unsigned char *Src, const int SrcLen){void CMySHA::HexTouChar(unsigned char *Dst, const char *Src, const int SrcLen){void CMySHA512::CalculateDigest(string &Digest, const string &... 阅975 转6 评0 公众公开 11-11-16 18:27 |