Skip to content

Python program to encript, decript, sign and verify signatures using RSA OAEP as per PKCS#1 using older private key format.

License

Notifications You must be signed in to change notification settings

gtambara/rsa-oaep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

To verify how the system works, simply type python main.py -h and the program will show you the options. For the majority of them, there are default values set to files in 'key' folder.

All you absolyutly have to decide is the operation. If you want a full test routine, try:

python main.py -op 1


In any case, here are the options transcriped:

options:

-h, --help show this help message and exit

--keysize KEYSIZE, -key KEYSIZE initial size of rsa modulus n

--prv_key_path, -prv Path for private key to be used

--pub_key_path, -pub Path for public key to be used

--encript_path, -enc Path to message to be encripted

--store_path, -str Path to signed message to be stored

--decript_path, -dec Path to message to be decripted

--output_path, -out Path to save the decripted message

--key_setup, -set 1 for key generating and 0 for key importing

--operation {1,2,3,4,5}, -op {1,2,3,4,5}

1 for full test
2 for encription
3 for decription
4 for signing
5 for verifying signature

About

Python program to encript, decript, sign and verify signatures using RSA OAEP as per PKCS#1 using older private key format.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages