CN107977581A - Data processing method, device and computer-readable recording medium - Google Patents

Data processing method, device and computer-readable recording medium Download PDF

Info

Publication number
CN107977581A
CN107977581A CN201711082987.6A CN201711082987A CN107977581A CN 107977581 A CN107977581 A CN 107977581A CN 201711082987 A CN201711082987 A CN 201711082987A CN 107977581 A CN107977581 A CN 107977581A
Authority
CN
China
Prior art keywords
data
former
storage address
stored
expenses
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
CN201711082987.6A
Other languages
Chinese (zh)
Inventor
陈柳章
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Minghua Alliance Technology Co Ltd
Original Assignee
Beijing Minghua Alliance Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Minghua Alliance Technology Co Ltd filed Critical Beijing Minghua Alliance Technology Co Ltd
Priority to CN201711082987.6A priority Critical patent/CN107977581A/en
Publication of CN107977581A publication Critical patent/CN107977581A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/78Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure storage of data

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Storage Device Security (AREA)

Abstract

The invention discloses a kind of data processing method, the data processing method includes:Former data to be stored are handled, generate more one's share of expenses for a joint undertaking data;Multiple and different storage address is configured, wherein, the number of the storage address is no less than the number of the subdata;Every one's share of expenses for a joint undertaking data are stored in different storage address respectively.The invention also discloses a kind of data processing equipment and computer-readable recording medium.The present invention improves the security of data storage.

Description

