Giter Site home page Giter Site logo

ce100-hw6-duygu-ozturk's Introduction

Crypto++ Sample Application

CryptoppStaticLibraryUsageSample has the following samples

c void sha1Operation(void); void sha256Operation(void); void sha512Operation(void); int aesOperation(void); void desOperation(void); void hmacSha1Operation(void); void hmacSha256Operation(void); void crcOperation(void); void md5Operation(void);

Also includes following utilies

c std::string bin2hex(const std::string& input) void printBinHex(char* title, const void* data, size_t size) void printBinHexAscii(char* title, const void* data, size_t size) string secByteBlockToHex(SecByteBlock byteBlock) string byteBlockToHex(unsigned char* data, size_t length)

Compile Crypto++ Library

Open Crypto++ Solution and Compile cryptlib project to generate static library file with Debug or Releasewith Win32 settings batch ../cryptopp850/cryptest.sln

Your output will be located at

batch ..\cryptopp850\Win32\Output\Debug\cryptlib.lib

Compile and Run Sample Application

Open crypto test application

batch ../CryptoppTestApplication/CryptoppTestApplication.sln

All static library path configurations are placed in CryptoppStaticLibraryUsageSample.cpp file as follow, check static library path is correct for your solution. Path is relative.

c #ifdef _DEBUG #pragma comment(lib, "../../cryptopp850/Win32/Output/Debug/cryptlib.lib") #else #pragma comment(lib, "../../cryptopp850/Win32/Output/Release/cryptlib.lib") #endif #define CRYPTOPP_ENABLE_NAMESPACE_WEAK 1 #include "../../cryptopp850/cryptlib.h" #include "../../cryptopp850/sha.h" #include "../../cryptopp850/hex.h" #include "../../cryptopp850/files.h" #include "../../cryptopp850/rijndael.h" #include "../../cryptopp850/modes.h" #include "../../cryptopp850/osrng.h" #include "../../cryptopp850/md5.h" #include "../../cryptopp850/crc.h" #include "../../cryptopp850/des.h" #include #include using namespace std; using namespace CryptoPP;

ce100-hw6-duygu-ozturk's People

Contributors

dygozturk avatar

Watchers

Uğur CORUH avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.