This project represents the implementation of various encryption and hashing algorithms in the C++ programming language.
-
LCG (Linear Congruential Generator)
- Implementation of a linear congruential generator.
- Build file: lcg_main.cpp
-
- Implementation of the Speck encryption algorithm.
- Build file: speck_main.cpp
-
- Implementation of the Jenkins hash function.
- Build file: hash_main.cpp
To use LCG, enter a string from the keyboard for encryption or decryption.
./lcg_encode
./lcg_decode
To use the Speck Cipher, pass the input and output file names as parameters.
./speck_encode input.txt output.txt
./speck_decode input.txt output.txt
To use Jenkins Hash, enter a string from the keyboard for hashing.
./jenkins_hash
The project uses CMake for building.
mkdir build
cd build
cmake <path_to_project_root>
make
The project includes tests using Google Test. You can run them using the following commands:
make
./cipher_tests
Or you can run
make
ctest
in your build directory
The project uses the Google Test library for testing. All necessary dependencies will be downloaded automatically during the build process.