The application relates to the technical field of cameralink data long-distance transmission, in particular to a cameralink data
encryption and detection and repair device based on FPGA, which comprises an input module, a stable
clock module, a sampling module, an
encryption module, a comparison module, a repair module and an output module; the stable
clock module is used for obtaining a stable
clock; the sampling module samples
time sequence parameters T of image data based on the stable clock; the
encryption module encrypts the image data to generate an encrypted sequence D1, and calls the sampling module to sample the encrypted sequence D1 based on the stable clock to obtain
time sequence parameters T1; the comparison module compares T and T1 to determine whether a
time sequence error occurs; the repair module modifies the encrypted sequence D1 based on the difference between T and T1, obtains an encrypted sequence D3 conforming to T as image encrypted data, and calls the output module. The application can realize cameralink data encryption and time sequence detection and repair.