Data processing method, device and computer-readable recording medium
Technical field
The present invention relates to technical field of data security, more particularly to a kind of data processing method, device and computer-readable Storage medium.
Background technology
With networking, information-based high speed development, problem of data safety becomes increasingly conspicuous.At present, data are encrypted Storage is a kind of common technological means, this improves the security of data storage to a certain extent.However, due to key one As can only by plain text or a fixed key in the form of store;Also, encrypted data are generally also to be entirely stored in accordingly Memory space, once key is broken through by criminal, then data there is great security risk;Therefore, data store Security it is not high.
The content of the invention
It is a primary object of the present invention to propose a kind of data processing method, device and computer-readable recording medium, purport In the not high technical problem of the security for solving data storage in the prior art.
To achieve the above object, the present invention provides a kind of data processing method, and the data processing method includes following step Suddenly:
Former data to be stored are handled, generate more one's share of expenses for a joint undertaking data;
Multiple and different storage address is configured, wherein, the number of the storage address is no less than the number of the subdata;
Every one's share of expenses for a joint undertaking data are stored in different storage address respectively.
Preferably, after the step that every one's share of expenses for a joint undertaking data are stored in different storage address respectively, further include:
When receiving the instruction of former data acquisition, obtain the storage address for being all stored with the subdata, and respectively from All subdatas are obtained in the storage address;
All the subdata composite calulation will be carried out, and generate the former data.
Preferably, described the step of handling, generate more one's share of expenses for a joint undertaking data former data to be stored, includes:
The former data are split into by the more parts of subdatas using Lagrange's interpolation.
Preferably, described the step of handling, generate more one's share of expenses for a joint undertaking data former data to be stored, includes:
According to the former data, multiple random numbers are generated;
The multiple random number and the former data are subjected to XOR operation one by one, obtain operation result;
Using the operation result and multiple random numbers as more one's share of expenses for a joint undertaking data corresponding with the original data.
Preferably, described the step of former data to be stored are subjected to fractionation calculating, generate corresponding more one's share of expenses for a joint undertaking data it Before, further include:
Judge whether the byte length of the former data is less than preset byte length;
Described the step of handling, generate more one's share of expenses for a joint undertaking data former data to be stored, includes:
When the byte length of the former data is less than the preset byte length, the former data are subjected to fractionation meter Calculate, generate the more parts of subdatas.
Preferably, after the step of whether byte length for judging the former data is less than preset byte length, also Including:
When the byte length of the former data is greater than or equal to the preset byte length, the former data processing is given birth to Into more piece data to be split, wherein the byte length of the data to be split is less than the preset byte length;
Fractionation calculating is carried out to data to be split described in every section respectively, to generate the corresponding more one's share of expenses for a joint undertaking numbers of the former data According to.
Preferably, described the step of configuring multiple and different storage address, includes:
Obtain the Universally Unique Identifier that the former data correspond to electronic equipment;
Multiple storage address are obtained according to the Universally Unique Identifier.
Preferably, when the number of the storage address is more than the number of the subdata, it is described respectively will be per one's share of expenses for a joint undertaking number After the step being stored in different storage address, further include:
The storage interference data in the storage address that residue does not store the subdata.
In addition, to achieve the above object, the present invention also proposes a kind of data processing equipment, the data processing equipment bag Include:Memory, processor and the data processor that can be run on the memory and on the processor is stored in, it is described Data processor realizes the step of data processing method described above when being performed by the processor.
In addition, to achieve the above object, the present invention also proposes a kind of computer-readable recording medium, described computer-readable Data processor is stored with storage medium, the data processor realizes data described above when being executed by processor The step of processing method.
Scheme proposed by the present invention, by the way that former data to be stored are split into more one's share of expenses for a joint undertaking data, and configures multiple storages Every one's share of expenses for a joint undertaking data, are stored among different storage address by address respectively, it is achieved thereby that the scattered storage of former data.Compare In the mode that former data are encrypted to global storage, security risk is reduced, this improves the security of data storage.
Brief description of the drawings
Fig. 1 is the structure diagram of the hardware running environment for the electronic equipment that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of data processing method first embodiment of the present invention;
Fig. 3 is the flow diagram of data processing method second embodiment of the present invention;
Fig. 4 is the flow diagram of data processing method 3rd embodiment of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The solution of the embodiment of the present invention is mainly:By the way that former data to be stored are split into more one's share of expenses for a joint undertaking data, and Multiple storage address are configured, every one's share of expenses for a joint undertaking data are stored among different storage address respectively, it is achieved thereby that former data Scattered storage.By the technical solution of the embodiment of the present invention, solve the problems, such as that the security of data storage is not high.
With reference to Fig. 1, Fig. 1 is the structural representation of the hardware running environment for the electronic equipment that the embodiment of the present invention is related to Figure.
In follow-up description, the suffix using such as " module ", " component " or " unit " for representing element is only Be conducive to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can replace Use.
As shown in Figure 1, the electronic equipment can include:Processor 1001 (such as CPU), communication bus 1002, Yong Hujie Mouth 1003, network interface 1004, memory 1005.Wherein, the connection that communication bus 1002 is used for realization between these components is led to Letter.User interface 1003 can include display screen, input unit (such as keyboard).Alternatively, user interface 1003 can also wrap Include wireline interface (such as PS/2 interfaces), the wave point (such as wireless receiver) of standard.Network interface 1004 can include Wireline interface (such as RJ45 interfaces), the wave point (such as Wi-Fi interface) of standard.Memory 1005 can be high-speed RAM Memory or nonvolatile memory (non-volatile memory), such as EEPROM.Alternatively, memory 1005 can also be the storage device independently of aforementioned processor 1001, such as magnetic disk storage.
It will be understood by those skilled in the art that the electronic devices structure shown in Fig. 1 does not form the limit to electronic equipment It is fixed, it can include than illustrating more or fewer components, either combine some components or different components arrangement.
As shown in Figure 1, it can lead to as in a kind of memory 1005 of computer-readable storage medium including operating system, network Believe module, Subscriber Interface Module SIM and data processor.
Processor 1001, memory 1005 in electronic equipment of the present invention can be arranged in data processing equipment, described Data processing equipment calls the data processor stored in memory 1005 by processor 1001, and performs following operation:
Former data to be stored are handled, generate more one's share of expenses for a joint undertaking data;
Multiple and different storage address is configured, wherein, the number of the storage address is no less than the number of the subdata;
Every one's share of expenses for a joint undertaking data are stored in different storage address respectively.
Further, processor 1001 can call the data processor stored in memory 1005, also perform following Operation:
When receiving the instruction of former data acquisition, obtain the storage address for being all stored with the subdata, and respectively from All subdatas are obtained in the storage address;
All the subdata composite calulation will be carried out, and generate the former data.
Further, processor 1001 can call the data processor stored in memory 1005, also perform following Operation:
The former data are split into by the more parts of subdatas using Lagrange's interpolation.
Further, processor 1001 can call the data processor stored in memory 1005, also perform following Operation:
According to the former data, multiple random numbers are generated;
The multiple random number and the former data are subjected to XOR operation one by one, obtain operation result;
Using the operation result and multiple random numbers as more one's share of expenses for a joint undertaking data corresponding with the original data.
Further, processor 1001 can call the data processor stored in memory 1005, also perform following Operation:
Judge whether the byte length of the former data is less than preset byte length;
Described the step of handling, generate more one's share of expenses for a joint undertaking data former data to be stored, includes:
When the byte length of the former data is less than the preset byte length, the former data are subjected to fractionation meter Calculate, generate the more parts of subdatas.
Further, processor 1001 can call the data processor stored in memory 1005, also perform following Operation:
When the byte length of the former data is greater than or equal to the preset byte length, the former data processing is given birth to Into more piece data to be split, wherein the byte length of the data to be split is less than the preset byte length;
Fractionation calculating is carried out to data to be split described in every section respectively, to generate the corresponding more one's share of expenses for a joint undertaking numbers of the former data According to.
Further, processor 1001 can call the data processor stored in memory 1005, also perform following Operation:
Obtain the Universally Unique Identifier that the former data correspond to electronic equipment;
Multiple storage address are obtained according to the Universally Unique Identifier.
Further, processor 1001 can call the data processor stored in memory 1005, also perform following Operation:
The storage interference data in the storage address that residue does not store the subdata.
The present embodiment splits into more one's share of expenses for a joint undertaking data through the above scheme, by former data to be stored, and configures multiple storages Every one's share of expenses for a joint undertaking data, are stored among different storage address by address respectively, it is achieved thereby that the scattered storage of former data.Compare In the mode that former data are encrypted to global storage, security risk is reduced, this improves the security of data storage.
Based on above-mentioned hardware configuration, data processing method embodiment of the present invention is proposed.
With reference to Fig. 2, Fig. 2 is the flow diagram of data processing method first embodiment of the present invention.
In the first embodiment, the data processing method comprises the following steps:
Step S10, former data to be stored are handled, and generate more one's share of expenses for a joint undertaking data;
When needing what is loaded on the electronic equipments such as memory mobile terminal, PC (personal computer, personal computer) The corresponding sensitive data of application software and the key for sensitive data to be encrypted are when data, in order to improve number According to the security of storage, in the present embodiment, directly these data are not stored, but these data are split into more Part is separately stored.For the ease of description, hereafter by sensitive data, key etc., these data are known as former data.
Specifically, when needing to store former data, former data is handled first, are such as torn open former data Divide and calculate, generate corresponding more parts of data.For the ease of description, the data generated after hereafter former data are split are known as subnumber According to.Alternatively, corresponding more one's share of expenses for a joint undertaking data can be generated by a variety of method for splitting.In the following, two kinds therein are enumerated to former number According to the method split calculating and generate corresponding more one's share of expenses for a joint undertaking data.
First, in the method, the step S10 includes:
The former data are split into the more parts of subdatas by step a using Lagrange's interpolation.
In the method, fractionation calculating is carried out using Lagrange's interpolation, generates corresponding more one's share of expenses for a joint undertaking data.For example, Assuming that Lagrange interpolation polynomial is:
F (x)=(a0+a1x+a2x2+……+an-1xn-1) mod q, wherein a1、a2……an-1For multinomial coefficient, a0For Former data to be stored, q are Big prime.
Using the Lagrange interpolation polynomial, optional n mutually different nonzero integer x0、x1、x2……xn-1, calculate Corresponding f (x), so as to obtain corresponding y0、y1、y2……yn-1.So, accordingly (x0, y0)、(x1, y1)、(x2, y2)、…… (xn-1, yn-1) it is former data a0It is split rear corresponding more one's share of expenses for a joint undertaking data.
2nd, in the method, the step S10 includes:
Step b, according to the former data, generates multiple random numbers;
Step c, carries out XOR operation by the multiple random number and the former data, obtains operation result one by one;
Step d, using the operation result and multiple random numbers as described more parts corresponding with the former data Subdata.
In the method, according to former data to be stored, the corresponding multiple and close random number of former size of data is generated. Then, these random numbers and former data are subjected to XOR operation one by one, obtain operation result.Operation result and these random numbers Rear corresponding more one's share of expenses for a joint undertaking data are split for former data.For example, it is assumed that n-1 random number b of generation1、b2……bn-1, by random number b1、b2……bn-1And the former common n number of data carries out XOR operation one by one, i.e.,:First two data in the n number are carried out different Or, obtained result is subjected to exclusive or with the 3rd number again again, and so on, finally obtain corresponding operation result bn, then b1、 b2……bn-1、bnRear corresponding more one's share of expenses for a joint undertaking data are split for former data.
It is understood that in addition to the above-mentioned two methods enumerated, can also be calculated by other method for splitting Generate corresponding more one's share of expenses for a joint undertaking data.In the present embodiment, specific used method for splitting is not limited.
Step S20, configures multiple and different storage address, wherein, the number of the storage address is no less than the subnumber According to number;
Every one's share of expenses for a joint undertaking data, are stored in different storage address by step S30 respectively.
Split when to former data, after obtaining corresponding more one's share of expenses for a joint undertaking data, according to more one's share of expenses for a joint undertaking data, in electronic equipment A free memory is distributed in corresponding memory space.For example, the storage configured in the corresponding application software of former data A free memory is distributed in space.Wherein, the size of the free memory preserves more one's share of expenses for a joint undertaking data enough.And it is based on The free memory, configures corresponding multiple storage address, each storage address is in the free memory.Wherein, The number of the storage address of configuration is no less than the number of subdata.For example, it is assumed that the number of subdata is n, the storage of configuration The number of location is m, then m >=n.
Afterwards, according to the multiple storage address configured, every one's share of expenses for a joint undertaking data are stored in different storage address respectively. Since the number of storage address is no less than the number of subdata, thereby it can be assured that all subdatas can be stored in accordingly Storage address in.Specifically, when the storage address number of configuration is identical with the number of subdata, then just respectively each Corresponding different subdatas are stored in a storage address.When the number of the storage address of configuration is more than the number of subdata, into One step, after the step S30, further include:
Step e, the storage interference data in the storage address that residue does not store the subdata.
Further, in order to further improve the security of data storage, it is also provided with disturbing accordingly in the present embodiment Data.Also, when configuring storage address, the number of storage address is set to be more than the number of subdata.In this way, will be per one's share of expenses for a joint undertaking After data are stored in different storage address, also part storage address is vacant.At this time, subdata is not stored in residue Corresponding interference data are stored in storage address, so as to form interference, the risk that data are stolen is reduce further, improves The security of data storage.
For different application software, since the memory space of its correspondence distribution is different, correspondingly, in step S20 The multiple storage address configured just differ.Therefore, will not be right even if the storage address of some application software is compromised Other application software impact.
Scheme provided in this embodiment, by the way that former data to be stored are split into more one's share of expenses for a joint undertaking data, and configures corresponding Every one's share of expenses for a joint undertaking data, are stored among different storage address by multiple storage address respectively, it is achieved thereby that former data is scattered Storage.Compared to the mode that former data are encrypted to global storage, security risk is reduced, this improves data storage Security.
Further, as shown in figure 3, proposing data processing method second embodiment of the present invention based on first embodiment, In the present embodiment, before the step S20, further include:
Step S40, judges whether the byte length of the former data is less than preset byte length.If so, described in then performing Step S10;If it is not, then perform step S50;
Step S50, generates more piece data to be split, wherein the byte long of the data to be split by the former data processing Degree is less than the preset byte length;
Data to be split described in every section are carried out fractionation calculating by step S60 respectively, corresponding more to generate the former data One's share of expenses for a joint undertaking data.
In the present embodiment, a preset byte length is pre-set.For example, it is 256 bytes to set the preset byte length, The preset byte length can flexibly be set according to actual conditions, is not limited in the present embodiment.During in order to reduce calculating Between and memory consumption, before fractionation calculating is carried out to former data, first determine the byte length of former data, and by former data Byte length judges whether the byte length of former data is less than preset byte length compared with preset byte length.It is if former The byte length of data is less than preset byte length, namely illustrates that the byte length of former data is not long.At this time, directly to original Data are handled, and such as former data are carried out with fractionation calculating, obtain corresponding more one's share of expenses for a joint undertaking data.Specific calculating process such as first is real Apply described in example, details are not described herein.
If the byte length of former data is greater than or equal to preset byte length, namely the byte long of the former data of explanation is spent It is long.At this time, former data are divided into more piece data to be split.Wherein, it is each save data to be split byte length it is respectively less than pre- If byte length.Then, data to be split are saved carry out fractionation calculating to every respectively, generate corresponding subdata.All subdatas Constitute the corresponding more one's share of expenses for a joint undertaking data of former data.
For example, according to Lagrange's interpolation to former data a0Fractionation calculating is carried out, then data a more former first0Word Save the size of length and preset byte length.If former data a0Byte length be less than preset byte length, then it is bright using glug Day, interpolation method was to former data a0Fractionation calculating is carried out, obtains former data a0Corresponding more one's share of expenses for a joint undertaking data.Otherwise, if former data a0's Byte length is greater than or equal to preset byte length, then by former data a0It is divided into more piece data a to be split0'、a0”、…….Its In, often save data a to be split0'、a0" ... byte length be less than preset byte length.Then, using Lagrange's interpolation Method saves data a to be split to every0'、a0" ... fractionation calculating is carried out, obtains often save data a to be split respectively0'、a0”、…… Corresponding subdata, needs to be split data a0'、a0" ... corresponding subdata forms former data a0Corresponding subdata.
Further, in the multinomial coefficient a of Lagrange interpolation polynomial1、a2……an-1In, at least there are more than one The byte length of binomial coefficient is not less than former data a0Byte length.In this manner it is possible to ensure former data a0It is not exposed, from And further increase the security of data storage.
Further, nonzero integer x is being chosen0、x1、x2……xn-1When, corresponding selection condition is set.Such as x0、x1、 x2……xn-1Byte length be 1 byte.So, it is possible to reduce calculate time and memory consumption.
Time and memory consumption, selected x are calculated in order to further reduce0、x1、x2……xn-1Sum not More than corresponding preset value.For example, if it is 17, x to set the preset value0、x1、x2……xn-1Sum be no more than 17.If x0、 x1、x2……xn-1Sum exceed preset value, then can cause to calculate the time too long, the increase of the space of consumption.
Scheme provided in this embodiment, when the byte length of former data is less than preset byte length, directly by former data Fractionation calculating is carried out, obtains corresponding subdata;And when the byte length of former data is not less than preset byte length, first by original Data be divided into byte length be less than preset byte length more piece data to be split, then respectively to it is every save data to be split into Row, which is split, to be calculated, and generates the corresponding subdata of former data, time and memory consumption are calculated so as to reduce.
Further, data processing method 3rd embodiment of the present invention is proposed based on first embodiment or second embodiment, In the present embodiment, the step S20 includes:
Step f, obtain the former data correspond to electronic equipment UUID (Universally Unique Identifier, Universally Unique Identifier);
Step g, multiple storage address are obtained according to the UUID.
In the present embodiment, by obtaining the UUID of electronic equipment, corresponding storage address is configured further according to the UUID.Tool Body, storage address can be configured according to UUID by following three mode:
1st, according to the UUID of electronic equipment, corresponding storage address is configured using hash algorithm.Specifically, it is right first UUID carries out Hash computings, obtains the first numerical value H0;Then to H0Hash computings are carried out, obtain second value H1;Successively according to upper Mode is stated, Hash computings are carried out to a upper numerical value, obtain corresponding next numerical value, until final calculate obtains Hn.Assuming that The memory space of distribution can be used for storage m one's share of expenses for a joint undertaking data, the H that progress Hash computings are obtained1、H2、……HnM is asked respectively It is remaining, calculate and obtain corresponding each storage address.If in complementation calculating process, the result of calculation that duplicates, then continue into Row Hash computings and then complementation, until the different storage address of number required for final calculating acquisition.
2nd, according to the UUID of electronic equipment, calculated by quadratic sum complementation to configure corresponding storage address.Specifically, it is false If the memory space of distribution can be used for storage m one's share of expenses for a joint undertaking data, first by UUID progress square, and m complementations are calculated, obtain first A storage address;And then first storage address progress square of gained will be calculated, and m complementations are calculated, obtain second Storage address;Corresponding storage address is calculated in the manner described above successively, until obtaining corresponding each storage address.
3rd, according to the UUID of electronic equipment, corresponding storage address is configured by being encrypted to UUID.Specifically, adopt first UUID is encrypted with the UUID of electronic equipment, obtains first storage address Addr1, wherein, specific cipher mode can use existing Have to data ciphering method, therefore details are not described herein;Then Addr1 is encrypted using Addr1 again, obtains second storage Address Addr2;Corresponding storage address is calculated in the manner described above successively, until obtaining corresponding each storage address.
For different electronic equipments, since its UUID is different, correspondingly, what is configured in step S20 multiple deposits Storage address just differs.Therefore, even if application software and the corresponding overall quilt " packing " of former data are copied to other electronics and set It is standby upper, it can not also recover correct storage address.
The present embodiment stores multiple storage address of subdata, and by obtaining the UUID of equipment, UUID is carried out at calculating Reason obtains, be encrypted between multiple storage address so that independently of each other it is unaffected, even if which part storage address Identified, corresponding subdata is stolen, it is also difficult to finds other storage address.In this way, storage address is generated in a manner of safer, Further increase the security of data storage.
Further, as shown in figure 4, after the step S30, further include:
Step S70, when receiving former data acquisition instruction, obtains the storage address for being all stored with the subdata, And all subdatas are obtained from the storage address respectively;
Step S80, all the subdata will carry out composite calulation, generate the former data.
In the present embodiment, when user needs to obtain the former data of storage, corresponding former data acquisition operations are performed.Example Such as, the relevant operation to former data is performed, so as to trigger corresponding former data acquisition instruction.Refer to when receiving the original data acquisition When making, obtain all be stored with the storage address that the original data correspond to subdata first.For example, according to above-mentioned in the former data of storage During determine storage address mode, recalculate and determine multiple storage address.Then, from definite whole storage address It is middle to obtain corresponding whole subdatas.
After each subdata is got, according to former data method for splitting carry out inverse operation, also will each subdata into Row composite calulation, so as to obtain former data.If for example, in the former data a of storage0When, it is to use Lagrange's interpolation by former number According to a0Split into each subdata (x0, y0)、(x1, y1)、(x2, y2)、……(xn-1, yn-1), then correspondingly, getting each height Data (x0, y0)、(x1, y1)、(x2, y2)、……(xn-1, yn-1) after, according to the following formula:
Lj=x0/(x0-xj)*x1/(x1-xj)*……xi/(xi-xj)*……*xn-1/(xn-1-xj) (the n- of j=0,1,2 ... 1, and i ≠ j)
L is calculated successively0、L1、L2、……Ln-1;Then, former data a is calculated according to the following formula0
a0=y0*L0+y1*L1+……+yn-1*Ln-1
And for example, it is to use random number b if in the former data of storage1、b2……bn-1And former data carry out XOR operation one by one Obtain operation result bn, the corresponding subdata of former data is b1、b2……bn-1、bn, then correspondingly, each subdata b is being got1、 b2……bn-1、bnAfterwards, by each subdata b1、b2……bn-1、bnExclusive or one time, reverse operation obtain former data.
If the corresponding subdata of former data is obtained it is understood that being calculated using Lagrange's interpolation, then extensive After restored data, the multinomial coefficient of Lagrange interpolation polynomial can be updated.In this way, according to the Lagrange after renewal When interpolation polynomial again splits former data, obtained subdata by with difference before.Or if using Random number splits former data, then after extensive restored data, can update random number.In this way, according to new random number And former data carry out XOR operation, finally obtained subdata also by with difference before.Therefore, for same former number According to the subdata obtained after being split can be updated, namely the secret after fractionation can be updated.Cause This so that the storage of former data is very flexible, so as to further increase the security of data storage.
Former data are being split into each subdata by scheme provided in this embodiment, and are stored respectively in different storages After location, when needing to obtain former data, the storage address of subdata is stored with by obtaining, and acquisition is each from storage address Subdata, then carries out composite calulation, so as to obtain former data by each subdata.The recovery for realizing former data obtains, namely Realize the safe handling of data.
In addition, the embodiment of the present invention also proposes a kind of computer-readable recording medium, the computer-readable recording medium On be stored with data processor, following operation is realized when the data processor is executed by processor:
Former data to be stored are handled, generate more one's share of expenses for a joint undertaking data;
Multiple and different storage address is configured, wherein, the number of the storage address is no less than the number of the subdata;
Every one's share of expenses for a joint undertaking data are stored in different storage address respectively.
Further, following operation is also realized when the data processor is executed by processor:
When receiving the instruction of former data acquisition, obtain the storage address for being all stored with the subdata, and respectively from All subdatas are obtained in the storage address;
All the subdata composite calulation will be carried out, and generate the former data.
Further, following operation is also realized when the data processor is executed by processor:
The former data are split into by the more parts of subdatas using Lagrange's interpolation.
Further, following operation is also realized when the data processor is executed by processor:
According to the former data, multiple random numbers are generated;
The multiple random number and the former data are subjected to XOR operation one by one, obtain operation result;
Using the operation result and multiple random numbers as more one's share of expenses for a joint undertaking data corresponding with the original data.
Further, following operation is also realized when the data processor is executed by processor:
Judge whether the byte length of the former data is less than preset byte length;
Described the step of handling, generate more one's share of expenses for a joint undertaking data former data to be stored, includes:
When the byte length of the former data is less than the preset byte length, the former data are subjected to fractionation meter Calculate, generate the more parts of subdatas.
Further, following operation is also realized when the data processor is executed by processor:
When the byte length of the former data is greater than or equal to the preset byte length, the former data processing is given birth to Into more piece data to be split, wherein the byte length of the data to be split is less than the preset byte length;
Fractionation calculating is carried out to data to be split described in every section respectively, to generate the corresponding more one's share of expenses for a joint undertaking numbers of the former data According to.
Further, following operation is also realized when the data processor is executed by processor:
Obtain the UUID that the former data correspond to electronic equipment;
Multiple storage address are obtained according to the UUID.
Further, when the number of the storage address is more than the number of the subdata, the data processor Following operation is also realized when being executed by processor:
The storage interference data in the storage address that residue does not store the subdata.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or system including a series of elements not only include those key elements, and And other elements that are not explicitly listed are further included, or further include as this process, method, article or system institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Also there are other identical element in the process of key element, method, article or system.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme substantially in other words does the prior art Going out the part of contribution can be embodied in the form of software product, which is stored in one as described above In storage medium (such as ROM/RAM, magnetic disc, CD), including some instructions use so that a station terminal equipment (can be mobile phone, Computer, server or network equipment etc.) perform method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention.It is every to utilize this hair The equivalent structure or equivalent flow shift that bright specification and accompanying drawing content are made, is directly or indirectly used in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of data processing method, it is characterised in that the data processing method comprises the following steps:
Former data to be stored are handled, generate more one's share of expenses for a joint undertaking data;
Multiple and different storage address is configured, wherein, the number of the storage address is no less than the number of the subdata;
Every one's share of expenses for a joint undertaking data are stored in different storage address respectively.
2. data processing method as claimed in claim 1, it is characterised in that described to be stored in difference per one's share of expenses for a joint undertaking data respectively Storage address in step after, further include:
When receiving former data acquisition instruction, the storage address for being all stored with the subdata is obtained, and respectively from described All subdatas are obtained in storage address;
All the subdata composite calulation will be carried out, and generate the former data.
3. data processing method as claimed in claim 1, it is characterised in that it is described to be handled former data to be stored, The step of generating more one's share of expenses for a joint undertaking data includes:
The former data are split into by the more parts of subdatas using Lagrange's interpolation.
4. data processing method as claimed in claim 1, it is characterised in that it is described to be handled former data to be stored, The step of generating more one's share of expenses for a joint undertaking data includes:
According to the former data, multiple random numbers are generated;
The multiple random number and the former data are subjected to XOR operation one by one, obtain operation result;
Using the operation result and multiple random numbers as more one's share of expenses for a joint undertaking data corresponding with the original data.
5. data processing method as claimed in claim 1, it is characterised in that described that former data to be stored are subjected to fractionation meter Before the step of calculating, generating corresponding more one's share of expenses for a joint undertaking data, further include:
Judge whether the byte length of the former data is less than preset byte length;
Described the step of handling, generate more one's share of expenses for a joint undertaking data former data to be stored, includes:
When the byte length of the former data is less than the preset byte length, the former data are handled, generation is more Part subdata.
6. data processing method as claimed in claim 5, it is characterised in that it is described judge the former data byte length be After no the step of being less than preset byte length, further include:
It is when the byte length of the former data is greater than or equal to the preset byte length, the former data processing generation is more Data to be split are saved, wherein the byte length of the data to be split is less than the preset byte length;
Fractionation calculating is carried out to data to be split described in every section respectively, to generate the corresponding more one's share of expenses for a joint undertaking data of the former data.
7. data processing method as claimed in claim 1, it is characterised in that the step of the multiple and different storage address of the configuration Suddenly include:
Obtain the Universally Unique Identifier that the former data correspond to electronic equipment;
Multiple storage address are obtained according to the Universally Unique Identifier.
8. data processing method as claimed in claim 1, it is characterised in that when the number of the storage address is more than the son During the number of data, after the step that every one's share of expenses for a joint undertaking data are stored in different storage address respectively, further include:
The storage interference data in the storage address that residue does not store the subdata.
9. a kind of data processing equipment, it is characterised in that the data processing equipment includes:Memory, processor and it is stored in On the memory and the data processor that can run on the processor, the data processor is by the processor Realized during execution such as the step of claim 1-8 any one of them data processing methods.
10. a kind of computer-readable recording medium, it is characterised in that be stored with the computer-readable recording medium at data Program is managed, such as claim 1-8 any one of them data processing side is realized when the data processor is executed by processor The step of method.
CN201711082987.6A 2017-11-06 2017-11-06 Data processing method, device and computer-readable recording medium Pending CN107977581A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711082987.6A CN107977581A (en) 2017-11-06 2017-11-06 Data processing method, device and computer-readable recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711082987.6A CN107977581A (en) 2017-11-06 2017-11-06 Data processing method, device and computer-readable recording medium

