Due Nowadays, the demand for IoT-enabled devices is increasing exponentially and the communications between these devices are mostly in the form of color and gray-scale images. In the same sequence, the demand for IoT applications is also increasing, so it is a challenging task to protect the IoT applications from attackers. Therefore, an efficient encryption algorithm is required due to the limitation of IoT-enabled devices in terms of computational complexity and memory. In this work, a novel encryption scheme based on dual security is presented. Here in this work, dual security is used where at one level, the following keys (64 80-bit, and 96-bit) are used, which key size will be used for encryption, is unknown to the user during encryption and decryption. That means for each image, a unique random key size will be used for encryption. While at the second level, a new session key (Key size will be decided at level one) is generated for every image encryption, which increases the security at this level. So this two-level security will reduce the chances of a man-in-middle attack. This scheme uses the hybrid of crossover and logistic map which enhance the randomness in the presented scheme. The strength of the presented encryption scheme is estimated by checking the presented technique on various types of cryptographic attacks such as differential attack (NPCR), statistical attack (correlation analysis, entropy, and histogram analysis), noise attack, and prone to the user secret key. The experimental outcomes show that the presented hybrid scheme is secured enough against different cryptographic attacks.