CN101296074A - Cryptographic key generation device, method and data encryption method based on digital contents - Google Patents

Cryptographic key generation device, method and data encryption method based on digital contents Download PDF

Info

Publication number
CN101296074A
CN101296074A CNA2008100890012A CN200810089001A CN101296074A CN 101296074 A CN101296074 A CN 101296074A CN A2008100890012 A CNA2008100890012 A CN A2008100890012A CN 200810089001 A CN200810089001 A CN 200810089001A CN 101296074 A CN101296074 A CN 101296074A
Authority
CN
China
Prior art keywords
key
data
digital content
packet
random number
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.)
Pending
Application number
CNA2008100890012A
Other languages
Chinese (zh)
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.)
Beijing Anpu Boda Science & Technology Co Ltd
Original Assignee
Beijing Anpu Boda Science & Technology Co Ltd
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 Beijing Anpu Boda Science & Technology Co Ltd filed Critical Beijing Anpu Boda Science & Technology Co Ltd
Priority to CNA2008100890012A priority Critical patent/CN101296074A/en
Publication of CN101296074A publication Critical patent/CN101296074A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Storage Device Security (AREA)

Abstract

The invention provides a device and a method for generating a cipher code based on digital contents and a data encrypting method. The cipher code generating device comprises a memory component, a random number generating component, an arithmetic component, an input and output component and a main control component which is respectively connected with the memory component, the random number generating component, the arithmetic component and the input and output component so as to control the operation of the components. Randomness and safety of cipher code generating can be met and the data can be effectively encrypted by using the cipher code generating device and the cipher code generating method based on the cipher code generating device and the data encrypting method of the invention, thus guaranteeing the security of the digital contents and maintaining the security and reliability of the data communication.

Description

