CN104954362B - The encryption and decryption approaches and its device of sequence number - Google Patents

The encryption and decryption approaches and its device of sequence number Download PDF

Info

Publication number
CN104954362B
CN104954362B CN201510204904.0A CN201510204904A CN104954362B CN 104954362 B CN104954362 B CN 104954362B CN 201510204904 A CN201510204904 A CN 201510204904A CN 104954362 B CN104954362 B CN 104954362B
Authority
CN
China
Prior art keywords
sequence number
data
encryption
buffer
position coordinates
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.)
Expired - Fee Related
Application number
CN201510204904.0A
Other languages
Chinese (zh)
Other versions
CN104954362A (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.)
Shenzhen Meibeike Technology Co Ltd
Original Assignee
Shenzhen Meibeike 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 Shenzhen Meibeike Technology Co Ltd filed Critical Shenzhen Meibeike Technology Co Ltd
Priority to CN201510204904.0A priority Critical patent/CN104954362B/en
Publication of CN104954362A publication Critical patent/CN104954362A/en
Application granted granted Critical
Publication of CN104954362B publication Critical patent/CN104954362B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • H04L63/0457Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply dynamic encryption, e.g. stream encryption
    • 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/06Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators

Abstract

The embodiment of the present invention provides a kind of encryption and decryption approaches of sequence number, and the sequence number after sequence number is resequenced according to position coordinates is encrypted the sequence number after the rearrangement further according to AET decipherment algorithms, obtains encryption data;The encryption data is decrypted according to AET decipherment algorithms, the initial sequence of sequence number is restored further according to position coordinates, and the sequence number of acquisition is sent to acquisition side;A kind of encryption and decryption devices of sequence number are also provided, quick encrypting and decrypting process can be realized through the invention, data need progress position adjustment after decrypting again to be only correct data, even if being cracked AET encryptions, it is also required to know the correct restoring data of the decryption for cracking position ability, actual data length is not the data length of plaintext, has been added to position-order list and random number, is had certain effect to interference data deciphering.

Description

