CN106339642A - Encryption method, device and terminal - Google Patents

Encryption method, device and terminal Download PDF

Info

Publication number
CN106339642A
CN106339642A CN201510400021.7A CN201510400021A CN106339642A CN 106339642 A CN106339642 A CN 106339642A CN 201510400021 A CN201510400021 A CN 201510400021A CN 106339642 A CN106339642 A CN 106339642A
Authority
CN
China
Prior art keywords
encryption
terminal
hardware device
random number
true random
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
CN201510400021.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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201510400021.7A priority Critical patent/CN106339642A/en
Priority to PCT/CN2015/089649 priority patent/WO2016131251A1/en
Publication of CN106339642A publication Critical patent/CN106339642A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F7/00Methods or arrangements for processing data by operating upon the order or content of the data handled
    • G06F7/58Random or pseudo-random number generators
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Computational Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Telephonic Communication Services (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

The invention provides an encryption method, device and terminal and relates to the technical field of communication. The encryption method comprises following steps: obtaining at least one parameter collected by a terminal hardware device for encryption; processing the parameter to obtain a true random number for encryption; performing encryption on a terminal target object according to the true random number. The encryption method provided by the invention adopts the true random number to encrypt and enhances the encryption security level.

Description

A kind of encryption method, device and terminal
Technical field
The present invention relates to communication technical field, more particularly, to a kind of encryption method, device and terminal.
Background technology
In terminal unit, safety encryption is a theme of nearly 2 years, but effective scheme is very little. In existing secure encryption scheme, the overwhelming majority is all software algorithm scheme, does algorithm using pseudo random number and adds Close, but use the algorithm for encryption of pseudo random number, safety is poor, is easy to stolen cracking.
Content of the invention
Embodiment of the present invention technical problem to be solved is, there is provided a kind of encryption method, device and end End, is encrypted using true random number, improves cryptographic security.
In order to solve above-mentioned technical problem, the present invention adopts the following technical scheme that
One side according to the embodiment of the present invention provides a kind of encryption method, comprising:
At least one obtaining the hardware device collection of terminal is used for the parameter of encryption;
Described parameter is processed, obtains the true random number for encryption;
According to described true random number, the destination object of terminal is encrypted.
Further, obtain the step bag of at least one parameter being used for encrypting of the hardware device collection of terminal Include:
At least one obtaining under the terminal current state of hardware device collection of described terminal is used for encryption Analogue signal.
Further, obtain at least one use under the terminal current state of hardware device collection of described terminal Step in the analogue signal of encryption includes:
Obtain the first analogue signal under the terminal current state of hardware device collection of described terminal.
Further, obtain the first simulation letter under the terminal current state of hardware device collection of described terminal Number step include:
Analog digital conversion is carried out to described first analogue signal, obtains the first digital signal;
After randomly selecting all or part of digital signal random combine from described first digital signal, make It is the true random number for encryption.
Further, obtain at least one use under the terminal current state of hardware device collection of described terminal Step in the analogue signal of encryption includes:
Obtain the multiple simulations for encryption under the terminal current state of hardware device collection of described terminal Signal.
Further, described parameter is processed, obtains including for the step of the true random number of encryption:
Respectively analog digital conversion is carried out to the plurality of analogue signal for encryption, obtains multiple digital signals;
From the plurality of digital signal, after difference selected part or whole digital signals random combine, As the true random number for encryption.
Further, described hardware device includes: sensor.
According to the embodiment of the present invention another aspect provides a kind of encryption device, comprising:
Acquisition module, for obtain terminal hardware device gather at least one be used for encryption parameter;
Processing module, for processing to described parameter, obtains the true random number for encryption;
Encrypting module, for being encrypted to the destination object of terminal according to described true random number.
According to the embodiment of the present invention another aspect provides a kind of terminal, comprising: gather at least one use In the hardware device of the parameter of encryption, also include described encryption device.
Further, described hardware device includes: sensor.
Further, the quantity of described hardware device at least one.
The invention has the beneficial effects as follows:
Encryption method provided in an embodiment of the present invention, gathers the ginseng for encryption by the hardware device in terminal Number, the parameter being used for encrypting is changed into true random number destination object is encrypted, with traditional using pseudo- The method that random number is encrypted is compared, and encryption method provided in an embodiment of the present invention relies on hardware device, And randomness is big, is difficult to be cracked, improves the safety of encryption.
Brief description
Fig. 1 represents one of flow chart of encryption method provided in an embodiment of the present invention;
Fig. 2 represents the two of the flow chart of encryption method provided in an embodiment of the present invention;
Fig. 3 represents one of true random-number generating method schematic diagram provided in an embodiment of the present invention;
Fig. 4 represents the three of the flow chart of encryption method provided in an embodiment of the present invention;
Fig. 5 represents the two of true random-number generating method schematic diagram provided in an embodiment of the present invention;
Fig. 6 represents the three of true random-number generating method schematic diagram provided in an embodiment of the present invention;
Fig. 7 represents the software flow pattern of encryption method provided in an embodiment of the present invention;
Fig. 8 represents the block diagram of encryption device provided in an embodiment of the present invention.
Specific embodiment
It is more fully described the exemplary embodiment of the present invention below with reference to accompanying drawings.Although showing in accompanying drawing The exemplary embodiment of the present invention it being understood, however, that may be realized in various forms the present invention and should be by Embodiments set forth here is limited.On the contrary, these embodiments are provided to be able to be best understood from this Invention, and complete for the scope of the present invention can be conveyed to those skilled in the art.
One side according to the embodiment of the present invention provides a kind of encryption method, as shown in figure 1, described add Decryption method includes:
S101, obtain terminal hardware device collection at least one be used for encryption parameter.
S102, described parameter is processed, obtain the true random number for encryption.
S103, according to described true random number, the destination object of terminal is encrypted.
In order to ensure data safety it is often necessary to be encrypted to data, in case being stolen by other people.And with The progress of modern science and technology, the means of decryption are also more and more consummate, therefore, the safety of lifting encryption Property is also increasingly taken seriously.Encryption method provided in an embodiment of the present invention, relies on the hardware device in terminal Gather the parameter for encryption, and the parameter being used for encrypting is changed into true random number, destination object is carried out Encryption, is encrypted using true random number, and randomness is big, is difficult to be cracked, improves the safety of encryption.
Wherein, the parameter for encryption be terminal the actual life that can collect of hardware device in its result The corresponding parameter of uncertain random event.And destination object can be the picture in terminal, file, logical Words record etc..The embodiment of the present invention can be triggered by Choice encryption option on the edit page of terminal provides Encryption method be encrypted.And in embodiments of the present invention, when triggering is encrypted action to destination object Afterwards, need to start which hardware device goes acquisition parameter, can be pre-set as needed.
Preferably, described hardware device includes: sensor, the quantity of described sensor at least one.Pass Sensor, as a kind of detection means, can experience measured information, and can be by the information experienced, by one Set pattern rule is for conversion into the information output of the signal of telecommunication or other desired forms, with meet the transmission of information, process, Storage, display, record and control etc. require.Sound, temperature, acceleration can be gathered by using sensor The many kinds of parameters such as degree, displacement, facilitate data acquisition.Further, since sensor is almost in each terminal Existing equipment, does not need extra high hardware cost using the parameter needed for sensor acquisition, saves Economic resources.
Further, step s101 includes: obtains the current shape of terminal of the hardware device collection of described terminal At least one under state is used for the analogue signal of encryption.
Due to the various physical quantitys in actual production life, the such as noise of mike collection, camera is photographed Pressure that sound under image, recorder record, Shop floor control room are recorded, rotating speed, humidity etc. are all moulds Intend signal, therefore, the signal without analog digital conversion being collected by hardware device is also all analogue signal.
In embodiments of the present invention, both can be using a mould under the terminal current state of hardware device collection Intend signal to be encrypted it is also possible to utilize multiple analogue signals for encryption to be encrypted.It implements Mode is as described below:
1) as shown in Fig. 2 being entered using an analogue signal under the terminal current state of hardware device collection The method of row encryption is:
The first analogue signal under s201, the terminal current state of hardware device collection of the described terminal of acquisition.
S202, analog digital conversion is carried out to described first analogue signal, obtain the first digital signal.
S203, from described first digital signal, randomly select all or part of digital signal random combine Afterwards, as the true random number for encryption.
After obtaining the first analogue signal, need to carry out analog digital conversion, the first analogue signal is converted into numeral Signal, the binary number being represented with 0 and 1, finally from the digital signal after conversion, randomly select part Or whole digital signals, and after carrying out random combine, as the true random number for encryption.
For a further understanding of said method provided in an embodiment of the present invention, below to gather ring using mike Border random noise is encrypted to destination object and illustrates for lifting:
Mike, as the sensor of a sound, can gather environment random noise, then terminal is according to wheat The environment random noise of gram elegance collection, produces true random number.
Specifically, as shown in 3 figures, first the environment random noise signal for analogue signal is gathered by mike, Then analog digital conversion is carried out to the environment random noise signal collecting, obtain corresponding digital signal, and will This digital signal switchs to dynamic, instant binary code stream.In the binary code stream switching to, can be random Choose several sections of binary code streams, after random combine, as the true random number for encryption, in Fig. 3 A part is schemed, and the hop count wherein randomly selecting can pre-set according to actual needs, one section of binary system of selection The number of the binary number in code stream also can pre-set;Also multiple points can be randomly selected from binary code stream Scattered binary number, after random combine, as the true random number for encryption, the b portion in such as Fig. 3 Component, wherein, binary number of selection can pre-set according to actual needs;It is alternatively two methods It is applied in combination.
It should be noted that said method is for a further understanding of method provided in an embodiment of the present invention, but not Illustrate the present invention provide method be only limitted to this, every attainable, can be used from binary code stream All within the scope of the present invention in the method for the true random number of encryption.
2) as shown in figure 4, utilize hardware device collection terminal current state under multiple for encryption The method that analogue signal is encrypted is:
S401, obtain described terminal hardware device collection terminal current state under multiple for encryption Analogue signal.
S402, to the plurality of for encryption analogue signal carry out analog digital conversion respectively, obtain multiple numerals Signal;
S403, from the plurality of digital signal, respectively selected part or whole digital signals random group After conjunction, as the true random number for encryption.
The method that multiple analogue signals for encryption are encrypted is utilized to carry out with using an analogue signal Encryption method be similar to, also in obtain multiple for encryption analogue signals after, carry out analog digital conversion, Multiple analogue signals for encryption are converted into multiple digital signals, then respectively from multiple digital signals Selected part or whole digital signals, and after random combine, as the true random number for encryption.
For a further understanding of said method provided in an embodiment of the present invention, below to gather ring using mike Border random noise and the uncertain acceleration of accelerometer acquisition terminal are encrypted to destination object as lifting Illustrate:
Wherein, the acceleration parameter that accelerometer gathers is converted into the process of binary code stream with by mike The process that the environment random noise of collection is converted into binary code stream is similar to, and is not discussed here.As figure Shown in 5 and Fig. 6, when terminal is corresponded to the binary system that environment random noise and acceleration parameter switch to respectively During code stream, several sections of binary code streams can be randomly selected respectively in two groups of binary code streams, in random combine Afterwards, as the true random number for encryption.The hop count wherein randomly selecting can pre-set according to actual needs, The number of the binary number in the one section of binary code stream chosen also can pre-set;Can also select at random respectively Take multiple scattered binary numbers, after random combine, as encryption true random number, wherein, with The number of the binary number that machine is chosen can pre-set.Both approaches can be optionally combined, increase encryption with Machine, difficulty is decoded in lifting, improves cryptographic security.
In embodiments of the present invention, a hardware device is either adopted to gather multiple letters of the simulation for encryption Number, or multiple analogue signals for encryption of multiple hardware device collection, all defer to s401~s403 Described method.
It should be noted that said method is for a further understanding of method provided in an embodiment of the present invention, but not Illustrate the present invention provide method be only limitted to this, every attainable, can be used from binary code stream All within the scope of the present invention in the method for the true random number of encryption.
For becoming apparent from understanding above-mentioned technical method, the software flow embodiments providing encryption method shows Being intended to, as shown in fig. 7, Encryption Options are chosen by the edit page in terminal trigger encryption acts, opening The hardware device for gathering desired parameters of terminal, if hardware device is normally-open, according to the method described above, Desired parameters are processed, obtains being encrypted for the true random number of encryption, if hardware device cannot be just Normally open, then judge the hardware device fault of terminal, do time one-level algorithm for encryption, wherein secondary one-level algorithm adds Close is to be encrypted using the existing encryption technology in terminal, is such as encrypted using pseudo random number.
Another aspect provides a kind of encryption device according to the embodiment of the present invention, as shown in figure 8, described Method includes:
Acquisition module 801, for obtain terminal hardware device gather at least one be used for encryption parameter;
Processing module 802, for processing to described parameter, obtains the true random number for encryption;
Encrypting module 803, for being encrypted to the destination object of terminal according to described true random number.
Further, described acquisition module 801 includes: first acquisition unit, for obtaining described terminal At least one under the terminal current state of hardware device collection is used for the analogue signal of encryption.
Further, described first acquisition unit is specifically for obtaining the end of the hardware device collection of described terminal The first analogue signal under the current state of end.
Further, described processing module 802 includes:
First converting unit, for carrying out analog digital conversion to described first analogue signal, obtains the first numeral letter Number.
First signal generating unit, for randomly selecting all or part of numeral letter from described first digital signal Number and random combine after, as encryption true random number.
Further, described first acquisition unit is also particularly useful for the hardware device collection obtaining described terminal Multiple analogue signals for encryption under terminal current state.
Further, described processing module 802 also includes:
Second converting unit, for respectively analog digital conversion is carried out to the plurality of analogue signal for encryption, Obtain multiple digital signals.
Second signal generating unit, for, from the plurality of digital signal, distinguishing selected part or whole numerals After signal random combine, as the true random number for encryption.
Further, described hardware device includes: sensor.
It should be noted that this encryption device is device corresponding with above-mentioned encryption method, said method is implemented In example, all implementations, all be applied to the embodiment of this device, also can reach identical technique effect.
According to the embodiment of the present invention another aspect provides a kind of terminal, comprising: gather at least one use In the hardware device of the parameter of encryption, also include the encryption device as described in power is upper.
Further, described hardware device includes: sensor.
Further, the quantity of described hardware device at least one.
It should be noted that this terminal is to implement the terminal of above-mentioned encryption method.
Above-described is the preferred embodiment of the present invention it should be pointed out that ordinary people for the art For member, some improvements and modifications can also be made under the premise of without departing from principle of the present invention, these Improvements and modifications are also within the scope of the present invention.

