PBKDF2() does not correctly handle a salt that is string in Python 3. Corrected the issue by passing the salt through tobytes() to convert it to a byte array.