A collaborative multi-party encryption for mitigating man-in-the-middle attacks in smart grid and energy IoT systems | Synapse