Claims (11)

1. a kind of encryption method is it is characterised in that include:
At least one obtaining the hardware device collection of terminal is used for the parameter of encryption;
Described parameter is processed, obtains the true random number for encryption;
According to described true random number, the destination object of terminal is encrypted.
2. encryption method as claimed in claim 1 is it is characterised in that the hardware device obtaining terminal is adopted The step that at least one of collection is used for the parameter of encryption includes:
At least one obtaining under the terminal current state of hardware device collection of described terminal is used for encryption Analogue signal.
3. encryption method as claimed in claim 2 is it is characterised in that the hardware obtaining described terminal sets The step of at least one analogue signal being used for encryption under the terminal current state of standby collection includes:
Obtain the first analogue signal under the terminal current state of hardware device collection of described terminal.
4. encryption method as claimed in claim 3 is it is characterised in that process to described parameter, Obtain including for the step of the true random number of encryption:
Analog digital conversion is carried out to described first analogue signal, obtains the first digital signal;
After randomly selecting all or part of digital signal random combine from described first digital signal, make It is the true random number for encryption.
5. encryption method as claimed in claim 2 is it is characterised in that the hardware obtaining described terminal sets The step of at least one analogue signal being used for encryption under the terminal current state of standby collection includes:
Obtain the multiple simulations for encryption under the terminal current state of hardware device collection of described terminal Signal.
6. encryption method as claimed in claim 5 is it is characterised in that process to described parameter, Obtain including for the step of the true random number of encryption:
Respectively analog digital conversion is carried out to the plurality of analogue signal for encryption, obtains multiple digital signals;
From the plurality of digital signal, after difference selected part or whole digital signals random combine, As the true random number for encryption.
7. the encryption method as described in any one of claim 1-6 is it is characterised in that described hardware device bag Include: sensor.
8. a kind of encryption device is it is characterised in that include:
Acquisition module, for obtain terminal hardware device gather at least one be used for encryption parameter;
Processing module, for processing to described parameter, obtains the true random number for encryption;
Encrypting module, for being encrypted to the destination object of terminal according to described true random number.
9. a kind of terminal, comprising: gather at least one for encryption parameter hardware device, its feature It is, also include encryption device as claimed in claim 8.
10. terminal as claimed in claim 9 is it is characterised in that described hardware device includes: sensor.
11. terminals as claimed in claim 9 are it is characterised in that the quantity of described hardware device is at least One.
CN201510400021.7A 2015-07-09 2015-07-09 Encryption method, device and terminal Pending CN106339642A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510400021.7A CN106339642A (en) 2015-07-09 2015-07-09 Encryption method, device and terminal
PCT/CN2015/089649 WO2016131251A1 (en) 2015-07-09 2015-09-15 Encryption method, device, and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510400021.7A CN106339642A (en) 2015-07-09 2015-07-09 Encryption method, device and terminal

