[go: up one dir, main page]

CN106385313A - Random cryptograph system based on grouping encryption algorithm and realization method thereof - Google Patents

Random cryptograph system based on grouping encryption algorithm and realization method thereof Download PDF

Info

Publication number
CN106385313A
CN106385313A CN201610810598.XA CN201610810598A CN106385313A CN 106385313 A CN106385313 A CN 106385313A CN 201610810598 A CN201610810598 A CN 201610810598A CN 106385313 A CN106385313 A CN 106385313A
Authority
CN
China
Prior art keywords
plaintext
module
algorithm
information
filling
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
CN201610810598.XA
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.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric 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 Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CN201610810598.XA priority Critical patent/CN106385313A/en
Publication of CN106385313A publication Critical patent/CN106385313A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0861Generation of secret information including derivation or calculation of cryptographic keys or passwords
    • H04L9/0869Generation of secret information including derivation or calculation of cryptographic keys or passwords involving random numbers or seeds

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Storage Device Security (AREA)

Abstract

The present invention relates to the computer software encryption technology field, and discloses a random cryptograph system based on the grouping encryption algorithm and the realization method thereof. The method can automatically determine the encrypted plaintext digit number length and the grouping length of the grouping encryption algorithm and perform intelligent filling of the plaintext. The system comprises an encryption subsystem and a decryption subsystem, wherein the encryption subsystem includes an encryption algorithm selection module, a secret key selection module, a plaintext determination module, a plaintext filling algorithm module and an encryption algorithm module. The decryption subsystem includes a decryption algorithm module, a reversed plaintext filling module and a plaintext verification module. The realization method provided by the invention adds random filling bit to the plaintext information. The random cryptograph system based on the grouping encryption algorithm and the realization method thereof are suitable for the encryption of the daily computer software.

Description

