How to Solve NameError: name 'RSA' is not defined -- Crypto

Solution: Import the 'RSA' module

To Solve the error, add the following line to the top of your code.

from Crypto.PublicKey import RSA

 

For more information:
Python Crypto RSA