Digital Signature Implementation with RSA
- Clone the repository
pip install -r requirements.txt
- To sign a file, run
python main.py
- CLI will prompt you to enter the path of the file to be signed
- File will be digested (hashed with md5).
- The digest will be encrypted with the private key and create a digital signature.
- The digest and the digital signature will be saved will be printed out in the terminal
- To verify a file, run
python ca.py
- CLI will prompt you to enter the digital signature and the digest of the file
- CLI will also prompt you to enter the UUID for the private key (or the file name).
- CA will find the appropriate public key associated with the UUID and verify the digital signature.
- Terminal will print out the result of the verification.