Random ciphertext system based on block encryption algorithm and implementation method
Technical field
The present invention relates to computer software encryption technology, particularly to the random ciphertext system based on block encryption algorithm and Implementation method.
Background technology
With the development of information encryption, the intensity of AES increasingly receives everybody attention and concern, related Enhancing AES intensity method also more and more essential, in plain text after AES generates ciphertext, to ciphertext Analysis and cracking also become the thing of the frequent concern of hackers, block encryption algorithm frequently commonly uses letter as a use Encryption for information method, is especially suitable for encrypting mass data;But because block encryption algorithm is only to the ciphertext of same plain text encryption One, result in hacker can carry out inverse operation to known ciphertext, thus drawing corresponding plaintext, largely reducing the peace of ciphertext Quan Xing;Current legacy packets AES, does not solve the problems, such as this ciphertext uniqueness at all;It is thus desirable to one can be Automatically add random filler in plain text, make same plaintext can generate the algorithm of different ciphertexts after each encryption, thus Increase the strong degree of password, even if after realizing hacker's acquisition ciphertext, the also difficult reverse purpose releasing plaintext.
Content of the invention
The technical problem to be solved in the present invention is:A kind of random ciphertext system based on block encryption algorithm and realization are provided Method, the block length of automatic decision encrypted plaintext digits long and its block encryption algorithm used, and it is carried out in plain text The random ciphertext generation method of intelligence filling.
For solving the above problems, the technical solution used in the present invention is:Based on the random ciphertext system of block encryption algorithm, Including encryption subsystem, described encryption subsystem include AES selecting module, key selecting module, plaintext judge module, Plaintext filling algorithm module and enciphering algorithm module;
Described AES selecting module is used for choosing the type of block encryption algorithm;
Described key selecting module is used for choosing the key length of the process that is encrypted;
Described plaintext detection module is used for judging input plaintext digit, and this cleartext information is calculated by digest algorithm One summary info, then by length of the plaintext information transmission to plaintext filling algorithm module, plaintext summary info is passed to and adds Close algoritic module;
Described plaintext filling algorithm module is used for entering the cleartext information being unsatisfactory for rule according to specific plaintext filling algorithm Row filling, specifically includes:If length of the plaintext deficiency key length, plaintext filling algorithm module then generates random order information, and Using this information, plaintext is filled into one times of key length, then generates the random order information of one times of key length, filling again To after cleartext information before;If length of the plaintext is equal to key length, plaintext filling algorithm module then generates one times of key The random order information of length, is filled into after cleartext information;If length of the plaintext is more than key length, plaintext filling algorithm module Then first cleartext information is averagely cut by key integral multiple, generated random order information, to bright less than one times of key length Civilian information is filled with;
Described enciphering algorithm module is used for the plaintext summary info before the cleartext information after filling and filling is carried out adding Close operate and export cipher-text information.
Further, described digest algorithm is hash algorithm.
Further, described hash algorithm is MD5 algorithm.
Further, present system also includes decrypting subsystem, and described decrypting subsystem includes decipherment algorithm module, anti- To plaintext filling algorithm module and plaintext correction verification module;
Described decipherment algorithm module is used for cipher-text information is decrypted the cleartext information operating and exporting with filler With plaintext summary info;
Described reverse ciphertext filling algorithm module is used for removing the filler information in cleartext information and exporting final Cleartext information;
Described plaintext correction verification module is used for calculating and contrast described plaintext summary info and described final cleartext information Concordance is it was demonstrated that the effectiveness of decryption oprerations.
Based on the random ciphertext implementation method of block encryption algorithm, comprise the steps:
A, enciphering algorithm module select used block encryption algorithm;
B, key selecting module determine key length according to selected block encryption algorithm;
C, plaintext detection module judge to the cleartext information of input, and obtain the length information of its plaintext, and should Cleartext information calculates a summary info by digest algorithm, then by length of the plaintext information transmission to plaintext filling algorithm mould Block, plaintext summary info is passed to enciphering algorithm module;
D, plaintext filling algorithm module, according to the length information of inputted plaintext, judge whether how this cleartext information is entered Row padding, if length of the plaintext deficiency key length, plaintext filling algorithm module then generates random order information, and use should Plaintext is filled into one times of key length by information, then generates the random order information of one times of key length again, before being filled into Cleartext information after;If length of the plaintext is equal to key length, plaintext filling algorithm module then generates one times of key length Random order information, is filled into after cleartext information;If length of the plaintext is more than key length, plaintext filling algorithm module then first will Cleartext information is averagely cut by key integral multiple, generates random order information, to the cleartext information less than one times of key length It is filled with;
E, enciphering algorithm module use the plaintext that AES and symmetry algorithm key export to plaintext filling algorithm module Plaintext summary info before information and filling is encrypted, and exports a cipher-text information.
Further, described digest algorithm is hash algorithm.
Further, described hash algorithm is MD5 algorithm.
Further, the inventive method also includes step:
F, decipherment algorithm module, after receiving cipher-text information, are believed to this ciphertext using decipherment algorithm and symmetry algorithm key Breath is decrypted operation, obtains the cleartext information containing plaintext filler and plaintext summary info, and will be containing plaintext filler Cleartext information pass to reverse plaintext filling algorithm module, plaintext summary info is passed to plaintext correction verification module;
G, reverse plaintext filling algorithm module carry out contrary operation to obtaining the cleartext information containing plaintext filler, obtain Go out a cleartext information removing plaintext filler, and export to plaintext correction verification module;
H, plaintext correction verification module calculate summary info to the cleartext information receiving, and by this summary info with before from solution The plaintext summary info that close algoritic module receives is contrasted, if unanimously, judges decryption oprerations success;If inconsistent, Then decipher unsuccessfully.
The invention has the beneficial effects as follows:Implementation method principle of the present invention is simple, input cost is low, using to cleartext information plus Enter random filler, after each encryption, different cipher-text information can be generated, substantially increase hackers and obtain sensitive data Cost, increased the strong degree of ciphertext, improve the safety of related system.
Brief description
Fig. 1 is the encryption flow figure of embodiment;
Fig. 2 is the deciphering flow chart of embodiment.
Specific embodiment
In order to be able to preferably understand to technical scheme, carry out in detail below by specific embodiment Explanation:
The system of embodiment includes:Encryption subsystem and decrypting subsystem, wherein encryption system contain AES choosing Select module, key selecting module, plaintext judge module, plaintext filling algorithm module and enciphering algorithm module;Decrypting process comprises Deciphering algoritic module, direction plaintext filling algorithm module and plaintext correction verification module.
Wherein:Described AES selecting module is used for choosing the type of block encryption algorithm;Described key selecting module For choosing the key length of the process that is encrypted;Described plaintext detection module is used for judging input plaintext digit;Described plaintext Filling algorithm module is used for being filled with the cleartext information being unsatisfactory for rule according to special algorithm;Described enciphering algorithm module is used Operate and export cipher-text information in being encrypted to the cleartext information after filling;Described decipherment algorithm module is used for cipher-text information It is decrypted the cleartext information operating and exporting with filler;Described reverse ciphertext filling algorithm is used in cleartext information Filler information removes and exports final cleartext information;Described plaintext correction verification module is used for the plaintext calculating and contrasting before input With the concordance of the plaintext after deciphering it was demonstrated that the effectiveness of decryption oprerations.
Based on said system, as depicted in figs. 1 and 2, the concrete methods of realizing of embodiment comprises the following steps:
A, enciphering algorithm module select used block encryption algorithm, and this example chooses DES algorithm;
B, key selecting module pass through the DES algorithm choosing, and choose the encryption key lengths of use, and this example is chosen 128bit;
C, plaintext detection module judge to the input cleartext information getting, and judge the length of its information using algorithm Degree, then calls HASH algorithm (as MD5 algorithm) this cleartext information to be calculated a summary info, afterwards by length of the plaintext number According to passing to plaintext filling algorithm module, and plaintext summary info is passed to enciphering algorithm module;
D, plaintext filling algorithm module, according to the length information of inputted plaintext, judge whether how this cleartext information is entered Row padding, if length of the plaintext deficiency key length, plaintext filling algorithm module then generates random order information, and use should Plaintext is filled into one times of key length by information, then generates the random order information of one times of key length again, before being filled into Cleartext information after;If length of the plaintext is equal to key length, plaintext filling algorithm module then generates one times of key length Random order information, is filled into after cleartext information;If length of the plaintext is more than key length, plaintext filling algorithm module then first will Cleartext information is averagely cut by key integral multiple, generates random order information, to the cleartext information less than one times of key length It is filled with;
E, enciphering algorithm module use the plaintext that AES and symmetry algorithm key export to plaintext filling algorithm module Plaintext summary info before information and filling is encrypted, and exports a cipher-text information;
F, decipherment algorithm module, after receiving cipher-text information, are believed to this ciphertext using decipherment algorithm and symmetry algorithm key Breath is decrypted operation, obtains the cleartext information containing plaintext filler and plaintext summary info, and will be containing plaintext filler Cleartext information pass to reverse plaintext filling algorithm module, plaintext summary info is passed to plaintext correction verification module;
G, reverse plaintext filling algorithm module carry out contrary operation to obtaining the cleartext information containing plaintext filler, obtain Go out a cleartext information removing plaintext filler, and export to plaintext correction verification module;
H, plaintext correction verification module calculate summary info to the cleartext information receiving, and by this summary info with before from solution The plaintext summary info that close algoritic module receives is contrasted, if consistent, judge decryption oprerations success, otherwise then deciphering is lost Lose.
Random filler is added to cleartext information using the present invention, after each encryption, different ciphertext letters can be generated Breath, substantially increases the cost that hackers obtain sensitive data, increased the strong degree of ciphertext, improve the safety of related system Property.
Although reference be made herein to invention has been described for the explanatory embodiment of the present invention, and above-described embodiment is only this Bright preferably embodiment, embodiments of the present invention are simultaneously not restricted to the described embodiments it should be appreciated that people in the art Member can be designed that a lot of other modifications and embodiment, all made within the spirit and principles in the present invention any repair Change, equivalent and improvement etc., should be included within the scope of the present invention.

