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

Solution: Import the 'DES' module

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

from Crypto.Cipher import DES

 

For more information:
Python Crypto DES