How to Solve NameError: name 'AES' is not defined -- Cryptodome

Solution: Import the 'AES' module

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

from Cryptodome.Cipher import AES

 

For more information:
Python Cryptodome AES