- Visual Studio
- Crypto++
- Crypto++ PEM
- Copy all the files in
Crypto++ PEM
toCrypto++
(skip those files that already existed in Crypto++)
- Copy all the files in
- Open cryptlib.vcxproj with visual studio
- Add
pem.h
andpem_common.h
to theHeader Files
of thecryptlib
project
- Add
pem_common.cpp
,pem_read.cpp
andpem_write.cpp
to theSource Files
of thecryptlib
project
- Choose the preferred configuration,
Release/Debug
, and platform,Win32/x64
, for the project, then right click oncryptlib
project and selectbuild
- Static link library
- Choose the preferred configuration,
Release/Debug
, and platform,Win32/x64
, for the project, then right click oncryptdll
project and selectbuild
- Dynamic link library
├─Win32
│ ├─cryptdll
│ │ ├─Debug
│ │ │ └─cryptdll.tlog
│ │ └─Release
│ │ └─cryptdll.tlog
│ ├─cryptest
│ │ └─Debug
│ │ └─cryptest.tlog
│ ├─cryptlib
│ │ ├─Debug
│ │ │ └─cryptlib.tlog
│ │ └─Release
│ │ └─cryptlib.tlog
│ ├─DLL_Output
│ │ ├─Debug
│ │ └─Release
│ └─Output
│ ├─Debug
│ └─Release
└─x64
├─cryptdll
│ ├─Debug
│ │ └─cryptdll.tlog
│ └─Release
│ └─cryptdll.tlog
├─cryptlib
│ ├─Debug
│ │ └─cryptlib.tlog
│ └─Release
│ └─cryptlib.tlog
├─DLL_Output
│ ├─Debug
│ └─Release
└─Output
├─Debug
└─Release
[專案] -> [屬性] -> [C/C++] -> [一般] -> [其他Include目錄] -> [Add path to the openssl folder which contains all Crypto++ header files]
[專案] -> [屬性] -> [連結器] -> [其他程式庫目錄] -> [Add path to folder that contains cryptlib.lib according to Debug/Release and Win32/x64]
[專案] -> [屬性] -> [連結器] -> [輸入] -> [其他相依性] -> [Add cryptlib.lib]
// Common header files
#include <cryptlib.h>
#include <osrng.h>
#include <modes.h>
Schemes and algorithms are moved into Weak when their security level is reduced to an unacceptable level by contemporary standards
- ARC4
- ARC4_Base
- MARC4
- MARC4_Base
- MD2
- MD4
- MD5
- PanamaHash
- PanamaMAC
- RSASSA_PKCS1v15_MD2_Signer
- RSASSA_PKCS1v15_MD2_Verifier
- RSASSA_PKCS1v15_MD5_Signer
- RSASSA_PKCS1v15_MD5_Verifier
You must add #define CRYPTOPP_ENABLE_NAMESPACE_WEAK 1
before including a header for a weak or wounded algorithm
// Example to use arc4
#define CRYPTOPP_ENABLE_NAMESPACE_WEAK 1
#include <arc4.h>
I've included some common cryptography algorithm examples using cryptopp libraries' high level API. Moreover, I've included the usage of RSA
as an example of asymmetric cipher.