Publications (1)

Publication Number Publication Date
CN107977581A true CN107977581A (en) 2018-05-01

Family

ID=62013136

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711082987.6A Pending CN107977581A (en) 2017-11-06 2017-11-06 Data processing method, device and computer-readable recording medium

Country Status (1)

Country Link
CN (1) CN107977581A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109445710A (en) * 2018-11-05 2019-03-08 常熟理工学院 Cloud data storage display method and system based on Cloud Server storage
CN110851487A (en) * 2018-07-30 2020-02-28 阿里巴巴集团控股有限公司 Data statistical method and device
CN110855423A (en) * 2019-09-23 2020-02-28 深圳市智讯互动体育科技有限公司 Method, device and storage medium for encrypting and decrypting ordered numerical value string
WO2023092829A1 (en) * 2021-11-26 2023-06-01 杭州安恒信息技术股份有限公司 Secure calculation method, system and apparatus for multi-party data, and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102567687A (en) * 2010-12-15 2012-07-11 成都科创知识产权研究所 Data encryption method and system
CN102693398A (en) * 2012-05-09 2012-09-26 深圳大学 Data encryption method and system
CN105915574A (en) * 2015-12-14 2016-08-31 乐视网信息技术(北京)股份有限公司 File synchronization method, receiver equipment and system
US20170075587A1 (en) * 2010-03-05 2017-03-16 Netapp, Inc. Writing data in a distributed data storage system
CN106557706A (en) * 2016-11-30 2017-04-05 广东欧珀移动通信有限公司 Date storage method, device and mobile terminal
CN106598882A (en) * 2016-12-09 2017-04-26 武汉斗鱼网络科技有限公司 Secure memory data protection method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170075587A1 (en) * 2010-03-05 2017-03-16 Netapp, Inc. Writing data in a distributed data storage system
CN102567687A (en) * 2010-12-15 2012-07-11 成都科创知识产权研究所 Data encryption method and system
CN102693398A (en) * 2012-05-09 2012-09-26 深圳大学 Data encryption method and system
CN105915574A (en) * 2015-12-14 2016-08-31 乐视网信息技术(北京)股份有限公司 File synchronization method, receiver equipment and system
CN106557706A (en) * 2016-11-30 2017-04-05 广东欧珀移动通信有限公司 Date storage method, device and mobile terminal
CN106598882A (en) * 2016-12-09 2017-04-26 武汉斗鱼网络科技有限公司 Secure memory data protection method and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110851487A (en) * 2018-07-30 2020-02-28 阿里巴巴集团控股有限公司 Data statistical method and device
CN110851487B (en) * 2018-07-30 2023-05-30 创新先进技术有限公司 Data statistics method and device
CN109445710A (en) * 2018-11-05 2019-03-08 常熟理工学院 Cloud data storage display method and system based on Cloud Server storage
CN110855423A (en) * 2019-09-23 2020-02-28 深圳市智讯互动体育科技有限公司 Method, device and storage medium for encrypting and decrypting ordered numerical value string
WO2023092829A1 (en) * 2021-11-26 2023-06-01 杭州安恒信息技术股份有限公司 Secure calculation method, system and apparatus for multi-party data, and storage medium

