How to Solve NameError: name 'Scrypt' is not defined -- cryptography

Solution: Import the 'Scrypt' module

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

from cryptography.hazmat.primitives.kdf.scrypt import Scrypt

 

For more information:
Python cryptography Scrypt