Key generating device, generation method and data ciphering method based on digital content
Technical field
The present invention relates to a kind of key generating device and key generation method, more specifically, relate to a kind of key generating device and key generation method, and utilize described key generating device and key generation method that data are carried out method of encrypting based on digital content.
Background technology
At present, along with the development of informationization technology, effectively promoted the sale of digital commodities such as e-book, music image, film and television etc.The digital content that these digital commodities comprised comprises content of multimedia and word content etc.In order to prevent piracy, each company is all developing relevant art, thereby data are more effectively encrypted.
In addition, when carrying out data communication, it also is the important means of protected data safety that data are effectively encrypted.
No matter be for preventing that still in the ciphering process of data communication, key management all is important part in the digital copyright protection system that piracy sets up, and key to generate parts are cores of key management.Thereby prevent piracy and the fail safe that guarantees data communication for digital content is more effectively encrypted, researched and developed multiple key generation method and utilized key to carry out the method for data encryption.
Yet known key generation method is very complicated too, and the digital content that is difficult to that amount of information is increased day by day carries out encrypting rapidly and effectively, and fail safe is not high.
Summary of the invention
The invention provides a kind of simple and effective key generating device and key generation method, can satisfy randomness and fail safe that key generates based on digital content.
The present invention also provides a kind of key that utilizes that data are carried out method of encrypting, and this method can carry out encrypting rapidly and effectively to digital content.
According to an aspect of the present invention, provide a kind of key generating device, having comprised based on digital content: memory member, program code stored; The random number generation part produces random number, and this random number is as key seed; Algorithm component generates key thereby carry out computing; Inputoutput unit, the key that input digit content and output generate; And, main control unit, link to each other with described inputoutput unit with described memory member, described random number generation part, described algorithm component respectively, thereby control the operation of described memory member, described random number generation part, described algorithm component and described inputoutput unit.
According to another aspect of the present invention, provide a kind of key generation method, may further comprise the steps: a): read data packet from digital content based on digital content; B): reading of data from described packet; C): use the data that in step b), read to form the data of representing digital content information; D): judge whether key seed produces,, then enter step f) if key seed produces; E): with random number as key seed; F): utilize described key seed as the computing key and the data of utilizing the described representative digital content information in step c), form as operation content, generate key by computing; And g): the key that output generates.
According to a further aspect of the invention, provide a kind of data ciphering method, may further comprise the steps: a): utilized above key generation method to generate key; And b): utilize the secret key encryption packet that generates.
By key generating device of the present invention and generation method and data ciphering method, can encrypt effectively data, thus the fail safe of assurance digital content, and the safety of service data communication and reliable.
Description of drawings
Fig. 1 is the internal structure block diagram according to key generating device of the present invention;
Fig. 2 is the schematic diagram according to key generation method of the present invention; And
Fig. 3 is the schematic diagram that utilizes key generation method of the present invention that data are encrypted.
Embodiment
Below in conjunction with accompanying drawing, above-mentioned and additional features and advantage are described in more detail to the present invention.
Fig. 1 is the internal structure block diagram according to key generating device of the present invention.
As shown in Figure 1, key generating device 100 comprises memory member 101, inputoutput unit 102, random number generation part 103, algorithm component 104 and main control unit 105.
Memory member 101 is connected with main control unit 105, is used for program code storedly, and provides system to move needed internal memory.Memory member 101 can comprise: synchronous DRAM is used to provide the internal memory that the key generating device operation needs; And flash memory (FLASHmemory), be used for program code stored.
Inputoutput unit 102 is connected with main control unit 105, in order to realize the function of input and output.Inputoutput unit 102 can comprise and be used to read the interface of digital content and export the interface that generates key.Inputoutput unit 102 for example is dedicated bus or special purpose interface, but is not limited thereto, and also can adopt other modes well-known to those skilled in the art to realize as required.
Random number generation part 103 is connected with main control unit 105, is used for the generation of random number.This random number will be as key seed.Random number generation part 103 for example is hardware random number generator or software randomizer.
Algorithm component 104 is connected with main control unit 105, is used to realize generating the algorithm of key, such as the SM4-ECB algorithm.Algorithm component 104 for example is dedicated IC chip (ASIC) or logic chip, but is not limited thereto, and also can adopt other modes well-known to those skilled in the art to realize as required.
Main control unit 105 is used for the operation of other parts of control key generating apparatus.Main control unit 105 for example is single-chip microcomputer, embedded system or computer, but is not limited thereto, and also can adopt other modes well-known to those skilled in the art to realize as required.
When encrypting for the data that digital content comprised, initial program is read into the synchronous DRAM of memory member 101 from the flash memory of memory member 101.Read in the packet of digital content by inputoutput unit 102, this packet is written in the synchronous DRAM of memory member 101.Then, according to predetermined rule reading of data in the packet, and utilize the data that read to form the new data of representing digital content information.These new data can only comprise the data that read in the packet, and certainly, these new data also can comprise other related datas, for example represent the data of packet attribute.Afterwards, utilize random number that random number generation part 103 produces as key seed, and, generate key thereby new data are carried out computing with the computing key of this key seed as algorithm component 104.Export the key that is generated by inputoutput unit 102.Utilize this key, just can encrypt the packet that is read in.
Fig. 2 is the schematic diagram according to key generation method of the present invention.
As shown in Figure 2, can may further comprise the steps according to key generation method of the present invention:
Step 201: beginning.
Step 202: read data packet from digital content.This packet for example can comprise the first predetermined number destination data.First predetermined number of the data that comprised in the packet can come to determine as required.This first predetermined number is a unit with byte or position for example, such as 1920 bytes.
Step 203: from described packet reading of data.For example, can read the second predetermined number destination data from the precalculated position the described packet, this precalculated position can continuously also can be discontinuous.This second predetermined number is a unit with byte or position for example.
Step 204: use the data that in step 203, read to form the new data of representing digital content information.The data that these new data can only be included in the step 203 to be read.Certainly, these new data also can comprise other related datas, for example represent the data of packet attribute.
Step 205: judge whether key seed produces.If key seed produces, then enter step 207.
Step 206:, then use random number as key seed if do not produce key seed.
Step 207: the new data of utilizing key seed formation in step 204 as computing key and utilization generate key as operation content by computing.
Step 208: the key that output is generated in step 207.
By above step 201-208, produced the required key of enciphered data.That is, finished according to key generation method of the present invention.Can utilize the key that is produced, the packet that is read is encrypted.
When the needs encrypted digital content comprises a plurality of packet, can utilize key generation method of the present invention to produce a plurality of keys, each packet is encrypted respectively.Fig. 3 is the schematic diagram that utilizes key generation method of the present invention that data are encrypted.
As shown in Figure 3, in step 208, generate after the key, can encrypt the included packet of digital content by following steps.
Step 209: utilize the key that in step 208, generates, be encrypted in the packet that reads in the step 202.
Step 210: judge whether that packets need is encrypted in addition.If also have packets need to encrypt, then enter step 202 once more.
Step 211: finish.
By repeating step 202-210, can encrypt respectively the included a plurality of packets of digital content.
According to key generating device of the present invention, generation method and data ciphering method, have the following advantages:
One, the present invention not only combines closely with digital content, and randomness is stronger.
Two, the present invention encrypts piecemeal according to digital content, and is according to the different key differences of digital content, safe.
Three, the present invention only needs a key seed in generating cipher key processes, just can produce abundant key, and method is simple.
Four, the present invention only needs to preserve key seed and gets final product in corresponding decrypting process, and method is simply effective.
Five, the present invention also possesses very strong extensibility, can change the length of encrypted data packet according to the needs of chip performance, generates number thereby change key, is suitable for different application.
By key generating device of the present invention and generation method and data ciphering method, can encrypt effectively data, thereby the fail safe that guarantees digital content is preventing piracy, and the safety of service data communication and reliable.
The above only is the preferred embodiments of the present invention, only is illustrative for the purpose of the present invention, and nonrestrictive.It will be understood by those skilled in the art that under the premise without departing from the spirit and scope of the present invention can carry out multiple change, modification even equivalence to it, all these will fall within the scope of protection of the present invention.

