For private key generation we are using RSA.generate() method from python
pycrytodome package.
Key length required: 2048 bits
And a random number using Crypto.Random From Crypto Module.
Next using the above generated private key we are generating a public key
using
{privatekey}.publickey() method of package.
And in the final step applying {key}.exportKey().decode() on each keys.