This a basic utility to simulate voting system integrated with Fully Homomorphic Encryption(FHE). We are conducting a voting between the CAT🐱❤️ Lovers and the DOG🐕❤️ Lovers
This is how the votes are being stored in memory. Output is in byte format
NOTE: This has been tested on debian 11 (Bullseye)
- Clone this repository
# git clone https://github.com/Prajwalmithun/homomorphic_encryption.git
# cd homomorphic_encryption
- Create a virtual environment to execute the code without conflicting the base system's dependencies.
Install
virtualenv
on debian using this commandsudo apt install virtualenv python3-virtualenv
# virtualenv venv
# source venv/bin/activate
- Install the dependencies
Install
pip
if not installed using this commandsudo apt install python3-pip
# pip3 install -r requirements.txt
- Execute the homomorphic program
# python3 cat_lovers_VS_dog_lovers.py
- Another way to execute the program is
# sudo chmod +x run.sh
# ./run.sh