Claims (10)

1. key generating device based on digital content comprises:
Memory member, program code stored;
The random number generation part produces random number, and this random number is as key seed;
Algorithm component generates key thereby carry out computing;
Inputoutput unit, the key that input digit content and output generate; And
Main control unit, link to each other with described inputoutput unit with described memory member, described random number generation part, described algorithm component respectively, thereby control the operation of described memory member, described random number generation part, described algorithm component and described inputoutput unit.
2. the key generating device based on digital content according to claim 1, wherein said memory member comprises synchronous DRAM and flash memory, the internal memory that described synchronous DRAM provides described key generating device operation to need, and described flash memory storing said program code.
3. the key generating device based on digital content according to claim 1, wherein said digital content comprises packet, described packet is imported by described inputoutput unit,
The key of wherein said generation is to produce in the following manner: with the computing key of described key seed as described algorithm component, the data of the formed representative digital content information of data that reads in described packet are carried out computing.
4. key generation method based on digital content may further comprise the steps:
A): read data packet from digital content;
B): reading of data from described packet;
C): use the data that in step b), read to form the data of representing digital content information;
D): judge whether key seed produces,, then enter step f) if key seed produces;
E): with random number as key seed;
F): utilize described key seed as the computing key and the data of utilizing the described representative digital content information in step c), form as operation content, generate key by computing; And
G): the key that output generates.
5. the key generation method based on digital content according to claim 4, wherein said packet comprises the first predetermined number destination data.
6. the key generation method based on digital content according to claim 4, wherein in step b), the second predetermined number destination data is read in the precalculated position from described packet.
7. the key generation method based on digital content according to claim 6, wherein said precalculated position is continuous or discontinuous.
8. the key generation method based on digital content according to claim 4, the data of the described representative digital content information that wherein forms in step c) also comprise other data except the data that read in step b).
9. data ciphering method may further comprise the steps:
A): utilize the described key generation method of claim 4 to generate key; And
B): utilize the secret key encryption packet that generates.
10. data ciphering method according to claim 9, further comprising the steps of:
C): judge whether that packets need is encrypted in addition.If also have packets need to encrypt, then enter step a).
CNA2008100890012A 2008-04-15 2008-04-15 Cryptographic key generation device, method and data encryption method based on digital contents Pending CN101296074A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2008100890012A CN101296074A (en) 2008-04-15 2008-04-15 Cryptographic key generation device, method and data encryption method based on digital contents

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2008100890012A CN101296074A (en) 2008-04-15 2008-04-15 Cryptographic key generation device, method and data encryption method based on digital contents

