RSA public-key cryptosystem implementation
- RSA (Rivest–Shamir–Adleman)
- SHA-1 (Secure Hash Algorithm 1)
- Miller-Rabin prime test
python encrypt.py <document>
The output will be a document signature and a public decryption key
python decrypt.py --key public.key <document> <signature>
If everything is ok, the output is Success! Document is genuine.
else the output is Fail! Document is not genuine.