CN105263137A - Data encryption method and data encryption system - Google Patents

Data encryption method and data encryption system Download PDF

Info

Publication number
CN105263137A
CN105263137A CN201510666574.7A CN201510666574A CN105263137A CN 105263137 A CN105263137 A CN 105263137A CN 201510666574 A CN201510666574 A CN 201510666574A CN 105263137 A CN105263137 A CN 105263137A
Authority
CN
China
Prior art keywords
data
cryptographic keys
sub
secret key
mobile terminal
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
CN201510666574.7A
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201510666574.7A priority Critical patent/CN105263137A/en
Publication of CN105263137A publication Critical patent/CN105263137A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/02Protecting privacy or anonymity, e.g. protecting personally identifiable information [PII]

Abstract

The invention discloses a data encryption method and a data encryption system, wherein the data encryption method comprises the steps of setting a data format in data encryption on a mobile terminal; generating an encryption key and generating a set of sub-keys from the encryption key according to a preset rule; randomly packing plaintext data with the corresponding data format for dividing into a plurality of plaintext data packets; selecting a corresponding sub-key for each plaintext data packet, performing encryption calculation on the corresponding plaintext data packet by means of the sub-key for generating a plurality of corresponding plaintext data packets; and combining a plurality of cipher text data packets for forming output cipher text data. The data encryption method has advantages of high encryption strength, high operation speed and high expandability. The data encryption method and the data encryption system are suitable for encrypting storage and transmission of the mobile terminal.

Description

