CN101740068A - Data encryption method of compact disc - Google Patents

Data encryption method of compact disc Download PDF

Info

Publication number
CN101740068A
CN101740068A CN 200910194378 CN200910194378A CN101740068A CN 101740068 A CN101740068 A CN 101740068A CN 200910194378 CN200910194378 CN 200910194378 CN 200910194378 A CN200910194378 A CN 200910194378A CN 101740068 A CN101740068 A CN 101740068A
Authority
CN
China
Prior art keywords
data
encryption
compact disc
encrypted
define
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN 200910194378
Other languages
Chinese (zh)
Other versions
CN101740068B (en
Inventor
王年华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
DESAY ELECTRONICS (HUIZHOU) CO., LTD.
Original Assignee
Desai Video-Audio Science & Technology Co Ltd Huizhou City
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Desai Video-Audio Science & Technology Co Ltd Huizhou City filed Critical Desai Video-Audio Science & Technology Co Ltd Huizhou City
Priority to CN 200910194378 priority Critical patent/CN101740068B/en
Publication of CN101740068A publication Critical patent/CN101740068A/en
Application granted granted Critical
Publication of CN101740068B publication Critical patent/CN101740068B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

The invention relates to a data encryption method of a compact disc. The compact disc comprises a compact disc body; a data tunnel is spirally arrayed on the disc body; the data tunnel is sequentially divided into a plurality of logic sections for storing data; the logic sections are sequentially numbered in natural numbers starting from zero from the inside to the outside of the compact disc, and each logic section comprises a main section for storing root catalogue files. The encryption method comprises the steps of: a, encrypting the root catalogue files according to a set encryption rule, and setting an encryption identifier in the logic section appointed by the compact disc; and b, storing the root catalogue files encrypted by the main section to a blank logic section of which the number is not 16 during data writing. Data in the compact disc encrypted by the method cannot be read and copied by using other compact disc reading devices without decryption mechanisms, and even if copied integrally, the data in the whole compact disc cannot played in CD-ROMs or the compact disc reading devices without the decryption mechanisms; and thus the data encryption method has reliable confidential performance.

Description

A kind of data encryption method of compact disc
Technical field
The present invention relates to a kind of data ciphering method, specifically a kind of encryption method of data of optical disk.
Background technology
Sometimes, we do not think that the data of optical disk of oneself making is at will duplicated by other people, perhaps are used in other unauthorized occasion and use.Such as own elaborate Karaoke CD, only want on the DVD disc player of oneself authorizing, to play.At this moment, the encrypted work at CD just very is necessary.
At first, simply introduce physical method and logical method that data of optical disk is deposited.On the physical store method, whole CD has only a spiral path, and this track rotates to outer ring (non-concentric circles organizational form) from the inner ring of CD successively.Data are stored on this track in 0 or 1 mode.
On the logical storage mode, the storage standards of data is ISO9660.Storage data in orbit are by continuous each logic sector that is divided into, and the next logic sector of normal condition comprises 2048 bytes, and the size of data in the ISO9660 permission sector is not 2048 certainly, under most of situation, is 2048 byte numbers.Logic sector is numbered as 0,1,2 successively ... whole storage space is divided into two parts, and is divided into system realm from 16 logic sectors that are numbered 0-15, and system realm generally keeps to system's usefulness, as making boot cd-rom or the like.Default situations, its data general complete be 0. to begin to finish to CD from being numbered 16 sector, be divided into user data area.
From numbering the sector of the several successive that 16 sector begins, begin to deposit the different Volume Descriptor of all kinds (Volume Descriptor) successively, finish Volume Descriptor with one or several at last and represent that Volume Descriptor finishes.Finish the data that Volume Descriptor has following 2048 bytes.Preceding 7 bytes are 10 systems: 255,67,68,48,48,49 and 1.2041 remaining bytes are 0 entirely, about the meaning of Volume Descriptor type and the representative of each territory, and can be referring to the ISO9660 standard.
The sector of numbering 16 is first Volume Descriptor, and type is Primary Volume Descriptor (Primary VolumeDescriptor).This is the Volume Descriptor once that we are concerned about the most.2048 bytes of Primary Volume Descriptor comprise following information:
Byte location The title of Primary Volume Descriptor recording domain
??1 The type of Volume Descriptor
??2~6 Standard volume identifier (CD001)
??7 Volume Descriptor version number
??8 Do not use (00)
??9~40 System identifier
Byte location The title of Primary Volume Descriptor recording domain
??41~72 Volume identifier
??73~80 Do not use (00)
??81~88 The volume space size
??89~120 Do not use (00)
??121~124 Volume series size
??125~128 Volume serial number
??129~132 Logical block size
??133~140 The routing table size
??141~144L Tabular value position, type path, the L type: least significant byte formerly
??145~148L Type routing table selected value position
??149~152M Tabular value position, type path, most significant byte formerly
??153~156M Type routing table selected value position
??157~190 The catalogue record of root directory
??191~318 The volume set identifier
??319~446 Publisher's sign symbol
??447~574 Data preparator's identifier
??575~702 Application software identifier (as CD-I)
??703~739 The rights file identifier
??740~776 The digest identifier
??777~813 The bibliography file identifier
??814~830 Volume creation date and time
??831~847 Volume is revised date and time
Byte location The title of Primary Volume Descriptor recording domain
??848~864 Be rolled onto the phase date and time
??865~881 Volume date of expiration and time
??882 File structure version number
??883 (reservation)
??884~1395 Application program is used
??1396~2048 (reservation)
And in the above in these recording domains, our real concern be the catalogue record of the root directory represented from the runic of skew 157-190.This segment data has write down the catalogue record of the root directory of CD.
CD adopts the implicit expression hierarchical directory structure, catalogue is used as file treats, and whole catalogue is included in 1 or a few file.The file that comprises catalogue is called catalogue file.Catalogue file and common user file are similar, but the directory file structure that CD adopts has been made concrete regulation.Catalogue file is made up of the catalogue record of a series of variable-lengths.The form of each catalogue record is as shown in the table.Can see that a catalogue record includes many recording domains.Record file identifier in these territories,, and open and use needed other information of this file with the file size of byte calculating, first logical block number (LBN) (LBN) in the file territory.Be the form of catalogue record below:
Byte location The title of recording domain
??1 Catalogue record length (LEN_DR)
??2 Extended attribute record (XAR) length
??3~10 The file domain addresses
??11~18 Data length
??19~25 Date and time
??26 File mark
??27 The file unit size
??28 The transpostion interval size
Byte location The title of recording domain
29~32 Volume serial number
33 File identifier length (LEN_FI)
34-(33+LEN_FI) File identifier
34+LEN_FI Region filling
(34+LEN_FI+1)-LEN_DR System uses (reservation)
Be the catalogue record (each numeric field data is with hexadecimal representation) of the root directory that from CD of reality, extracts below:
=====================
22 catalogue record length
00 extended attribute record (XAR) length
1C 00 00 00 00 00 00 1C file domain addresses
00 08 00 00 00 00 08 00 catalogue file length
6D 0A 0A 0A 10 14 F0 date and times
02 file mark
00 file unit size
00 transpostion interval size
01 00 00 01 volume serial numbers
01 file identifier length
00 region filling
From top introduction, we can sum up a CD and how to be read:
1. at first read and be numbered 16 logic sector, therefrom read Primary Volume Descriptor information.
2. from Primary Volume Descriptor, obtain the catalogue record of root directory.
3. by the catalogue record of root directory, obtain the file domain addresses of first logic sector at root directory file place.The sector at this place, address, we want the sector of encryption just.
4. by the root directory file, can recurrence read whole optical disc data.
By top analysis as can be known, if the sector at root directory file place is encrypted, will cause putting in order Zhang Guangpan can not be by correct reading.And our encryption method just is being based on and is encrypting this sector data.
Summary of the invention
The technical problem to be solved in the present invention provides a kind of encryption method of data of optical disk, can effectively prevent other people reading, duplicating data of optical disk.
For solving the problems of the technologies described above, the present invention by the following technical solutions:
A kind of data encryption method of compact disc, this CD comprises the CD lamellar body, the data tunnel of eccentric pattern on lamellar body, the logic sector of a plurality of storage data is divided in the data tunnel successively, logic sector outwards is numbered with 0 natural number that begins in CD successively, comprise in the logic sector that one stores the host sectors of root directory file, described encrypting step is:
A. according to the encryption rule of setting the root directory file is carried out encryption, and specify logic sector to make encryption identification at CD;
B. write fashionablely in data, the root directory file storage after host sectors encrypted is to the blank logic sector that is numbered non-16.
Wherein, described encryption identification generation method is: the cdrom encryption secret key data process MD5 algorithm with 32 bytes, generate 16 byte summary infos, and summary info is identical with the identification data whether CD is encrypted.
Described cdrom encryption secret key length storage address adopts C language definition to be:
#define?ENCRYPTION_REALLEN_ADDR??0xB00000;
The storage physical address of cryptographic keys and length thereof adopt C language definition to be:
#define?ENCRYPTION_KEY_ADDR?0xC00000;
The length of its memory address of the identification data whether CD is encrypted and identification data adopts C language definition to be:
#define?ENCRYPTION_ID_ADDR?0xD00000(13M)
#define?ENCRYPTION_ID_LEN?16。
Described encryption rule uses 4 kinds of algorithms, and type is followed successively by 0,1,2,3, and wherein, each encryption type algorithm is specially:
0---by the byte negate, with 2048 bytes of be-encrypted data, each byte negate;
1---by the byte XOR, use 8 bit value as the XOR value, 2048 bytes of be-encrypted data, each byte is XOR with it;
2---the des cryptographic algorithm, use 64 bit keys, the 2048 bytes employing ecb mode of be-encrypted data is encrypted;
3---the rc4 cryptographic algorithm, use 64 bit keys, 2048 bytes of be-encrypted data are encrypted.
Described encryption type address adopts C language definition to be:
#define?ENCRYPTION_TYPE_ADDR?0xE00000(14M)。
After the root directory fileinfo was encrypted, the actual storage address adopted C language definition to be:
#define?ENCRYPTION_DATA_ADDR????0xA00000。
In order further to improve its Cipher Strength, in the logic sector storage random digit that is numbered 16.
By the CD after this method encryption, in the disc accessing of other no decryption mechanisms, can't read, the data in the copy, even with whole CD complete duplicate out, can't or not have to play back in the disc accessing of decryption mechanisms yet, have reliable security performance at Computer optical disc drive.
Embodiment
For the ease of those skilled in the art's understanding, structural principle of the present invention is described in further detail below in conjunction with specific embodiment and accompanying drawing:
The CD encryption method that the embodiment of the invention discloses is write at data of optical disk and fashionable data to be carried out encryption, can guarantee can't read in the disc accessing of no decryption mechanisms this encryptions optical disc data afterwards, prevents the data of optical disk leakage.
The related CD CD of this method comprises the CD lamellar body, the data tunnel of eccentric pattern on lamellar body, the logic sector of a plurality of storage data is divided in the data tunnel successively, logic sector outwards is numbered with 0 natural number that begins in CD successively, comprise in the logic sector that one stores the host sectors of root directory file, described encrypting step is: a. carries out encryption according to the encryption rule of setting with the root directory file, and specifies logic sector to make encryption identification at CD; B. write fashionablely in data, the root directory file storage after host sectors encrypted is to the blank logic sector that is numbered non-16.
Wherein, described encryption identification generation method is: with the cdrom encryption secret key data process MD5 algorithm (Message-Digest Algorithm 5 md5-challenges) of 32 bytes, generate 16 byte summary infos, summary info is identical with the identification data whether CD is encrypted.When reading CD, take out the cdrom encryption secret key of 32 bytes, produce summary info by the MD5 algorithm, compare with identification data again, if identical, then CD is a CD-enciphering, adopts corresponding decrypted program to read data of optical disk, otherwise be the unencryption CD, then read the mode reading of data according to conventional CD.
Simultaneously, described cdrom encryption secret key length storage address adopts C language definition to be:
#define?ENCRYPTION_REALLEN_ADDR??0xB00000;
The storage physical address of cryptographic keys and length thereof adopt C language definition to be:
#define?ENCRYPTION_KEY_ADDR??0xC00000;
The length of its memory address of the identification data whether CD is encrypted and identification data adopts C language definition to be:
#define?ENCRYPTION_ID_ADDR?0xD00000(13M)
#define?ENCRYPTION_ID_LEN?16。
And encryption rule can use 4 kinds of algorithms, and type is followed successively by 0,1,2,3, and wherein, each encryption type algorithm is specially:
0---by the byte negate, with 2048 bytes of be-encrypted data, each byte negate;
1---by the byte XOR, use 8 bit value as the XOR value, 2048 bytes of be-encrypted data, each byte is XOR with it;
2---des (Data Encryption Standard) cryptographic algorithm, use 64 bit keys, the 2048 bytes employing ecb mode of be-encrypted data is encrypted;
3---the rc4 cryptographic algorithm, use 64 bit keys, 2048 bytes of be-encrypted data are encrypted.The encryption type address adopts C language definition to be:
#define?ENCRYPTION_TYPE_ADDR?0xE00000(14M)。
After the root directory fileinfo was encrypted, the actual storage address adopted C language definition to be:
#define?ENCRYPTION_DATA_ADDR????0xA00000。
In order to improve Cipher Strength, in the logic sector storage random digit that is numbered 16.
When reading data of optical disk, promptly the decrypted program idiographic flow is:
A. reading encrypted sign, to determine whether institute's CD of being read is CD-enciphering, if not CD-enciphering, then action is read in end, if CD-enciphering then enters next step;
B. the reading encrypted type according to corresponding algorithm deciphering, generates summary info;
C. data after the reading encrypted;
E. data decryption;
F. reduce the catalogue file of root directory, finish to read action.
More than be the preferred version of embodiment for the present invention's realization; and indefiniteness is exhaustive, and the present invention can also have other variations under same idea, need to prove; under the prerequisite that does not break away from inventive concept of the present invention, any conspicuous replacement is all within protection domain of the present invention.

Claims (7)

1. data encryption method of compact disc, this CD comprises the CD lamellar body, the data tunnel of eccentric pattern on lamellar body, the logic sector of a plurality of storage data is divided in the data tunnel successively, logic sector outwards is numbered with 0 natural number that begins in CD successively, comprise in the logic sector that one stores the host sectors of root directory file, it is characterized in that described encrypting step is:
A. according to the encryption rule of setting the root directory file is carried out encryption, and specify logic sector to make encryption identification at CD;
B. write fashionablely in data, the root directory file storage after host sectors encrypted is to the blank logic sector that is numbered non-16.
2. data encryption method of compact disc according to claim 1, it is characterized in that, described encryption identification generation method is: the cdrom encryption secret key data process MD5 algorithm with 32 bytes, generate 16 byte summary infos, and summary info is identical with the identification data whether CD is encrypted.
3. data encryption method of compact disc according to claim 2 is characterized in that, described cdrom encryption secret key length storage address adopts C language definition to be:
#define?ENCRYPTION_REALLEN_ADDR?0xB00000;
The storage physical address of cryptographic keys and length thereof adopt C language definition to be:
#define?ENCRYPTION_KEY_ADDR?0xC00000;
The length of its memory address of the identification data whether CD is encrypted and identification data adopts C language definition to be:
#define?ENCRYPTION_ID_ADDR?0xD00000(13M)
#define?ENCRYPTION_ID_LEN?16。
4. data encryption method of compact disc according to claim 1 is characterized in that, described encryption rule uses 4 kinds of algorithms, and type is followed successively by 0,1,2,3, and wherein, each encryption type algorithm is specially:
0---by the byte negate, with 2048 bytes of be-encrypted data, each byte negate;
1---by the byte XOR, use 8 bit value as the XOR value, 2048 bytes of be-encrypted data, each byte is XOR with it;
2---the des cryptographic algorithm, use 64 bit keys, the 2048 bytes employing ecb mode of be-encrypted data is encrypted;
3---the rc4 cryptographic algorithm, use 64 bit keys, 2048 bytes of be-encrypted data are encrypted.
5. data encryption method of compact disc according to claim 4 is characterized in that, described encryption type address adopts C language definition to be:
#define?ENCRYPTION_TYPE_ADDR?0xE00000(14M)。
6. data encryption method of compact disc according to claim 1 is characterized in that, after the root directory fileinfo was encrypted, the actual storage address adopted C language definition to be:
#define?ENCRYPTION_DATA_ADDR?0xA00000。
7. data encryption method of compact disc according to claim 1 is characterized in that: in the logic sector storage random digit that is numbered 16.
CN 200910194378 2009-12-01 2009-12-01 Data encryption method of compact disc Expired - Fee Related CN101740068B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910194378 CN101740068B (en) 2009-12-01 2009-12-01 Data encryption method of compact disc

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910194378 CN101740068B (en) 2009-12-01 2009-12-01 Data encryption method of compact disc

Publications (2)

Publication Number Publication Date
CN101740068A true CN101740068A (en) 2010-06-16
CN101740068B CN101740068B (en) 2013-01-02

Family

ID=42463419

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910194378 Expired - Fee Related CN101740068B (en) 2009-12-01 2009-12-01 Data encryption method of compact disc

Country Status (1)

Country Link
CN (1) CN101740068B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104298937A (en) * 2013-07-15 2015-01-21 英飞凌科技股份有限公司 Apparatus and method for memory address encryption
CN108830737A (en) * 2018-05-28 2018-11-16 中国石油大学(华东) oil pipe digital management system
US10678709B2 (en) 2013-07-15 2020-06-09 Infineon Technologies Ag Apparatus and method for memory address encryption
CN112037824A (en) * 2020-09-03 2020-12-04 江苏新广联科技股份有限公司 Optical disk encryption method
CN114155885B (en) * 2022-02-08 2022-05-20 成都统信软件技术有限公司 File encryption method, recording method, decryption method, device and computing equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6848047B1 (en) * 1999-04-28 2005-01-25 Casio Computer Co., Ltd. Security managing system, data distribution apparatus and portable terminal apparatus
KR101117588B1 (en) * 2003-08-01 2012-02-24 코닌클리케 필립스 일렉트로닉스 엔.브이. Record carrier comprising encryption indication information
CN100533411C (en) * 2005-07-13 2009-08-26 集嘉通讯股份有限公司 Memory device encryption method

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104298937A (en) * 2013-07-15 2015-01-21 英飞凌科技股份有限公司 Apparatus and method for memory address encryption
CN104298937B (en) * 2013-07-15 2018-11-09 英飞凌科技股份有限公司 For the encrypted device and method of storage address
US10176121B2 (en) 2013-07-15 2019-01-08 Infineon Technologies Ag Apparatus and method for memory address encryption
US10678709B2 (en) 2013-07-15 2020-06-09 Infineon Technologies Ag Apparatus and method for memory address encryption
CN108830737A (en) * 2018-05-28 2018-11-16 中国石油大学(华东) oil pipe digital management system
CN112037824A (en) * 2020-09-03 2020-12-04 江苏新广联科技股份有限公司 Optical disk encryption method
CN112037824B (en) * 2020-09-03 2021-11-02 江苏新广联科技股份有限公司 Optical disk encryption method
CN114155885B (en) * 2022-02-08 2022-05-20 成都统信软件技术有限公司 File encryption method, recording method, decryption method, device and computing equipment

Also Published As

Publication number Publication date
CN101740068B (en) 2013-01-02

Similar Documents

Publication Publication Date Title
US7401231B2 (en) Information recording/playback device and method
EP1839404B1 (en) System and method for controlling access to protected digital content by verification of a media key block
JP5034227B2 (en) Information processing apparatus, information recording medium manufacturing apparatus, information recording medium and method, and computer program
US7058819B2 (en) Data processing system, data processing method, and program providing medium
KR100859622B1 (en) Information processing system and method
KR100859623B1 (en) Information processing system and method
KR100852305B1 (en) Information processing system and method
US8098827B2 (en) Data processing system, data processing method, and program providing medium
US7653939B2 (en) Data processing system, data processing method, data processing apparatus, license system, and program providing medium
US20020116622A1 (en) Data processing system, data processing method, data processing apparatus, and program providing medium
US6526010B1 (en) Recording medium, method and apparatus for recording/reproducing information which has been scrambled using a medium identifier and a sector number
US8001391B2 (en) Method of encrypting and decrypting data stored on a storage device using an embedded encryption/decryption means
JP4606421B2 (en) Key information generation method and apparatus, key information update method, falsification detection method and apparatus, and data structure of key information
JP2007208897A (en) Information processing device, information recording medium manufacturing device, information recording medium, method, and computer program
JP2006197540A (en) Method of generating alteration detecting data, alteration detecting method and apparatus thereof
CN101740068B (en) Data encryption method of compact disc
EP2702721B1 (en) Data recording device, host device and method of processing data recording device
US20140281570A1 (en) Method of performing an authentication process between data recording device and host device
US8929547B2 (en) Content data reproduction system and collection system of use history thereof
JP2000305850A (en) Electronic data protection system, application approver side device and user side device
JP2006197581A (en) Method of generating alteration detection data
JP4941611B2 (en) Information processing apparatus and method, and computer program
JP2013101725A (en) Information recorder, information reproduction device, method for reproducing content data and method for recording content data
WO2009088114A1 (en) Drm method using bad pattern, and digital contents recorder/player and method using that

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20151216

Address after: Chen Jiang Street office Guangdong province 516029 Huizhou Zhongkai Zhongkai high tech Zone Road double light industrial zone DESAY DESAY third new plant on the third floor and seven floor

Patentee after: DESAY ELECTRONICS (HUIZHOU) CO., LTD.

Address before: 516229 Guangdong city of Huizhou province Chen town DESAY third industrial zone

Patentee before: Desai Video-Audio Science & Technology Co., Ltd., Huizhou City

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130102

Termination date: 20191201