The encryption and decryption approaches and its device of sequence number
Technical field
The invention belongs to electronic product secrecy technology fields, and in particular to a kind of encryption and decryption approaches of sequence number and its Device.
Background technology
In present electronic product society, a product appearance will soon be due to oneself by mountain vallage, a lot of reasons Product confidentiality is made inadequate, and be much because do not do encipherment protection to some identification informations of the product of oneself, such as Identifier, sequence number etc..Although some products have done encryption chip encryption, but encryption chip encryption needs higher cost, And Encryption Algorithm oneself is unknowable, relies on very much encryption chip manufacturer.
Invention content
In view of this, the main purpose of the present invention is to provide a kind of encryption and decryption approaches of sequence number and its devices.
In order to achieve the above objectives, the technical proposal of the invention is realized in this way:
The embodiment of the present invention provides a kind of encryption and decryption approaches of sequence number, and this method is:According to position coordinates by sequence Row number resequenced after sequence number, further according to AET decipherment algorithms to the sequence number after the rearrangement It is encrypted, obtains encryption data;The encryption data is decrypted according to AET decipherment algorithms, also further according to position coordinates The initial sequence of former sequence number, and the sequence number of acquisition is sent to acquisition side.
In said program, it is described sequence number is resequenced according to position coordinates after sequence number, tool Body is:Define encrypted privately owned 16 key;The length N for the array for wanting encryption data is obtained, definition encrypted data length is 2N; N number of unduplicated random number is generated at random, at random ranging from 2n;Define arrays buffer, by it is described generate at random it is N number of random Number is stored in the position of 2n of buffer successively respectively, and using the numerical value of the positions 2n of buffer as position coordinates, needs are added Close sequence number is filled up in the position of 2n+1 according to the data of the position coordinates and resequences, wherein 0<=n<= N。
In said program, described is decrypted the encryption data according to AET decipherment algorithms, further according to position coordinates The initial sequence of sequence number is restored, and the sequence number of acquisition is sent to acquisition side, specially:Obtain 16 decryption key;It reads Going bail for, there are the encryption datas in memory space, and are stored in array buffer;According to AET decipherment algorithms to buffer numbers According to being decrypted, and it is stored in buffer;It is coordinate according to the numerical value of the positions 2n of the buffer, respectively 2n+1's Data permutation generates Snbuffer data, returns to acquisition side, wherein 0<=n<=N.
The embodiment of the present invention provides a kind of encryption and decryption devices of sequence number, which includes encryption unit, decryption list Member;
The encryption unit, the sequence number after being used to that sequence number to be resequenced according to position coordinates, The sequence number after the rearrangement is encrypted further according to AET decipherment algorithms, obtains encryption data;
The decryption unit, for the encryption data to be decrypted according to AET decipherment algorithms, further according to position coordinates The initial sequence of sequence number is restored, and the sequence number of acquisition is sent to acquisition side.
In said program, the encryption unit is specifically used for defining encrypted privately owned 16 key;Encryption data is wanted in acquisition Array length N, definition encrypted data length be 2N;:N number of unduplicated random number is generated at random, at random ranging from 2n;It is fixed The N number of random number generated at random is stored in the position of 2n of buffer by adopted array buffer successively respectively, with The numerical value of the positions 2n of buffer is position coordinates, is filled up to according to the data of the position coordinates encrypted sequence number is needed It resequences in the position of 2n+1, wherein 0<=n<=N.
In said program, the decryption unit is specifically used for obtaining 16 decryption key;Reading and saving is in memory space Encryption data, and be stored in array buffer;Buffer data are decrypted according to AET decipherment algorithms, and are protected There are in buffer;It is coordinate according to the numerical value of the positions 2n of the buffer, the data permutation of 2n+1 is generated respectively Snbuffer data, return to acquisition side, wherein 0<=n<=N.
Compared with prior art, beneficial effects of the present invention:
The embodiment of the present invention provides a kind of encryption and decryption approaches of sequence number, is arranged sequence number again according to position coordinates Sequence resequenced after sequence number, the sequence number after the rearrangement is encrypted further according to AET decipherment algorithms, is obtained Obtain encryption data;The encryption data is decrypted according to AET decipherment algorithms, the first of sequence number is restored further according to position coordinates Begin to sort, and the sequence number of acquisition is sent to acquisition side;A kind of encryption and decryption devices of sequence number are also provided, this is passed through Invention can realize that quick encrypting and decrypting process, data need progress position adjustment after decrypting again to be only correct data, just Calculation is cracked AET encryptions, it is also desirable to know the correct restoring data of decryption ability for cracking position, actual data length is not It is the data length of plaintext, has been added to position-order list and random number, has certain effect to interference data deciphering.
Description of the drawings
Fig. 1 is a kind of flow chart of the encryption and decryption approaches of sequence number provided in an embodiment of the present invention;
Fig. 2 is encrypted flow diagram in the present invention;
Fig. 3 is the flow diagram decrypted in the present invention.
Specific implementation mode
The following describes the present invention in detail with reference to the accompanying drawings and specific embodiments.
The embodiment of the present invention provides a kind of encryption and decryption approaches of sequence number, as shown in Figure 1, this method passes through following step It is rapid to realize:
Step 101:Sequence number after sequence number is resequenced according to position coordinates, further according to AET The sequence number after the rearrangement is encrypted in decipherment algorithm, obtains encryption data.
Specifically, as shown in Fig. 2, defining encrypted privately owned 16 key;The length N for the array for wanting encryption data is obtained, it is fixed Adopted encrypted data length is 2N;N number of unduplicated random number is generated at random, at random ranging from 2n;Define arrays buffer, by institute It states the N number of random number generated at random to be stored in successively in the position of 2n of buffer respectively, with the numerical value of the positions 2n of buffer For position coordinates, carried out again needing encrypted sequence number to be filled up in the position of 2n+1 according to the data of the position coordinates Sequence obtains buffer data, wherein 0<=n<=N;According to AET decipherment algorithms, the buffer data of the acquisition are carried out 32 wheel data encryptions, obtain encryption data.
The numbers such as identifier, sequence number of the Serial No. for unique identification product.
Step 102:The encryption data is decrypted according to AET decipherment algorithms, sequence is restored further according to position coordinates Number initial sequence, and the sequence number of acquisition is sent to acquisition side.
Specifically, as shown in figure 3, obtaining 16 decryption key;Encryption data of the reading and saving in memory space, and It is stored in array buffer;Buffer data are decrypted according to AET decipherment algorithms, and are stored in buffer;Root Numerical value according to the positions 2n of the buffer is coordinate, and the data permutation of 2n+1 is generated Snbuffer data respectively, is returned Back to acquisition side, wherein 0<=n<=N.
The embodiment of the present invention also provides a kind of encryption and decryption devices of sequence number, which includes encryption unit, decryption Unit;
The encryption unit, the sequence number after being used to that sequence number to be resequenced according to position coordinates, The sequence number after the rearrangement is encrypted further according to AET decipherment algorithms, obtains encryption data;
The decryption unit, for the encryption data to be decrypted according to AET decipherment algorithms, further according to position coordinates The initial sequence of sequence number is restored, and the sequence number of acquisition is sent to acquisition side.
The encryption unit is specifically used for defining encrypted privately owned 16 key;Obtain the length for the array for wanting encryption data N, definition encrypted data length are 2N;:N number of unduplicated random number is generated at random, at random ranging from 2n;It defines arrays The N number of random number generated at random is stored in the position of 2n of buffer, with the 2n of buffer by buffer successively respectively The numerical value of position is position coordinates, the encrypted sequence number of needs is filled up to according to the data of the position coordinates position of 2n+1 In resequence, wherein 0<=n<=N.
The decryption unit is specifically used for obtaining 16 decryption key;Encryption data of the reading and saving in memory space, And it is stored in array buffer;Buffer data are decrypted according to AET decipherment algorithms, and are stored in buffer In;It is coordinate according to the numerical value of the positions 2n of the buffer, the data permutation of 2n+1 is generated Snbuffer numbers respectively According to returning to acquisition side, wherein 0<=n<=N.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program Product.Therefore, the shape of hardware embodiment, software implementation or embodiment combining software and hardware aspects can be used in the present invention Formula.Moreover, the present invention can be used can use storage in the computer that one or more wherein includes computer usable program code The form for the computer program product implemented on medium (including but not limited to magnetic disk storage and optical memory etc.).
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that can be realized by computer program instructions every first-class in flowchart and/or the block diagram The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided Instruct the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine so that the instruction executed by computer or the processor of other programmable data processing devices is generated for real The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.