Publications (1)

Publication Number Publication Date
CN106339642A true CN106339642A (en) 2017-01-18

Family

ID=56688649

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510400021.7A Pending CN106339642A (en) 2015-07-09 2015-07-09 Encryption method, device and terminal

Country Status (2)

Country Link
CN (1) CN106339642A (en)
WO (1) WO2016131251A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108479056A (en) * 2018-03-05 2018-09-04 成都看客网络技术有限公司 A kind of blind person with grabbing doll machine on the net
CN109617684A (en) * 2018-12-26 2019-04-12 绍兴心越科技有限公司 Selfreparing Initiative Defense formula true random number generating device and generation method
CN109934024A (en) * 2019-03-12 2019-06-25 深圳忆联信息系统有限公司 A kind of flash data encryption and decryption optimization method and its system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104317552A (en) * 2014-11-06 2015-01-28 昆明通渡电气有限公司 True random number generator and method and true random number secret key encryption system and method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI506540B (en) * 2012-07-19 2015-11-01 Nuvoton Technology Corp Circuit and method for generating random number

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104317552A (en) * 2014-11-06 2015-01-28 昆明通渡电气有限公司 True random number generator and method and true random number secret key encryption system and method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108479056A (en) * 2018-03-05 2018-09-04 成都看客网络技术有限公司 A kind of blind person with grabbing doll machine on the net
CN108479056B (en) * 2018-03-05 2021-12-31 江苏嘉尚环保科技有限公司 Online doll grabbing machine for blind people
CN109617684A (en) * 2018-12-26 2019-04-12 绍兴心越科技有限公司 Selfreparing Initiative Defense formula true random number generating device and generation method
CN109934024A (en) * 2019-03-12 2019-06-25 深圳忆联信息系统有限公司 A kind of flash data encryption and decryption optimization method and its system