Claims (8)

1. the random ciphertext system based on block encryption algorithm, including encryption subsystem it is characterised in that described encryption subsystem Including AES selecting module, key selecting module, plaintext judge module, plaintext filling algorithm module and AES mould Block;
Described AES selecting module is used for choosing the type of block encryption algorithm;
Described key selecting module is used for choosing the key length of the process that is encrypted;
Described plaintext detection module is used for judging input plaintext digit, and this cleartext information is calculated one by digest algorithm Summary info, then by length of the plaintext information transmission to plaintext filling algorithm module, plaintext summary info is passed to encryption and calculates Method module;
Described plaintext filling algorithm module is used for being filled out the cleartext information being unsatisfactory for rule according to specific plaintext filling algorithm Fill, specifically include:If length of the plaintext deficiency key length, plaintext filling algorithm module then generates random order information, and uses Plaintext is filled into one times of key length by this information, then generates the random order information of one times of key length again, is filled into it After front cleartext information;If length of the plaintext is equal to key length, plaintext filling algorithm module then generates one times of key length Random order information, be filled into after cleartext information;If length of the plaintext is more than key length, plaintext filling algorithm module is then first Cleartext information is averagely cut by key integral multiple, is generated random order information, to the plaintext letter less than one times of key length Breath is filled with;
Described enciphering algorithm module is used for being encrypted behaviour to the plaintext summary info before the cleartext information after filling and filling Make and export cipher-text information.
2. the random ciphertext system based on block encryption algorithm according to claim 1 is it is characterised in that described summary is calculated Method is hash algorithm.
3. the random ciphertext system based on block encryption algorithm according to claim 2 is it is characterised in that described Hash is calculated Method is MD5 algorithm.
4. the random ciphertext system based on block encryption algorithm according to claim 1 is it is characterised in that also include deciphering Subsystem, described decrypting subsystem includes decipherment algorithm module, reverse plaintext filling algorithm module and plaintext correction verification module;
Described decipherment algorithm module is used for cipher-text information is decrypted and operates and export cleartext information with filler and bright Civilian summary info;
Described reverse ciphertext filling algorithm module is used for removing the filler information in cleartext information and exporting final plaintext Information;
Described plaintext correction verification module is used for calculating with to contrast described plaintext summary info consistent with described final cleartext information Property is it was demonstrated that the effectiveness of decryption oprerations.
5. the random ciphertext implementation method based on block encryption algorithm is it is characterised in that comprise the steps:
A, enciphering algorithm module select used block encryption algorithm;
B, key selecting module determine key length according to selected block encryption algorithm;
C, plaintext detection module judge to the cleartext information of input, and obtain the length information of its plaintext, and by this in plain text Information calculates a summary info by digest algorithm, then by length of the plaintext information transmission to plaintext filling algorithm module, Plaintext summary info is passed to enciphering algorithm module;
D, plaintext filling algorithm module, according to the length information of inputted plaintext, judge whether how this cleartext information is filled out Fill operation, if length of the plaintext deficiency key length, plaintext filling algorithm module then generates random order information, and uses this information Plaintext is filled into one times of key length, then generates the random order information of one times of key length again, bright before being filled into After civilian information;If length of the plaintext is equal to key length, plaintext filling algorithm module then generates the random of one times of key length Position information, is filled into after cleartext information;If length of the plaintext is more than key length, plaintext filling algorithm module then first will in plain text Information is averagely cut by key integral multiple, generates random order information, the cleartext information less than one times of key length is carried out Filling;
E, enciphering algorithm module use the cleartext information that AES and symmetry algorithm key export to plaintext filling algorithm module It is encrypted with the plaintext summary info before filling, export a cipher-text information.
6. the random ciphertext implementation method based on block encryption algorithm according to claim 5 is it is characterised in that described pluck Algorithm is wanted to be hash algorithm.
7. the random ciphertext implementation method based on block encryption algorithm according to claim 6 is it is characterised in that described Kazakhstan Uncommon algorithm is MD5 algorithm.
8. the random ciphertext implementation method based on block encryption algorithm according to claim 5 is it is characterised in that also include Step:
F, decipherment algorithm module, after receiving cipher-text information, are entered to this cipher-text information using decipherment algorithm and symmetry algorithm key Row decryption oprerations, obtain the cleartext information containing plaintext filler and plaintext summary info, and will be bright containing plaintext filler Civilian information transmission gives reverse plaintext filling algorithm module, and plaintext summary info is passed to plaintext correction verification module;
G, reverse plaintext filling algorithm module carry out contrary operation to obtaining the cleartext information containing plaintext filler, draw one The individual cleartext information removing plaintext filler, and export to plaintext correction verification module;
H, plaintext correction verification module calculate summary info to the cleartext information receiving, and by this summary info with before from deciphering calculation The plaintext summary info that method module receives is contrasted, if unanimously, judges decryption oprerations success;If it is inconsistent, solution Close failure.
CN201610810598.XA 2016-09-08 2016-09-08 Random cryptograph system based on grouping encryption algorithm and realization method thereof Pending CN106385313A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610810598.XA CN106385313A (en) 2016-09-08 2016-09-08 Random cryptograph system based on grouping encryption algorithm and realization method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610810598.XA CN106385313A (en) 2016-09-08 2016-09-08 Random cryptograph system based on grouping encryption algorithm and realization method thereof

