In a data-sending device, a data generation section provides input data
itself or a bit-inverted version of the input data as intermediate data
and generates an inversion signal that indicates whether or not the
intermediate data is the bit-inverted version of the input data. An
encrypting section generates scrambled data by inserting the inversion
signal in the intermediate data at a bit position. A data-receiving
device removes the inversion signal from the scrambled data, and restores
the input data based on the inversion signal.