The invention relates to a
JPEG thumbnail protection method and
system based on Galois field polynomial
secret sharing. The method comprises the following steps: firstly, an image owner performs a series of
processing on an image, including
color space conversion, sampling, blocking,
discrete cosine transform and quantization, so as to obtain a quantization
coefficient matrix; thirdly, performing
differential coding and
run length coding on the matrix, and setting modifications of a direct-current coefficient and an alternating-current coefficient; secondly, extracting a binary bit of the
direct current coefficient difference value, mapping the binary bit into a Galois field number, performing polynomial
secret sharing, generating an encrypted
direct current mapping value, and converting the encrypted
direct current mapping value into an encrypted direct current coefficient two-tuple; meanwhile, binary bits of non-zero values of the
alternating current coefficients are extracted and mapped into Galois field numbers, polynomial
secret sharing is carried out, encrypted
alternating current mapping values are generated, and the encrypted
alternating current mapping values are converted into encrypted alternating current coefficient triples. And finally, combining the encrypted direct-current coefficient two-tuple with the alternating-current coefficient three-tuple, generating a plurality of encrypted
JPEG images, and uploading the
JPEG images to the cloud. According to the method, selective
encryption is adopted, data privacy is protected, basic visual features of the image are reserved, the
thumbnail is effectively prevented from being maliciously stolen or abused, a user can conveniently and rapidly recognize
image content, and good balance between data safety and practicability is achieved.