This document summarizes a research paper that proposes a solution called a "handshake mechanism" to detect and prevent blackhole attacks in mobile ad-hoc networks (MANETs) and vehicular ad-hoc networks (VANETs). The solution involves each node generating a periodic dynamic ID value. When a route request is sent, the requesting node verifies the dynamic ID of the responding node before adding it to the routing table. Only if the IDs match is the node considered valid and added to the route. This aims to identify malicious nodes that do not have the correct dynamic ID value. The paper evaluates the solution through simulations of MANETs using the random waypoint mobility model and VANETs using the city section mobility