Claims (4)

1. a kind of encryption and decryption approaches of sequence number, which is characterized in that this method is:According to position coordinates by sequence number again The sequence number to sort after being resequenced, is encrypted the sequence number after the rearrangement further according to AES encryption algorithm, Obtain encryption data;The encryption data is decrypted according to AES decipherment algorithms, sequence number is restored further according to position coordinates Initial sequence, and the sequence number of acquisition is sent to acquisition side;
It is described sequence number is resequenced according to position coordinates after sequence number, specially:It defines encrypted Privately owned 16 key;The length N for the array for wanting encryption data is obtained, definition encrypted data length is 2N;It generates and N number of does not weigh at random Multiple random number, at random ranging from N;Define arrays buffer, and the N number of random number generated at random is stored in successively respectively In the position of the 2n of buffer, using the numerical value of the positions 2n of buffer as position coordinates, the encrypted sequence number of needs according to institute The data for stating position coordinates are filled up in the position of 2n+1 and resequence, wherein n=0,1,2,3.....N-1,0<=N.
2. the encryption and decryption approaches of sequence number according to claim 1, which is characterized in that described decrypted according to AES is calculated The encryption data is decrypted in method, the initial sequence of sequence number is restored further according to position coordinates, and by the sequence of acquisition Number it is sent to acquisition side, specially:Obtain 16 decryption key;Encryption data of the reading and saving in memory space, and preserve In array buffer;Buffer data are decrypted according to AES decipherment algorithms, and are stored in buffer;According to institute The numerical value for stating the positions 2n of buffer is coordinate, and the data permutation of 2n+1 is generated SNbuffer data respectively, is returned to Acquisition side, wherein 0<=N.
3. a kind of encryption and decryption devices of sequence number, which is characterized in that the device includes encryption unit, decryption unit;
The encryption unit, for the sequence number after sequence number is resequenced according to position coordinates, then root The sequence number after the rearrangement is encrypted according to AES encryption algorithm, obtains encryption data;
The decryption unit is restored for the encryption data to be decrypted according to AES decipherment algorithms further according to position coordinates The initial sequence of sequence number, and the sequence number of acquisition is sent to acquisition side;
The encryption unit is specifically used for defining encrypted privately owned 16 key;The length N for the array for wanting encryption data is obtained, it is fixed Adopted encrypted data length is 2N;N number of unduplicated random number is generated at random, at random ranging from N;Define arrays buffer, by institute It states the N number of random number generated at random to be stored in successively in the position of 2n of buffer respectively, with the numerical value of the positions 2n of buffer For position coordinates, carried out again needing encrypted sequence number to be filled up in the position of 2n+1 according to the data of the position coordinates Sequence, wherein n=0,1,2,3.....N-1,0<=N.
4. the encryption and decryption devices of sequence number according to claim 3, it is characterised in that:The decryption unit, specifically For obtaining 16 decryption key;Encryption data of the reading and saving in memory space, and be stored in array buffer;Root Buffer data are decrypted according to AES decipherment algorithms, and are stored in buffer;According to the positions 2n of the buffer Numerical value is coordinate, and the data permutation of 2n+1 is generated SNbuffer data respectively, returns to acquisition side, wherein 0<=N.
CN201510204904.0A 2015-04-27 2015-04-27 The encryption and decryption approaches and its device of sequence number Expired - Fee Related CN104954362B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510204904.0A CN104954362B (en) 2015-04-27 2015-04-27 The encryption and decryption approaches and its device of sequence number

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510204904.0A CN104954362B (en) 2015-04-27 2015-04-27 The encryption and decryption approaches and its device of sequence number