A kind of data ciphering method and system
Technical field
The present invention relates to technical field of data security, be specifically related to a kind of data ciphering method and system.
Background technology
The multimedia application of mobile terminal is often used by many users, and the data after shooting recording of taking pictures generally leave mobile terminal this locality in or deposit in storage card (T card).Like this when mobile terminal is lost or storage card (T card) use to other people etc. reason, originally the data such as the audiovisual presentation that stays of user are just likely seen by other people and use.Data save method in correlation technique brings hidden danger to the privacy of user and data security, and user experience is poor.
Summary of the invention
Technical problem to be solved by this invention is to provide a kind of data ciphering method and system, has that Cipher Strength is high, the advantage of fast operation, extensibility, is applicable to storage and the Transmission Encryption of mobile terminal.
The technical scheme that the present invention solves the problems of the technologies described above is as follows:
According to one aspect of the present invention, provide a kind of data ciphering method, comprising:
The data format of setting data encryption on mobile terminals;
Produce a cryptographic keys, and described cryptographic keys is generated one group of sub-secret key according to pre-defined rule;
The clear data of corresponding data form is packed at random and is divided into multiple clear data bag;
For a corresponding sub-secret key selected by each clear data bag, and utilization is encrypted computing to the clear data bag of sub-secret key to correspondence, generates the encrypt data bag of multiple correspondence;
Carry out multiple encrypt data bag merging the encrypt data forming and export.
According to another aspect of the present invention, provide a kind of data encryption system, comprising:
Data format arranges module, for the data format of setting data encryption on mobile terminals;
Cryptographic keys generation module, for generation of a cryptographic keys, and generates one group of sub-secret key by described cryptographic keys according to pre-defined rule;
Clear data divides module, is divided into multiple clear data bag for being packed at random by the clear data of corresponding data form;
Encrypting module, for selecting a corresponding sub-secret key for each clear data bag, and utilization is encrypted computing to the clear data bag of sub-secret key to correspondence, generates the encrypt data bag of multiple correspondence;
Encrypt data merges module, merges for carrying out multiple encrypt data bag the encrypt data forming and export.
A kind of data ciphering method provided by the invention and system, be encrypted the data of the format in mobile terminal, ensure that the fail safe of data; The clear data of format in mobile terminal is packaged into multiple packet, and adopt different sub-secret keys to be encrypted to each packet, the intensity of encryption is high, and the speed of cryptographic calculation is fast, there is the advantage that easily extensible is optimized, be suitable for storage and the Transmission Encryption of mobile terminal.
Accompanying drawing explanation
Fig. 1 is a kind of data ciphering method flow chart of the embodiment of the present invention one;
Fig. 2 is a kind of data encryption system schematic diagram of the embodiment of the present invention two.
Embodiment
Be described principle of the present invention and feature below in conjunction with accompanying drawing, example, only for explaining the present invention, is not intended to limit scope of the present invention.
Embodiment one, a kind of data ciphering method.Below in conjunction with Fig. 1, the method that the present embodiment provides is described in detail.
See the data format of Fig. 1, S101, on mobile terminals setting data encryption.
Concrete, for the data on mobile terminal, in order to ensure the fail safe of some data, can be encrypted the data of some format on mobile terminal, therefore the data format needing enciphered data is set first on mobile terminals, namely be encrypted the data of this data format on mobile terminal, pointed is encrypted data.In the present embodiment, mainly computing is encrypted to the data belonging to the data format of its correspondence that the multimedia application on mobile terminal generates, wherein, format mainly comprise dynamic image expert compression standard audio frequency aspect 3MP3, MP4, H.263, H.264, broadband speech encoding standard A MR, JPEG.
S102, a generation cryptographic keys, and cryptographic keys is generated one group of sub-secret key according to pre-defined rule.
Concrete, produce a cryptographic keys on mobile terminals, various ways can be adopted to produce cryptographic keys, such as, a cryptographic keys can be inputted by user to mobile terminal, also can produce a cryptographic keys at random by mobile terminal.Wherein, when inputting a cryptographic keys by user to mobile terminal, mobile terminal can detect the cryptographic keys of user's input, whether the cryptographic keys detecting user's input repeats, if repeated, mobile terminal can show the information of cryptographic keys repetition to user, reminding user re-enters cryptographic keys, until the cryptographic keys of user's input does not repeat; In addition, the cryptographic keys that mobile terminal produces at random does not also repeat.Adopt unduplicated cryptographic keys in the present embodiment, can ensure that cryptographic keys is more difficult and crack, and then ensure the fail safe of data.
After creating cryptographic keys on mobile terminals, the cryptographic keys of generation is generated one group of sub-secret key according to pre-defined rule, wherein, the rule that sub-secret key generates can by user's sets itself, and the present embodiment is not particularly limited.
S103, being packed at random by the clear data of corresponding data form is divided into multiple clear data bag.
Concrete, as above, being encrypted media data mainly to the corresponding data form that mobile multimedia terminal application produces in the present embodiment, before encryption, packs the clear data of corresponding data form at random and is divided into multiple clear data bag.
S104, be that a corresponding sub-secret key selected by each clear data bag, and utilize and be encrypted computing to the clear data bag of sub-secret key to correspondence, generate the encrypt data bag of multiple correspondence.
Concrete, after clear data being packaged into multiple clear data bag, being that a corresponding sub-secret key selected by each clear data bag according to certain rule, and utilizing the clear data bag of this sub-secret key to correspondence to be encrypted.Wherein, the present embodiment selects a sub-secret key according to the size of each clear data bag for it, utilizes corresponding sub-secret key to be encrypted this clear data bag, forms the encrypt data bag of multiple correspondence.
S105, to multiple encrypt data bag carry out merge form export encrypt data.
Concrete, above-mentioned steps S104 adopts corresponding sub-secret key to encrypt each clear data bag, obtains multiple encrypt data bag.The multiple encrypt data bags obtained carry out being merged into an encrypt data bag by this step, and using the encrypt data bag of merging as the encrypt data exported.
Embodiment two, a kind of data encryption system.Below in conjunction with Fig. 2, the system that the present embodiment provides is described in detail.
In Fig. 2, the system that the present embodiment provides comprises data format and arranges module 201, cryptographic keys generation module 202, reminding module 203, clear data division module 204, encrypting module 205 and encrypt data merging module 206.
Wherein, data format arranges the data format that module 201 is mainly used in setting data encryption on mobile terminals.
Concrete, for the data on mobile terminal, in order to ensure the fail safe of some data, can be encrypted the data of some format on mobile terminal, therefore be arranged at mobile terminal upper data format and the data format that module 201 arranges enciphered data is in the terminal set, namely be encrypted the data of this data format on mobile terminal, pointed is encrypted data.In the present embodiment, mainly computing is encrypted to the data belonging to the data format of its correspondence that the multimedia application on mobile terminal generates, wherein, data format arrange module 201 arrange data format mainly comprise dynamic image expert compression standard audio frequency aspect 3MP3, MP4, H.263, H.264, broadband speech encoding standard A MR, JPEG.
The cryptographic keys of generation mainly for generation of a cryptographic keys, and is generated one group of sub-secret key according to pre-defined rule by cryptographic keys generation module 202.
Concrete, cryptographic keys generation module 202 can adopt various ways to produce cryptographic keys on mobile terminals, such as, can input a cryptographic keys by user to mobile terminal, also can produce a cryptographic keys at random by mobile terminal.Wherein, when inputting a cryptographic keys by user to mobile terminal, mobile terminal can detect the cryptographic keys of user's input, whether the cryptographic keys detecting user's input repeats, if repeated, reminding module 203 in mobile terminal can show the information of cryptographic keys repetition to user, reminding user re-enters cryptographic keys, until the cryptographic keys of user's input does not repeat; In addition, the cryptographic keys that mobile terminal produces at random does not also repeat.Adopt unduplicated cryptographic keys in the present embodiment, can ensure that cryptographic keys is more difficult and crack, and then ensure the fail safe of data.
After creating cryptographic keys on mobile terminals, the cryptographic keys of generation is generated one group of sub-secret key according to pre-defined rule, wherein, the rule that sub-secret key generates can by user's sets itself, and the present embodiment is not particularly limited.
Clear data divides module 204 and is mainly used in the clear data of corresponding data form to pack at random to be divided into multiple clear data bag.
Encrypting module 205 is mainly used in sub-secret key clear data being divided to each clear data bag selection correspondence that module 204 divides, and utilization is encrypted computing to the clear data bag of sub-secret key to correspondence, generates the encrypt data bag of multiple correspondence.
Encrypt data merges module 206 and is mainly used in carrying out merging the encrypt data forming and export to multiple encrypt data bag.
Concrete, as previously mentioned, being encrypted media data mainly to the corresponding data form that mobile multimedia terminal application produces in the present embodiment, before encryption, the clear data of corresponding data form is packed and is divided into multiple clear data bag by clear data division module 204 at random.
Clear data divides after clear data is packaged into multiple clear data bag by module 204, and be that a corresponding sub-secret key selected by each clear data bag according to certain rule, encrypting module 205 utilizes the clear data bag of this sub-secret key to correspondence to be encrypted.Wherein, the present embodiment selects a sub-secret key according to the size of each clear data bag for it, utilizes corresponding sub-secret key to be encrypted this clear data bag, forms the encrypt data bag of multiple correspondence.
Encrypting module 205 adopts corresponding sub-secret key to encrypt each clear data bag, obtains multiple encrypt data bag.Encrypt data merges module 206 and the multiple encrypt data bags obtained is carried out merging generation encrypt data bag, and using the encrypt data bag of merging as the encrypt data exported.
A kind of data ciphering method provided by the invention and system, be encrypted the data of the format in mobile terminal, ensure that the fail safe of data; The clear data of format in mobile terminal is packaged into multiple packet, and adopt different sub-secret keys to be encrypted to each packet, the intensity of encryption is high, and the speed of cryptographic calculation is fast, there is the advantage that easily extensible is optimized, be suitable for storage and the Transmission Encryption of mobile terminal.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a data ciphering method, is characterized in that, described method comprises:
The data format of step S101, on mobile terminals setting data encryption;
Step S102, a generation cryptographic keys, and described cryptographic keys is generated one group of sub-secret key according to pre-defined rule;
Step S103, being packed at random by the clear data of corresponding data form is divided into multiple clear data bag;
Step S104, be that a corresponding sub-secret key selected by each clear data bag, and utilize and be encrypted computing to the clear data bag of sub-secret key to correspondence, generate the encrypt data bag of multiple correspondence;
Step S105, to multiple encrypt data bag carry out merge form export encrypt data.
2. a kind of data ciphering method as claimed in claim 1, is characterized in that, the data format in described step S101 comprises following at least one:
Dynamic image expert compression standard audio frequency aspect 3MP3, MP4, H.263, H.264, broadband speech encoding standard A RM, JPEG.
3. a kind of data ciphering method as claimed in claim 1, is characterized in that, described step S102 produces a cryptographic keys and comprises:
User inputs described cryptographic keys to described mobile terminal, or mobile terminal produces unduplicated cryptographic keys at random.
4. a kind of data ciphering method as claimed in claim 3, is characterized in that, when the cryptographic keys that user repeats to described mobile terminal input, mobile terminal meeting display reminding information, reminding user inputs unduplicated cryptographic keys again.
5. a kind of data ciphering method as claimed in claim 1, is characterized in that, described clear data is the multi-medium data belonging to described data format that mobile multimedia terminal application generates.
6. a kind of data ciphering method as claimed in claim 1, is characterized in that, for each clear data bag selects a corresponding sub-secret key to comprise in described step S104:
According to the sub-secret key that the size of each clear data bag is described clear data bag selection correspondence.
7. a data encryption system, is characterized in that, described system comprises:
Data format arranges module, for the data format of setting data encryption on mobile terminals;
Cryptographic keys generation module, for generation of a cryptographic keys, and generates one group of sub-secret key by described cryptographic keys according to pre-defined rule;
Clear data divides module, is divided into multiple clear data bag for being packed at random by the clear data of corresponding data form;
Encrypting module, for selecting a corresponding sub-secret key for each clear data bag, and utilization is encrypted computing to the clear data bag of sub-secret key to correspondence, generates the encrypt data bag of multiple correspondence;
Encrypt data merges module, merges for carrying out multiple encrypt data bag the encrypt data forming and export.
8. a kind of data encryption system as claimed in claim 7, is characterized in that, described cryptographic keys generation module, specifically comprises for generation of a cryptographic keys:
User inputs described cryptographic keys to described mobile terminal, or mobile terminal produces unduplicated cryptographic keys at random.
9. a kind of data encryption system as claimed in claim 8, is characterized in that, also comprise:
Reminding module, for when user inputs the cryptographic keys of repetition to described mobile terminal, mobile terminal meeting display reminding information, reminding user inputs unduplicated cryptographic keys again.
10. a kind of data encryption system as claimed in claim 7, is characterized in that, described encrypting module, for selecting a corresponding sub-secret key specifically to comprise for each clear data bag:
According to the sub-secret key that the size of each clear data bag is described clear data bag selection correspondence.
CN201510666574.7A 2015-10-15 2015-10-15 Data encryption method and data encryption system Pending CN105263137A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510666574.7A CN105263137A (en) 2015-10-15 2015-10-15 Data encryption method and data encryption system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510666574.7A CN105263137A (en) 2015-10-15 2015-10-15 Data encryption method and data encryption system