Publications (1)

Publication Number Publication Date
CN106385313A true CN106385313A (en) 2017-02-08

Family

ID=57938103

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610810598.XA Pending CN106385313A (en) 2016-09-08 2016-09-08 Random cryptograph system based on grouping encryption algorithm and realization method thereof

Country Status (1)

Country Link
CN (1) CN106385313A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107147487A (en) * 2017-05-23 2017-09-08 高胜法 The random block cipher of symmetric key
CN108134799A (en) * 2018-01-18 2018-06-08 国网湖南省电力有限公司 Novel encipher-decipher method and its device
CN108270771A (en) * 2017-12-22 2018-07-10 中国电子科技集团公司第三十研究所 A kind of shellcode encoding and decoding deformation method
CN109660328A (en) * 2018-12-26 2019-04-19 中金金融认证中心有限公司 Symmetric block encryption method, apparatus, equipment and medium
CN110912891A (en) * 2019-11-24 2020-03-24 苏州浪潮智能科技有限公司 Network transmission encryption method, device, equipment and medium
CN111884796A (en) * 2020-06-17 2020-11-03 中国电子科技集团公司第三十研究所 A method and system for carrying information based on random number field

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546156A (en) * 2012-02-01 2012-07-04 李智虎 Method, system and device for grouping encryption
CN102710605A (en) * 2012-05-08 2012-10-03 重庆大学 Information security management and control method under cloud manufacturing environment
CN103684794A (en) * 2013-12-25 2014-03-26 华南理工大学 A Communication Data Encryption and Decryption Method Based on DES, RSA, and SHA-1 Encryption Algorithms
US9380034B2 (en) * 2014-09-12 2016-06-28 Sze Yuen Wong Systems and methods for data gathering without internet

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546156A (en) * 2012-02-01 2012-07-04 李智虎 Method, system and device for grouping encryption
CN102710605A (en) * 2012-05-08 2012-10-03 重庆大学 Information security management and control method under cloud manufacturing environment
CN103684794A (en) * 2013-12-25 2014-03-26 华南理工大学 A Communication Data Encryption and Decryption Method Based on DES, RSA, and SHA-1 Encryption Algorithms
US9380034B2 (en) * 2014-09-12 2016-06-28 Sze Yuen Wong Systems and methods for data gathering without internet

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107147487A (en) * 2017-05-23 2017-09-08 高胜法 The random block cipher of symmetric key
CN108270771A (en) * 2017-12-22 2018-07-10 中国电子科技集团公司第三十研究所 A kind of shellcode encoding and decoding deformation method
CN108134799A (en) * 2018-01-18 2018-06-08 国网湖南省电力有限公司 Novel encipher-decipher method and its device
CN109660328A (en) * 2018-12-26 2019-04-19 中金金融认证中心有限公司 Symmetric block encryption method, apparatus, equipment and medium
CN110912891A (en) * 2019-11-24 2020-03-24 苏州浪潮智能科技有限公司 Network transmission encryption method, device, equipment and medium
CN111884796A (en) * 2020-06-17 2020-11-03 中国电子科技集团公司第三十研究所 A method and system for carrying information based on random number field

