| Compute Ripemd 160 Hash Algorithm with Ripemd160 Class |
|
|
|
In these lines we are going to show how to set up Microsoft Visual C++ 2008 Professional to use Ripemd160 class implemented in DiceLockSecurity namespace to compute Ripemd 160 Secure Hash Algorithm of streams with HashDigester FREE product. In this page we are going to show the steps to use Ripemd160 Class in a simple application, it does not show all Ripemd160 class capabilities. If you want a deeper knowledge of the class you can get DigesterCheck Hash Algorithms Source Code 2.0.0.2 This article is structured in three concepts: - Project Creation - Project Properties - Execution Project Creation Create the project In Microsoft Visual C++ 2008 Professional select File, New, Project..., select Project type Visual C++ CLR Console Application call it UsingHashDigester for example like in: Insert Source Code Edit stdafx.h file and insert the following C++ code:
Edit UsingHashDigester.cpp file and insert the following C++ code where a Ripemd160 object is instantiated and used to compute the hash of "abc" test data with Ripemd 160 hash algorithm:
HashDigester DLL Copy HashDigester.dll dynamic link library file where the Project will create the executable, in our case is under Release folder like in: Project Properties General These are the general properties of the application: C++ General Select Additional Include Directories, to allow the application to find hashDigester.h header file. On our case it is located at "C:\Program Files\DiceLock Security\HashDigester\include" directory: C++ Compiler Command Line The compiler command line will look like this: The compiler command line options are:
Linker General In the Linker General Section add the directory where HashDigester.lib is located in the Additional Library Directories option. In our case the directory is "C:\Program Files\DiceLock Security\HashDigester\lib". Linker Input Once the previous options have been included, go to Linker Input Section and insert in Additional Dependencies the proper library, HashDigester.lib. Linker Command Line The linker command line will look like this: The linker command line options are:
Execution Once all previous steps have been completed, select Debug option, Start Without Debugging, and the application will be compiled, linked and executed. The command line application executed will look like the following screenshot where you will be able to verify that Ripemd160 class performs as expected. |
|||||||||||||

