1.安裝
Crypto++
的官網:
http://www.cryptopp.com/
下載,我下的版本是:
Crypto++ Library 5.6.1 - a Free C++ Class Library of Cryptographic Schemes
Crypto++® Library 5.6.1
解壓后,用VS2008有4個工程:
cryptest
cryptlib
cryptopp
dlltest
編譯 cryptlib 工程
,乖乖,
編譯出來的cryptlib.lib
有50多M,
不管了.繼續(xù).
將cryptlib.lib庫加入到工程中.
編寫hello world
//現(xiàn)在寫一個hello world程序看看能不能編譯通過。
#include <iostream>
using namespace std;
#include <cryptopp/aes.h>
using namespace CryptoPP;
int main()
{
cout << "hello crypto++" << endl;
cout << "Aes block size is " << AES::BLOCKSIZE << endl;
return 0;
}
附上一個用戶指南:
http://www.shnenglu.com/Files/aaxron/CryptoPPGuide.7z