Text this: Addressing IoT security challenges through advanced machine learning and encryption