Publications (2)

Publication Number Publication Date
CN104954362A CN104954362A (en) 2015-09-30
CN104954362B true CN104954362B (en) 2018-08-14

Family

ID=54168716

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510204904.0A Expired - Fee Related CN104954362B (en) 2015-04-27 2015-04-27 The encryption and decryption approaches and its device of sequence number

Country Status (1)

Country Link
CN (1) CN104954362B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107239214A (en) * 2016-03-28 2017-10-10 北京神州泰岳软件股份有限公司 The display methods and device of button in soft keyboard
CN106326761B (en) * 2016-09-05 2019-04-30 天脉聚源(北京)传媒科技有限公司 A kind of encryption method and device of SN code
CN107396351A (en) * 2017-08-24 2017-11-24 四川长虹电器股份有限公司 A kind of encipher-decipher method for strengthening zigbee network safety
CN109474574B (en) * 2018-09-07 2021-06-29 创新先进技术有限公司 Data encryption method and device and data decryption method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102647272A (en) * 2012-05-02 2012-08-22 西安电子科技大学 Expansion system and method for 256-bit keys
CN104331645A (en) * 2014-11-24 2015-02-04 中国航空工业集团公司洛阳电光设备研究所 Encryption method of test system
CN104410602A (en) * 2014-10-11 2015-03-11 深圳市家富通汇科技有限公司 Method for realizing random password keyboard based on secure element
CN104468098A (en) * 2014-11-21 2015-03-25 浪潮(北京)电子信息产业有限公司 Method and device for generating serial number

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7325133B2 (en) * 2003-10-07 2008-01-29 Koolspan, Inc. Mass subscriber management
TWI354911B (en) * 2007-04-04 2011-12-21 Inventec Besta Co Ltd Digital data protection system using electric key
CN102473261A (en) * 2009-07-06 2012-05-23 瑞典爱立信有限公司 Voucher access code creation and management
CN101895390B (en) * 2010-02-05 2012-11-14 上海天臣防伪技术股份有限公司 Method, device and system for encryption and decryption
CN102176711A (en) * 2011-01-04 2011-09-07 深圳市新超亮特种显示设备有限公司 System and method for information security protection of advertisement kiosk
KR101303278B1 (en) * 2011-12-14 2013-09-04 한국전자통신연구원 FPGA apparatus and method for protecting bitstream

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102647272A (en) * 2012-05-02 2012-08-22 西安电子科技大学 Expansion system and method for 256-bit keys
CN104410602A (en) * 2014-10-11 2015-03-11 深圳市家富通汇科技有限公司 Method for realizing random password keyboard based on secure element
CN104468098A (en) * 2014-11-21 2015-03-25 浪潮(北京)电子信息产业有限公司 Method and device for generating serial number
CN104331645A (en) * 2014-11-24 2015-02-04 中国航空工业集团公司洛阳电光设备研究所 Encryption method of test system

Also Published As

Publication number Publication date
CN104954362A (en) 2015-09-30

Similar Documents

Publication Publication Date Title
US10489604B2 (en) Searchable encryption processing system and searchable encryption processing method
CN102546181B (en) Cloud storage encrypting and deciphering method based on secret key pool
CN101692636B (en) Data element and coordinate algorithm-based method and device for encrypting mixed data
US20060023875A1 (en) Enhanced stream cipher combining function
CN109040090A (en) A kind of data ciphering method and device
CN104954362B (en) The encryption and decryption approaches and its device of sequence number
CN105450620A (en) Information processing method and device
CN108449172A (en) Input/output data is encrypted
JP2010140473A5 (en)
JP6575532B2 (en) Encryption device, decryption device, encryption processing system, encryption method, decryption method, encryption program, and decryption program
US20150195089A1 (en) Data scramble device, security device, security system, and data scramble method
JP2012203182A5 (en)
CN103916248A (en) Fully homomorphic encryption public key space compression method
US10148434B2 (en) Random number generating device, cipher processing device, storage device, and information processing system
CN105099653A (en) Distributed data processing method, device and system
KR20180110550A (en) Method and apparatus for white-box cryptography for protecting against side channel analysis
CN102833077A (en) Encryption and decryption methods of remote card-issuing data transmission of financial IC (Integrated Circuit) card and financial social security IC card
CN104883257B (en) A kind of big data encryption method
JP2016525836A5 (en)
CN103312496A (en) Data encryption and decryption method and device as well as data encryption and decryption system
CN102790672A (en) Self-adapting data encrypting and decrypting method
CN104866738A (en) Program code protection method and device
WO2016204846A3 (en) System and method for an enhanced xor cipher through extensions
CN109255225A (en) Hard disc data security control apparatus based on dual-identity authentication
CN111314052B (en) Data encryption and decryption method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
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: 20180814