A app that allows you to sign a document using SHA256 and RSA to varify the signature
Note: The easiest way to build is through github codespaces
Make sure you have the source code in your project directory(github codespaces handles this for you).
It can be cloned using
git clone --recursive https://github.com/wba6/secure-signer.git
Move into the project directory
cd ./secure-signer
If you used github code spaces run
git submodule update --init
Ensure that you have GMP installed on your system. On many Linux distributions, you can install it via your package manager:
- Ubuntu/Debian:
sudo apt-get update sudo apt install libgmp-dev
On Windows, you might need to download and install GMP from a trusted source or use vcpkg, and ensure that the headers and libraries are accessible.
It’s a good practice to create a separate directory for out-of-source builds. From your project root directory, run:
mkdir build
cd build
Run CMake to configure the project. You can do this with:
cmake ..
This command tells CMake to generate the build files in the current directory (build
) using the CMakeLists.txt
in the parent directory.
Once configuration is complete, compile the project by running:
cmake --build .
Alternatively, if you prefer using make
:
make
This will compile the project and produce an executable named secure_signer
.
After the build completes, you can run the executable. For example, from the build
directory:
./secure_signer <keyParameter> [operation] [filename]
Note: All files are relative to the executable file
- GMP Not Found: If you see errors about GMP not being found, double-check that GMP is installed and that its header and library paths are accessible. You may need to specify additional paths to CMake via
-DGMP_INCLUDE_DIR
and-DGMP_LIBRARY
options. - Compiler Issues: Ensure that you have a C++ compiler that supports C++17 and that it is properly set up in your environment.