Also Published As

Publication number Publication date
WO2016131251A1 (en) 2016-08-25

Similar Documents

Publication Publication Date Title
US9608805B2 (en) Encryption key generation
CN106664555B (en) Network-enabled device provisioning
KR101860461B1 (en) Encryption method and encryption device
CN103731258B (en) Generate the method and apparatus of key
CN102160324B (en) A method for secure communication in a network, a communication device, a network and a computer program therefor
CN104317551A (en) Ultrahigh-safety true random number generation method and ultrahigh-safety true random number generation system
CN106339642A (en) Encryption method, device and terminal
JPWO2010047356A1 (en) Encryption device, key processing device, encryption method, key processing method, program, and key sharing system
CN111079163A (en) Encryption and decryption information system
CN103795529A (en) Wireless sensor network data safety infusion method based secret key vectors
CN107113296A (en) The node of safety communicates to multinode
CN114710353B (en) Risk management and control system based on AIoT intelligent edge gateway
CN107172028B (en) Method and device for sharing field bus data
CN105159557A (en) Generation method of unlocking password, and mobile terminal
CN115766242A (en) Environment-friendly management system based on safety isolation communication
CN105809066B (en) Encrypted data storage method and terminal
CN103853991A (en) Method and device for preventing computer device screen keyboard from being laterally recorded
CN116962067A (en) Information encryption method, device and equipment
CN104298596B (en) Random distribution method and device for test scheme and server
CN204291223U (en) Laboratory supervision and anti-tamper information system
CN105357011A (en) Encryption and decryption methods and systems, and terminal
CN102932634B (en) The encrypting/decrypting method of network video monitor and control system and vision signal thereof, device
CN104967992A (en) Encrypting and decrypting method and device
CN114338007A (en) Data processing method and device, electronic equipment and computer readable storage medium
CN103220140A (en) Encryption and decryption method, encryption and decryption device and electronic equipment

Legal Events

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

Application publication date: 20170118

RJ01 Rejection of invention patent application after publication