Similar Documents

Publication Publication Date Title
CN106385313A (en) Random cryptograph system based on grouping encryption algorithm and realization method thereof
CN110505050A (en) A kind of Android information encryption system and method based on national secret algorithm
CN103716157B (en) Grouped multiple-key encryption method and grouped multiple-key encryption device
CN112511304A (en) Power data privacy communication method based on hybrid encryption algorithm
US8892881B2 (en) Split key secure access system
CN104320257A (en) Electronic record validation method and device
CN108023724A (en) Data transmission method and device
CN102664740B (en) Remote-authorization-based bidding document encryption and decryption method
CN110061957A (en) Data encryption, decryption method, user terminal, server and data management system
CN109005027B (en) Random data encryption and decryption method, device and system
CN103634100B (en) Encryption method and device
CN106789053A (en) Random ciphertext generation method and system, decryption method and system
CN108090370A (en) Instant messaging encryption method and system based on index
CN104967693A (en) Document similarity calculation method facing cloud storage based on fully homomorphic password technology
CN113312608A (en) Electric power metering terminal identity authentication method and system based on timestamp
CN102811124B (en) Based on the system Authentication method of two card trigram technology
CN106453362A (en) Data transmission method and apparatus of vehicle-mounted device
CN103500294B (en) A kind of file encryption-decryption method and device
CN107070874A (en) System, encryption method and the device of broadcast communication, decryption method and device
CN106850597A (en) A kind of distributed cryptographic method and system
CN105915345B (en) The implementation method of licensed-type production and restructuring in a kind of family gateway equipment production test
CN104735094A (en) Information separation based data security transmission system and method
CN111130755A (en) Matrix double encryption method based on signature
CN103634113B (en) Encryption and decryption method and device with user/equipment identity authentication
CN109633693A (en) The anti-fraud schemes of Beidou II navigation system based on domestic password

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20170208