A data processing device includes an image data receiving section that receives image data, a data conversion section that converts the image data received by the image data receiving section into data having a format different from a format of the received image data, and a hash value generation section that generates a hash value of the data obtained by conversion of the data conversion section from the received image data.