Publications (1)

Publication Number Publication Date
CN105263137A true CN105263137A (en) 2016-01-20

Family

ID=55102605

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510666574.7A Pending CN105263137A (en) 2015-10-15 2015-10-15 Data encryption method and data encryption system

Country Status (1)

Country Link
CN (1) CN105263137A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108337566A (en) * 2017-01-20 2018-07-27 创盛视联数码科技(北京)有限公司 A kind of encryption method based on mp4 formatted files
CN110730366A (en) * 2019-10-30 2020-01-24 杭州叙简科技股份有限公司 Bit operation-based lightweight video stream encryption and decryption method and encryption and decryption mechanism

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108337566A (en) * 2017-01-20 2018-07-27 创盛视联数码科技(北京)有限公司 A kind of encryption method based on mp4 formatted files
CN108337566B (en) * 2017-01-20 2021-06-29 创盛视联数码科技(北京)有限公司 Encryption method based on mp4 format file
CN110730366A (en) * 2019-10-30 2020-01-24 杭州叙简科技股份有限公司 Bit operation-based lightweight video stream encryption and decryption method and encryption and decryption mechanism

Similar Documents

Publication Publication Date Title
CN105260668B (en) A kind of file encrypting method and electronic equipment
JP6345237B2 (en) Method and apparatus for encrypting plaintext data
CN102752101A (en) Hierarchical data encryption/decryption apparatus and method thereof
CN103023635B (en) A kind of method of information back-up and device
KR102019159B1 (en) Apparatus and methdo for giving the compressed encryption functionality to integer-based homomorphic encryption schemes
CN105847005B (en) Encryption device and method
CN103716157A (en) Grouped multiple-key encryption method and grouped multiple-key encryption device
US11153068B2 (en) Encryption device, encryption method, decryption device and decryption method
CA2860437A1 (en) Generating digital signatures
CN102063598A (en) Data encryption and decryption methods and devices
WO2016088453A1 (en) Encryption apparatus, decryption apparatus, cryptography processing system, encryption method, decryption method, encryption program, and decryption program
CN102437912A (en) Digital rights management method based on N RSA (Rivest Shamir Adleman) encryption algorithms based on chaotic algorithm
CN104378198A (en) Voice encryption method based on block cipher system
CN104967693A (en) Document similarity calculation method facing cloud storage based on fully homomorphic password technology
CN102546156A (en) Method, system and device for grouping encryption
CN106059752A (en) White-box cryptography encryption-decryption method based on expansion ciphertext
CN104601820A (en) Mobile terminal information protection method based on TF password card
CN102647393A (en) Digital signage content piracy prevention method
CN105263137A (en) Data encryption method and data encryption system
CN103501220A (en) Encryption method and device
CN101383825A (en) Method, apparatus and terminal implementing computer file ciphering
CN103795549B (en) Communication content encryption and decryption method and encryption management method based on CS mode
CN103491384B (en) Encrypting method and device of video and decrypting method and device of video
Park et al. Methods for practical whitebox cryptography
CN104320248A (en) Method and system for inter-system secret key synchronization

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160120

RJ01 Rejection of invention patent application after publication