The invention discloses a
privacy protection-oriented anonymized data watermarking method and device and a medium, and relates to the field of
privacy protection, and the method comprises the steps: encrypting to-be-embedded original
watermark information, and generating encrypted
watermark information; performing
error correction coding on the encrypted
watermark information to obtain a watermark coding sequence, and converting the watermark coding sequence into a
Gray code sequence; sorting the
data records in the original anonymized
data set based on preset attributes to obtain a plurality of
record groups; based on the segmentation numerical value of the
Gray code sequence, determining the number of records needing to be modified in each
record group; and randomly selecting the
data records corresponding to the number, and modifying the selected
data records to generate the anonymized data containing the watermark. By combining cryptographic
encryption,
error correction coding and a data modification mechanism keeping anonymization, reliable
traceability of illegal distributors is realized on the premise of ensuring that the
data anonymization level is not reduced, so that an effective balance mechanism is established between
data sharing and privacy security.