The invention discloses a data
encryption and decryption device and an
encryption and decryption method thereof. The data
encryption and decryption device comprises a device body, an encryption deviceand a decryption device. The encryption device comprises a data receiving module, a
data analysis module, a data judgment module, a
microprocessor, a key selection unit, an encryption module, a storage module and a data sending module. The decryption device comprises a
database, a determination module, a search module, a call unit, a decryption request module, a decryption
algorithm request unit,a decryption module and an output unit. The encryption device and the decryption device are connected through adoption of an RS232 interface or an RS485 interface. In order to ensure the security ofdata, a level of the data is analyzed according to the
data analysis module, an encryption method of the data is selected through adoption of the key selection unit, the data is enabled to obtain an encryption method only applicable to related data, the
data decryption device searches an encryption mode of the data through adoption of the search module, a corresponding decryption
algorithm is called through adoption of the call unit, and the decryption speed is accelerated.