Tutorial on how to use different crypto libraries in Python for Network Security.
Instructor: Amirali Sanatinia
Email: [email protected]
- Python 2.6+
- IPython Notebook
- PyCrypto
- cryptography
To create RSA key pairs you can use the following commands:
$ openssl genrsa -out private_key.pem 2048
$ openssl pkcs8 -topk8 -inform PEM -outform DER -in private_key.pem -out private_key.der -nocrypt
$ openssl rsa -in private_key.pem -pubout -outform DER -out public_key.der