The invention belongs to the field of data
encryption and decryption, and particularly discloses a debugging and testing method for
encryption and decryption equipment. According to the method, the
JSON file is flexibly configured according to the debugging requirement, the upper computer test
software analyzes the
JSON file according to the template rule to generate the corresponding message data, and the upper computer can generate the message data which is completely the same as the equipment terminal, so that development and test personnel of the
terminal equipment are not needed; the
JSON file is analyzed through the upper computer to generate the required
test data, the data is sent to the
encryption and decryption device for encryption, the encrypted data is received, the encrypted data is forwarded to the other encryption and decryption device for decryption, the decrypted data is received, and the test result is obtained by comparing the
original data generated by the upper computer with the decrypted data. As the encrypted data and the decrypted data only flow between the upper computer and the encryption and decryption equipment and do not pass through actual
terminal equipment, interference factors brought by the
terminal equipment are eliminated, and the simple and efficient test method for the encryption and decryption equipment is realized.