Transport innovations and technological improvements have increased attention to specific techniques of communications, such as millimeter-wave radars used in autonomous vehicles (AVs). In order to improve the performance of antijamming capability of a millimeter-wave radar, the suppression of interference using random functions is widely used in current applications. However, the main limitation of this method is that it lack a mechanism to withstand message replaying attack, forgery attack, Masquerade attack, and guessing and stolen verifier attack. In this paper, we propose an antijamming method based on a hash function to provide a secure antijamming solution with a stronger ability to suppress the interference echoes and flexible controls. The associated techniques include digital radio frequency memory (DRFM), millimeter-wave radar, and hash value processing. Three types of experiments are performed to achieve 32.87%∼38.34% improvement in terms of the peak difference between the true and false targets, and the results are reported and analyzed in this paper. In each of the experiments, different variables are tested by the controlled variable method, and the experimental results are compared. On this occasion, it is concluded that the modulation signal based on the hash function has a stronger ability to suppress the interference echoes than that based on the pseudorandom function.INDEX TERMS Millimeter-wave radar, electronic counter-countermeasures, digital radio frequency memory, hash function.