Patent ID: 7657032

Claim:
A data outputting method, comprising the steps of: converting input data into sector unit data that starts with a header including two bits subsequent to a start code wherein at least one bit of the two bits represents an encryption control; setting at least one of the two bits subsequent to the start code into the sector unit data so as to represent that the data has been encrypted, when the sector unit data is encrypted; encrypting the converted data; encoding the encrypted data; and outputting the encoded data; wherein data of one sector of the sector unit data is composed of 2048 bytes, wherein the encrypting step is performed by encrypting data after bit 64 , in which the two bits subsequent to the start code are located in a same position for a plurality of format systems, wherein the converting step comprises the steps of: judging whether the input data is to be converted into the sector unit data corresponding to an MPEG encoding rule; and converting the input data corresponding to the MPEG encoding rule, when the judged result represents that the input data is to be converted into the sector unit data corresponding to the MPEG encoding rule, and wherein when the judged result represents that the input data is not to be converted into the sector unit corresponding to the MPEG encoding rule, the converting step further comprises the step of: adding random number data to the sector unit data so that the random number data is followed by the start code and the two bits.