Similar Documents

Publication Publication Date Title
CN107634832B (en) Character string encryption, verification method, device, computer readable storage medium
CN107977581A (en) Data processing method, device and computer-readable recording medium
CN104680039A (en) Data protection method and device of application installation package
CN107231490A (en) Dynamic updates method, client and the server of IOS system applications
CN111783124A (en) Data processing method and device based on privacy protection and server
CN107196907A (en) A kind of guard method of Android SO files and device
CN104915602A (en) PIN code protection method under Android platform
WO2017006118A1 (en) Secure distributed encryption system and method
CN104281272A (en) Password input processing method and device
CN112054896A (en) White box encryption method, device, terminal and storage medium
CN110532737A (en) Jar packet encryption management method, device, computer equipment and storage medium
CN111368322B (en) File decryption method and device, electronic equipment and storage medium
CN111400743B (en) Transaction processing method, device, electronic equipment and medium based on blockchain network
CN116455572B (en) Data encryption method, device and equipment
CN111078715A (en) Synchronous storage method and device for internet advertisement data on block chain
CN110990848A (en) Sensitive word encryption method and device based on hive data warehouse and storage medium
CN108964899B (en) Method and device for timing encryption of dynamic formula and multiple synchronous dynamic passwords
CN108985109B (en) Data storage method and device
JP5530025B2 (en) Data division apparatus and data division program
CN109560918A (en) A kind of method and terminal device of the generation of NTRU key
CN110737910B (en) Android log decryption management method, device, equipment and medium
CN111835815A (en) Synchronous storage method and device for internet self-media data on block chain
CN107085689B (en) Method and device for carrying out encryption protection on picture resources in Flash
CN111125250A (en) Method and device for storing internet evaluation data on block chain
CN117688594B (en) Method, device, equipment and storage medium for database encryption confusion

Legal Events

Date Code Title Description
PB01 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180501