The invention provides a deep binding method and device for an identity card reading
machine tool and an identity card security module, and the method comprises the steps: verifying the position of a
machine tool manufacturer through a
USB key (including Beidou positioning and a random
number generator), generating and verifying an abstract value through an SM series national secret
algorithm, finally generating and encrypting a starting code, writing the starting code into a
machine tool mainboard MCU, and carrying out the
verification of the starting code. After being powered on each time, the identity card reading machine and the identity card safety module decrypt the starting code to start the identity card information complete decryption function, deep binding of the identity card reading machine and the identity card safety module is achieved, second-hand circulation of the safety module is effectively prevented, the
coupling degree of the machine and the mainboard is enhanced, and
market management is standardized. Meanwhile, the Beidou positioning assists the competent department in tracking management, the starting code generated by the random number resists the
replay attack, the SM2
algorithm encryption ensures the safety of the starting code, and the overall scheme significantly improves the safety of the identity card safety module.