Publications (1)

Publication Number Publication Date
CN101296074A true CN101296074A (en) 2008-10-29

Family

ID=40066110

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2008100890012A Pending CN101296074A (en) 2008-04-15 2008-04-15 Cryptographic key generation device, method and data encryption method based on digital contents

Country Status (1)

Country Link
CN (1) CN101296074A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108092765A (en) * 2017-11-23 2018-05-29 深圳市文鼎创数据科技有限公司 A kind of method, apparatus and equipment for supporting unlimited user key
CN113742765A (en) * 2021-11-08 2021-12-03 天津嘉萱智财云科技有限公司 Intelligent cloud data security protection system and method based on block chain

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108092765A (en) * 2017-11-23 2018-05-29 深圳市文鼎创数据科技有限公司 A kind of method, apparatus and equipment for supporting unlimited user key
CN113742765A (en) * 2021-11-08 2021-12-03 天津嘉萱智财云科技有限公司 Intelligent cloud data security protection system and method based on block chain
CN113742765B (en) * 2021-11-08 2022-02-08 天津嘉萱智财云科技有限公司 Intelligent cloud data security protection system and method based on block chain

Similar Documents

Publication Publication Date Title
TWI750223B (en) Blockchain encrypted radio frequency chip storage design method
CN102138300B (en) Message authentication code pre-computation with applications to secure memory
CN108768663B (en) Block chain access control method and processing system thereof
CN103210396B (en) Comprise the method and apparatus of the framework for the protection of sensitive code and data
CN101311942B (en) Software encryption and decryption method and encryption and decryption device
CN103455764B (en) A kind of file encryption based on file division folding and decryption system
US10313128B2 (en) Address-dependent key generator by XOR tree
CN103748827A (en) System and method for wireless data protection
CN101309138A (en) Encryption-based security protection method for processor and apparatus thereof
CN102402670A (en) File encryption and decryption method
TW200835275A (en) Method and system for variable and changing keys in a code encryption system
CN105184181B (en) File encryption method, file decryption method and file encryption device
CN103955654A (en) USB (Universal Serial Bus) flash disk secure storage method based on virtual file system
CN104732159A (en) File processing method and file processing device
CN108494546A (en) A kind of whitepack encryption method, device and storage medium
WO2021217939A1 (en) Data processing method and apparatus for blockchain, and readable storage medium
CN111538479A (en) Random parameter generation method and device in label opening process
CN111984985A (en) HDL source code encryption method based on FPGA hardware system
CN112907375A (en) Data processing method, data processing device, computer equipment and storage medium
CN107967414A (en) Microcontroller chip instruction encryption method, decryption method and enciphering/deciphering system
CN103605919A (en) Method and device for generating software authentication files and method and device for authenticating software
US9946662B2 (en) Double-mix Feistel network for key generation or encryption
CN103186731A (en) Digital copyright protection method and system of hybrid mode
CN101296074A (en) Cryptographic key generation device, method and data encryption method based on digital contents
CN114430321B (en) DFA self-adaptive security-based black box traceable key attribute encryption method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20081029