qr.h : Contains function declarations for all source files except main().
input.c : Handles user input and validation, prompting for re-entry on invalid data.
encryption.c : Generates public and private keys, encrypts user data.
qrgen.c : Generates and saves the QR code, sends it to the user along with the private key.
main.c : Coordinates the execution of functions.
decode.hpp : Contains function declarations for all source files except main().
decode.cpp : Extracts data from QR code.
decryption.c : Decodes and decrypts data from QR code.
main.c : Coordinates the execution of functions.
OpenSSL
qrencode
libjpeg
zbar
opencv
sudo apt-get install libjpeg-dev libqrencode-dev libopencv-dev zbar-tools libssl-dev libzbar-dev
To compile the programs, use:
gcc main.c input.c encryption.c qr.c -o ../app/qrgen -lcrypto -lqrencode -ljpeg
g++ decode.cpp main.c decryption.c -o ../app/decode -I/usr/include/opencv4 -lcrypt -lopencv_core -lopencv_imgcodecs -lopencv_imgproc -lopencv_highgui -lssl -lcrypto -lzbar