CN109656882A - Data record method, extracting method and device, storage medium, terminal - Google Patents
Data record method, extracting method and device, storage medium, terminal Download PDFInfo
- Publication number
- CN109656882A CN109656882A CN201710933512.7A CN201710933512A CN109656882A CN 109656882 A CN109656882 A CN 109656882A CN 201710933512 A CN201710933512 A CN 201710933512A CN 109656882 A CN109656882 A CN 109656882A
- Authority
- CN
- China
- Prior art keywords
- data
- mark
- block chain
- cryptographic hash
- initial data
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/70—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
- G06F21/78—Protecting 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
Abstract
A kind of data record method, extracting method and device, storage medium, terminal, data record method include: the initial data for obtaining user and uploading;The initial data is stored to file memory;The first cryptographic Hash of the initial data is calculated, and the mark of first cryptographic Hash and the initial data is written to multiple block chain nodes in block chain network together.The safety of file storage can be improved in technical solution through the invention.
Description
Technical field
The present invention relates to technical field of data processing more particularly to a kind of data record method, extracting method and device, deposit
Storage media, terminal.
Background technique
With the development of digital technology, in the business process of circulation of every field, it will generate a large amount of data.Mesh
The data storage scheme of preceding use is mainly the scheme of centralization storage.
But centralization storage scheme in the prior art faces file and distorts problem.File is stored in centralized system
In, the owner of centralized system can leave record with altered data and not;Alternatively, file is distorted and is not stayed after hacker attack
Lower record, the safety of file are difficult to ensure.
Summary of the invention
Present invention solves the technical problem that being how to improve the safety of file storage.
In order to solve the above technical problems, the embodiment of the present invention provides a kind of data record method, data record method includes:
Obtain the initial data that user uploads;The initial data is stored to file memory;Calculate the first of the initial data
Cryptographic Hash, and multiple block chains in block chain network are written into the mark of first cryptographic Hash and the initial data together
Node.
Optionally, described store the initial data to file memory includes: to encrypt to the initial data;
Encrypted initial data is stored to the file memory.
Optionally, the initial data for obtaining user's upload includes: obtaining the original number by human-computer interaction interface
According to.
Optionally, the mark of the initial data includes filename.
Optionally, described that the mark of first cryptographic Hash and the initial data is written in block chain network together
Multiple block chain nodes include: to carry out consistency checking to the multiple block chain link point, to be verified result;If described
Verification result shows that the multiple block chain node is all consistent, then by the mark one of first cryptographic Hash and the initial data
And the multiple block chain node is written.
The embodiment of the invention also discloses a kind of data extraction method, data extraction method includes: the extraction for receiving user
Request;It is obtained according to the mark extracted in request from multiple block chain nodes in block chain network and is matched with the mark
The first cryptographic Hash;It is obtained from file memory according to the mark and identifies matched data with described, and calculate the number
According to the second cryptographic Hash;If first cryptographic Hash is consistent with second cryptographic Hash, by the data feedback to described
User.
Optionally, the data obtained from the file memory are encrypted initial data;By the data feedback
It include: that the data are decrypted to the user;The initial data that decryption obtains is fed back into user.
Optionally, described obtained from file memory according to the mark identifies matched data with described, and calculates
Second cryptographic Hash of the data include: by it is described mark with the multiple block chain node in destination node in mark into
Row matching, to obtain matching result, the destination node is randomly selected or preassigned;If the matching result
Show that the mark of the data is consistent with the mark in the destination node, then according to the mark in the destination node from described
First cryptographic Hash is obtained in multiple block chain nodes.
A kind of data recording equipment of the present invention, data recording equipment include: that initial data obtains module, are suitable for obtaining user
The initial data of upload;Memory module, suitable for storing the initial data to file memory;Writing module is calculated, is suitable for
Calculate the first cryptographic Hash of the initial data, and by the mark of first cryptographic Hash and the initial data together write area
Multiple block chain nodes in block chain network.
Optionally, the memory module includes: decryption unit, suitable for encrypting to the initial data;Storage unit,
Suitable for storing encrypted initial data to the file memory.
Optionally, the initial data obtains module and obtains the initial data by human-computer interaction interface.
Optionally, the mark of the initial data includes filename.
Optionally, the calculating writing module includes: authentication unit, is suitable for carrying out the multiple block chain link point consistent
Property verifying, to be verified result;Writing unit, suitable for showing that the multiple block chain node is all consistent in the verification result
When, the multiple block chain node is written into the mark of first cryptographic Hash and the initial data together.
The embodiment of the invention also discloses a kind of data extraction device, data extraction device includes: to extract request to receive mould
Block, suitable for receiving the extraction request of user;Cryptographic Hash obtains module, suitable for extracting the mark in requesting from block chain according to described
Multiple block chain nodes in network obtain and matched first cryptographic Hash of mark;Cryptographic Hash computing module is suitable for basis
The mark is obtained from file memory identifies matched data with described, and calculates the second cryptographic Hash of the data;Instead
Module is presented, is suitable for when first cryptographic Hash is consistent with second cryptographic Hash, by the data feedback to the user.
Optionally, the data obtained from the file memory are encrypted initial data;The feedback module packet
It includes: decryption unit, suitable for the data are decrypted;Feedback unit, the initial data suitable for obtaining decryption feed back to use
Family.
Optionally, it includes: mark matching unit that the cryptographic Hash, which obtains module, is suitable for the mark and the multiple area
The mark in destination node in block chain node is matched, and to obtain matching result, the destination node is randomly selected
Or it is preassigned;Cryptographic Hash acquiring unit, suitable for showing the mark and the target of the data in the matching result
When mark in node is consistent, described first is obtained from the multiple block chain node according to the mark in the destination node
Cryptographic Hash.
The embodiment of the invention also discloses a kind of storage medium, it is stored thereon with the fortune of computer instruction described in computer instruction
The step of the step of data record method is executed when row or the data extraction method.
The embodiment of the invention also discloses a kind of terminal, including memory and processor, being stored on the memory can
The computer instruction run on the processor, the processor execute the data record when running the computer instruction
The step of the step of method or the data extraction method.
Compared with prior art, the technical solution of the embodiment of the present invention has the advantages that
Technical solution of the present invention obtains the initial data that user uploads;The initial data is stored to file memory;
Calculate the first cryptographic Hash of the initial data, and by the mark of first cryptographic Hash and the initial data together write area
Multiple block chain nodes in block chain network.Technical solution of the present invention is by being stored in block chain for the first cryptographic Hash of initial data
Network increases the difficulty that initial data is tampered, but also distorting record in the case where being tampered can be found, one
Determine to avoid data in degree and be tampered, ensure that the safety of initial data storage;In addition, what is saved in block chain node is
First cryptographic Hash of original data, cryptographic Hash data volume is small, and the memory space of occupancy is small, to reduce block chain network
Burden, improves write-in and reading speed.
Further, consistency checking is carried out to the multiple block chain link point, to be verified result;If the verifying
The result shows that the multiple block chain node is all consistent, then the mark of first cryptographic Hash and the initial data is write together
Enter the multiple block chain node.Technical solution of the present invention is by carrying out the data in multiple block chain nodes in write-in
Consistency checking, data in node can be found in time after being tampered, and be further ensured that the safety of data storage.
Detailed description of the invention
Fig. 1 is a kind of flow chart of data record method of the embodiment of the present invention;
Fig. 2 is a kind of flow chart of data extraction method of the embodiment of the present invention;
Fig. 3 is the concrete application scene schematic diagram of a kind of data record of the embodiment of the present invention and extracting method;
Fig. 4 is a kind of structural schematic diagram of data recording equipment of the embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of data extraction device of the embodiment of the present invention.
Specific embodiment
As described in the background art, centralization storage scheme in the prior art faces file and distorts problem.File saves
In centralized system, the owner of centralized system can leave record with altered data and not;Alternatively, file is by hacker attack
After distort and do not leave record, the safety of file is difficult to ensure.
Technical solution of the present invention increases initial data by the way that the first cryptographic Hash of initial data is stored in block chain network
The difficulty being tampered avoids data but also distorting record in the case where being tampered can be found to a certain extent
It is tampered, ensure that the safety of initial data;In addition, what is saved in block chain node is the first Hash of original data
Value, cryptographic Hash data volume is small, and the memory space of occupancy is small, to reduce the burden of block chain network, improves write-in and reading
Take speed.
To make the above purposes, features and advantages of the invention more obvious and understandable, with reference to the accompanying drawing to the present invention
Specific embodiment be described in detail.
Fig. 1 is a kind of flow chart of data record method of the embodiment of the present invention.
Data record method shown in FIG. 1 may comprise steps of:
Step S101: the initial data that user uploads is obtained;
Step S102: the initial data is stored to file memory;
Step S103: calculating the first cryptographic Hash of the initial data, and by first cryptographic Hash and the original number
According to mark together be written block chain network in multiple block chain nodes.
In the present embodiment, initial data can be provided by least one user, and user has the demand of storage initial data.
In the specific implementation of step S101, the initial data that user uploads is obtained.And in step s 102 by initial data store to
File memory.Specifically, file memory can be used for storing initial data;File memory can be deployed in storage clothes
It is engaged in device.Furthermore, the mark of initial data and initial data can be stored together to file memory.
In the specific implementation of step S103, the first Hash (Hash) value of initial data can be calculated.Different
Initial data has the first different cryptographic Hash.In addition, initial data has mark, different initial data has different marks
Know.Thus, it is possible to which the first cryptographic Hash of initial data is identified the multiple block chain links being written in block chain network together with it
Point.Furthermore, the mark of identical first cryptographic Hash and its corresponding initial data is stored in multiple block chain nodes.
Specifically, block chain network can be deployed in the server different from storage server.In block chain network
Only there are the first cryptographic Hash and mark of initial data, data volume is small, easy to maintain.
Block chain node in the present embodiment includes multiple blocks being connected sequentially in time, and block chain node has chain
Formula structure.It is stored with the mark of the first cryptographic Hash and its corresponding initial data, write time within a block, is connected with the block
The information etc. of the previous block connect.
In the present embodiment, in the first cryptographic Hash deposit of subsequent initial data, stored first cryptographic Hash can be used
Data consistency in verifying block chain node, guarantees the safety of initial data;Or when user extracts initial data,
Stored first cryptographic Hash can be used for carrying out verification with the cryptographic Hash of the initial data in file memory and compare, further
Guarantee the safety of initial data.
The embodiment of the present invention increases initial data quilt by the way that the first cryptographic Hash of initial data is stored in block chain network
The difficulty distorted avoids data quilt but also distorting record in the case where being tampered can be found to a certain extent
It distorts, ensure that the safety of initial data;In addition, what is saved in block chain node is the first cryptographic Hash of original data,
Cryptographic Hash data volume is small, and the memory space of occupancy is small, to reduce the burden of block chain network, improve write-in and read speed
Degree.
Preferably, step S102 may comprise steps of: encrypt to the initial data;It will be encrypted original
Data are stored to the file memory.
In the present embodiment, in order to further ensure the safety of initial data, deposited storing initial data to the file
It is encrypted before reservoir.That is, what is stored in file memory is encrypted initial data, to further prevent
Initial data is tampered.
It will be appreciated by persons skilled in the art that the process encrypted to the initial data can use and arbitrarily may be used
The Encryption Algorithm of implementation, the embodiment of the present invention are without limitation.
Preferably, step S101 may comprise steps of: obtain the initial data by human-computer interaction interface.
Specifically, human-computer interaction interface can be used as the interface that user interacts with block chain network, use can also be used as
The interface at family and file memory, then the first cryptographic Hash of initial data can be stored via human-computer interaction interface to block link network
Network, initial data can be transmitted to file memory via human-computer interaction interface.
Preferably, the mark of the initial data includes filename.
In the present embodiment, the initial data that user provides can be file, then the mark of initial data can be filename.
In other words, what is stored in block chain network is the first cryptographic Hash and filename;What is stored in file memory is file and file
Name.
Preferably, step S103 may comprise steps of: consistency checking is carried out to the multiple block chain link point, with
It is verified result;If the verification result shows that the multiple block chain node is all consistent, by first cryptographic Hash
The multiple block chain node is written together with the mark of the initial data.
In the present embodiment, since multiple block chain nodes are stored with identical content, when new content is written,
When new the first cryptographic Hash and its corresponding mark is written, the stored content of multiple block chain nodes can be carried out consistent
Property verifying.That is, multiple stored contents of block chain node are compared.If the verification result shows described
Multiple block chain nodes are all consistent, then the multiple block chain node can be written in new the first cryptographic Hash and mark together.
If the verification result shows that the multiple block chain node is inconsistent, then it represents that there is abnormal section in multiple block chain nodes
Point, the node may be the node being tampered.
In specific implementation, to the multiple block chain link point carry out consistency checking process utilizes is multiple block chains
The common recognition mechanism of node.Carrying out consistency checking to the multiple block chain link point can be calculated using any enforceable common recognition
Method, the embodiment of the present invention are without limitation.
Fig. 2 is a kind of flow chart of data extraction method of the embodiment of the present invention.
Data extraction method shown in Fig. 2 may comprise steps of:
Step S201: the extraction request of user is received;
Step S202: according to it is described extract request in mark from block chain network multiple block chain nodes obtain with
Matched first cryptographic Hash of mark;
Step S203: it is obtained from file memory according to the mark and identifies matched data with described, and calculate institute
State the second cryptographic Hash of data;
Step S204: if first cryptographic Hash is consistent with second cryptographic Hash, by the data feedback to institute
State user.
In the present embodiment, user can send extraction request when there is the demand for extracting data.Extracting can wrap in request
Include the mark for the data to be obtained.
The extraction request of user is received by step S201, and then in step S202, can will extract the mark in request
Knowledge is matched with the mark in multiple block chain nodes, is obtained in the block chain node to match with the mark extracted in request
Mark, and obtain corresponding first cryptographic Hash of mark in block chain node.
In step S203, the mark extracted in request can be matched with the mark in file memory, be obtained
The mark in file memory to match with the mark extracted in request, obtains the corresponding number of mark in file memory
According to;And calculate the second cryptographic Hash of the data.
And then in step S204, first cryptographic Hash and second cryptographic Hash are compared, if first Hash
Value is consistent with second cryptographic Hash, shows stored content and stored content in file memory in block chain network
Unanimously, it is not tampered with, then it can be by the data feedback in file memory to user.
The embodiment of the present invention needs to verify the first cryptographic Hash and text in block chain node when user needs to extract data
The second cryptographic Hash that data are calculated in part memory, and when consistent ability feedback data to user;By utilizing block chain
The mark and the first cryptographic Hash in multiple block chain nodes in network, increases the difficulty that data are tampered, but also in quilt
Record is distorted in the case where distorting to be found, and avoided data to a certain extent and be tampered, and ensure that data storage
Safety;In addition, the first cryptographic Hash of the data for being saved in block chain node, cryptographic Hash data volume is small, the storage of occupancy
Space is small, to reduce the burden of block chain network, improves write-in and reading speed.
Preferably, the data obtained from the file memory are encrypted initial data;Step S204 can wrap
It includes following steps: the data is decrypted;The initial data that decryption obtains is fed back into user.
It will be appreciated by persons skilled in the art that process that the data are decrypted and adding to initial data
Close process is corresponding, can be using any enforceable decipherment algorithm, and the embodiment of the present invention is without limitation.
Preferably, step S203 may comprise steps of: by the mark and the mesh in the multiple block chain node
Mark in mark node is matched, and to obtain matching result, the destination node is randomly selected or preassigned;
If the matching result shows that the mark of the data is consistent with the mark in the destination node, according to the target section
Mark in point obtains first cryptographic Hash from the multiple block chain node.
In the present embodiment, the mark extracted in request match referring to the mark in multiple block chain nodes
The mark extracted in request is matched with the mark in destination node.Destination node can be the block chain link randomly selected
Point, or the block chain node pre-established.
The embodiment of the present invention can reduce calculation amount by being pre-configured with destination node in the matching process, improve data
The speed and efficiency of extraction.
More contents of specific embodiment about the data extraction method, the associated description being referred in Fig. 1,
Which is not described herein again.
Fig. 3 is the concrete application scene schematic diagram of a kind of data record of the embodiment of the present invention and extracting method.
As shown in figure 3, user uploads initial data by human-computer interaction interface 202, for example, user uploads text by website
Part.Step 1 is first carried out: file is stored into file memory 203 after encryption.
Then execute step 2: the first cryptographic Hash and filename of file are stored in block link network by human-computer interaction interface 202
In network 201.Wherein, block chain node A, block chain node B, block chain node C and block chain node D are stored in identical
Hold.
User requests downloading file by human-computer interaction interface 202.Execute step 3: human-computer interaction interface 202 is to block chain
The first cryptographic Hash and filename of the acquisition file of network 201.Execute step 4: human-computer interaction interface 202 passes through filename to file
Memory 203 obtains file, and verifies the second cryptographic Hash and the first cryptographic Hash of calculating.Execute step 5: the second cryptographic Hash with
When first cryptographic Hash is consistent, human-computer interaction interface 202 returns data to user.
Fig. 4 is a kind of structural schematic diagram of data recording equipment of the embodiment of the present invention.
Data recording equipment 40 shown in Fig. 4 may include that initial data obtains module 401, memory module 402 and calculates
Writing module 403.
Wherein, initial data obtains the initial data that module 401 is suitable for obtaining user's upload;Memory module 402 is suitable for will
The initial data is stored to file memory;The first cryptographic Hash that writing module 403 is suitable for calculating the initial data is calculated,
And the mark of first cryptographic Hash and the initial data is written to multiple block chain nodes in block chain network together.
In the present embodiment, in the first cryptographic Hash deposit of subsequent initial data, stored first cryptographic Hash can be used
Data consistency in verifying block chain node, guarantees the safety of initial data;Or when user extracts initial data,
Stored first cryptographic Hash can be used for carrying out verification with the cryptographic Hash of the initial data in file memory and compare, further
Guarantee the safety of initial data.
Preferably, memory module 402 may include decryption unit 4021 and storage unit 4022, and decryption unit 4021 is suitable for
The initial data is encrypted;Storage unit 4022, which is suitable for storing encrypted initial data to the file, to be stored
Device.
Preferably, calculating writing module 403 may include authentication unit 4031 and writing unit 4032.Authentication unit 4031
Suitable for carrying out consistency checking to the multiple block chain link point, to be verified result;Writing unit 4032 is suitable for described
When verification result shows that the multiple block chain node is all consistent, by the mark one of first cryptographic Hash and the initial data
And the multiple block chain node is written.
Working principle, more contents of working method about the data recording equipment 40, are referred to Fig. 1 to Fig. 3
In associated description, which is not described herein again.
Fig. 5 is a kind of structural schematic diagram s of data extraction device of the embodiment of the present invention.
Data extraction device 50 shown in fig. 5 may include extract request receiving module 501, cryptographic Hash obtain module 502,
Cryptographic Hash computing module 503 and feedback module 504.
Wherein, the extraction request that request receiving module 501 is suitable for receiving user is extracted;Cryptographic Hash obtains module 502 and is suitable for
It is obtained and the mark matched the according to the mark extracted in request from multiple block chain nodes in block chain network
One cryptographic Hash;Cryptographic Hash computing module 503 is suitable for being obtained from file memory according to the mark matched with the mark
Data, and calculate the second cryptographic Hash of the data;Feedback module 504 is suitable in first cryptographic Hash and second Hash
When being worth consistent, by the data feedback to the user.
The embodiment of the present invention needs to verify the first cryptographic Hash and text in block chain node when user needs to extract data
The second cryptographic Hash that data are calculated in part memory, and when consistent ability feedback data to user;By utilizing block chain
The mark and the first cryptographic Hash in multiple block chain nodes in network, increases the difficulty that data are tampered, but also in quilt
Record is distorted in the case where distorting to be found, and avoided data to a certain extent and be tampered, and ensure that data storage
Safety;In addition, the first cryptographic Hash of the data for being saved in block chain node, cryptographic Hash data volume is small, the storage of occupancy
Space is small, to reduce the burden of block chain network, improves write-in and reading speed.
Preferably, feedback module 504 may include decryption unit 5041 and feedback unit 5042, and decryption unit 5041 is suitable for
The data are decrypted;Feedback unit 5042 is suitable for the initial data that decryption obtains feeding back to user.
Preferably, it may include mark matching unit 5021 and cryptographic Hash acquiring unit 5022 that cryptographic Hash, which obtains module 502,.
Matching unit 5021 is identified to be suitable for the mark and the mark progress in the destination node in the multiple block chain node
Match, to obtain matching result, the destination node is randomly selected or preassigned;Cryptographic Hash acquiring unit 5022 is suitable
In showing when identifying consistent with the mark in the destination node of the data in the matching result, according to the target section
Mark in point obtains first cryptographic Hash from the multiple block chain node.
Working principle, more contents of working method about the data extraction device 50, are referred to Fig. 1 to Fig. 3
In associated description, which is not described herein again.
The embodiment of the invention also discloses a kind of storage mediums, are stored thereon with computer instruction, the computer instruction
The step of data record method shown in Fig. 1 can be executed when operation, or execute data extraction method shown in Fig. 2
Step.The storage medium may include ROM, RAM, disk or CD etc..
The embodiment of the invention also discloses a kind of terminal, the terminal may include memory and processor, the storage
The computer instruction that can be run on the processor is stored on device.The processor can be with when running the computer instruction
The step of executing data record method shown in Fig. 1, or the step of executing data extraction method shown in Fig. 2.It is described
Terminal includes but is not limited to the terminal devices such as mobile phone, computer, tablet computer.
Although present disclosure is as above, present invention is not limited to this.Anyone skilled in the art are not departing from this
It in the spirit and scope of invention, can make various changes or modifications, therefore protection scope of the present invention should be with claim institute
Subject to the range of restriction.
Claims (18)
1. a kind of data record method characterized by comprising
Obtain the initial data that user uploads;
The initial data is stored to file memory;
The first cryptographic Hash of the initial data is calculated, and the mark of first cryptographic Hash and the initial data is write together
Enter multiple block chain nodes in block chain network.
2. data record method according to claim 1, which is characterized in that described to store the initial data to file
Memory includes:
The initial data is encrypted;
Encrypted initial data is stored to the file memory.
3. data record method according to claim 1, which is characterized in that the raw data packets for obtaining user and uploading
It includes:
The initial data is obtained by human-computer interaction interface.
4. data record method according to claim 1, which is characterized in that the mark of the initial data includes file
Name.
5. data record method according to claim 1, which is characterized in that described by first cryptographic Hash and the original
Beginning data mark together be written block chain network in multiple block chain nodes include:
Consistency checking is carried out to the multiple block chain link point, to be verified result;
If the verification result shows that the multiple block chain node is all consistent, by first cryptographic Hash with it is described original
The multiple block chain node is written in the mark of data together.
6. a kind of data extraction method characterized by comprising
Receive the extraction request of user;
It is obtained according to the mark extracted in request from multiple block chain nodes in block chain network and is matched with the mark
The first cryptographic Hash;
It is obtained from file memory according to the mark and identifies matched data with described, and calculated the second of the data and breathe out
Uncommon value;
If first cryptographic Hash is consistent with second cryptographic Hash, by the data feedback to the user.
7. data extraction method according to claim 6, which is characterized in that the data obtained from the file memory
For encrypted initial data;Include: by the data feedback to the user
The data are decrypted;
The initial data that decryption obtains is fed back into user.
8. data extraction method according to claim 7, which is characterized in that described to be identified according to described from file memory
Middle acquisition and the matched data of mark, and the second cryptographic Hash for calculating the data includes:
The mark is matched with the mark in the destination node in the multiple block chain node, to obtain matching knot
Fruit, the destination node are randomly selected or preassigned;
If the matching result shows that the mark of the data is consistent with the mark in the destination node, according to the mesh
Mark in mark node obtains first cryptographic Hash from the multiple block chain node.
9. a kind of data recording equipment characterized by comprising
Initial data obtains module, the initial data uploaded suitable for obtaining user;
Memory module, suitable for storing the initial data to file memory;
Writing module is calculated, suitable for calculating the first cryptographic Hash of the initial data, and by first cryptographic Hash and the original
Multiple block chain nodes in block chain network are written in the mark of beginning data together.
10. data recording equipment according to claim 9, which is characterized in that the memory module includes:
Decryption unit, suitable for being encrypted to the initial data;
Storage unit, suitable for storing encrypted initial data to the file memory.
11. data recording equipment according to claim 9, which is characterized in that the initial data obtains module and passes through people
Machine interactive interface obtains the initial data.
12. data recording equipment according to claim 9, which is characterized in that the mark of the initial data includes file
Name.
13. data recording equipment according to claim 9, which is characterized in that the calculating writing module includes:
Authentication unit is suitable for carrying out consistency checking to the multiple block chain link point, to be verified result;
Writing unit, suitable for when the verification result shows that the multiple block chain node is all consistent, by first Hash
The multiple block chain node is written in the mark of value and the initial data together.
14. a kind of data extraction device characterized by comprising
Request receiving module is extracted, suitable for receiving the extraction request of user;
Cryptographic Hash obtains module, suitable for extracting the mark in requesting from multiple block chain nodes in block chain network according to described
It obtains and matched first cryptographic Hash of mark;
Cryptographic Hash computing module, be suitable for being obtained from file memory according to the mark with the matched data of the mark, and
Calculate the second cryptographic Hash of the data;
Feedback module is suitable for when first cryptographic Hash is consistent with second cryptographic Hash, by the data feedback to described
User.
15. data extraction device according to claim 14, which is characterized in that the number obtained from the file memory
According to for encrypted initial data;The feedback module includes:
Decryption unit, suitable for the data are decrypted;
Feedback unit, the initial data suitable for obtaining decryption feed back to user.
16. data extraction device according to claim 14, which is characterized in that the cryptographic Hash obtains module and includes:
Matching unit is identified, suitable for identifying described and the mark progress in the destination node in the multiple block chain node
Match, to obtain matching result, the destination node is randomly selected or preassigned;
Cryptographic Hash acquiring unit, the mark suitable for showing the data in the matching result and the mark in the destination node
When consistent, first cryptographic Hash is obtained from the multiple block chain node according to the mark in the destination node.
17. a kind of storage medium, is stored thereon with computer instruction, which is characterized in that the computer instruction executes when running
Described in any one of claims 1 to 5 the step of data record method or data described in any one of claim 6 to 8 mention
The step of taking method.
18. a kind of terminal, including memory and processor, the meter that can be run on the processor is stored on the memory
Calculation machine instruction, which is characterized in that data note described in any one of execution 1 to 5 when the processor runs the computer instruction
Described in any one of the step of recording method or claim 6 to 8 the step of data extraction method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710933512.7A CN109656882A (en) | 2017-10-10 | 2017-10-10 | Data record method, extracting method and device, storage medium, terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710933512.7A CN109656882A (en) | 2017-10-10 | 2017-10-10 | Data record method, extracting method and device, storage medium, terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109656882A true CN109656882A (en) | 2019-04-19 |
Family
ID=66108233
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710933512.7A Pending CN109656882A (en) | 2017-10-10 | 2017-10-10 | Data record method, extracting method and device, storage medium, terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109656882A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110083606A (en) * | 2019-04-25 | 2019-08-02 | 深圳市豪斯莱科技有限公司 | Across chain storage method, terminal and storage medium |
CN110365766A (en) * | 2019-07-12 | 2019-10-22 | 全链通有限公司 | Cloud storage method, equipment and computer readable storage medium based on block chain |
CN111163156A (en) * | 2019-12-26 | 2020-05-15 | 山东爱城市网信息技术有限公司 | Data processing method, device and storage medium based on block chain |
CN111209585A (en) * | 2020-02-11 | 2020-05-29 | 广州电力交易中心有限责任公司 | Data processing method and system based on electric power transaction |
CN111414418A (en) * | 2020-03-05 | 2020-07-14 | 合肥达朴汇联科技有限公司 | Data storage method and device based on block chain |
CN111475567A (en) * | 2020-03-09 | 2020-07-31 | 上海能链众合科技有限公司 | Internet of things data sequential recording method |
WO2021057863A1 (en) * | 2019-09-29 | 2021-04-01 | 腾讯科技(深圳)有限公司 | Blockchain-based content processing method, apparatus, device, and storage medium |
CN113032803A (en) * | 2021-03-22 | 2021-06-25 | 翰雅(深圳)网络信息科技有限公司 | Method for safely storing and reading data |
CN113255001A (en) * | 2021-06-09 | 2021-08-13 | 湖北央中巨石信息技术有限公司 | Block chain-based calculation accounting method, system, device and medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105741095A (en) * | 2016-01-29 | 2016-07-06 | 彭军红 | Dynamic compression and access method of block chain |
CN105975868A (en) * | 2016-04-29 | 2016-09-28 | 杭州云象网络技术有限公司 | Block chain-based evidence preservation method and apparatus |
US20170148016A1 (en) * | 2015-11-24 | 2017-05-25 | Mastercard International Incorporated | Method and system for gross settlement by use of an opaque blockchain |
CN106991334A (en) * | 2016-11-24 | 2017-07-28 | 阿里巴巴集团控股有限公司 | A kind of method, system and device of data access |
-
2017
- 2017-10-10 CN CN201710933512.7A patent/CN109656882A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170148016A1 (en) * | 2015-11-24 | 2017-05-25 | Mastercard International Incorporated | Method and system for gross settlement by use of an opaque blockchain |
CN105741095A (en) * | 2016-01-29 | 2016-07-06 | 彭军红 | Dynamic compression and access method of block chain |
CN105975868A (en) * | 2016-04-29 | 2016-09-28 | 杭州云象网络技术有限公司 | Block chain-based evidence preservation method and apparatus |
CN106991334A (en) * | 2016-11-24 | 2017-07-28 | 阿里巴巴集团控股有限公司 | A kind of method, system and device of data access |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110083606A (en) * | 2019-04-25 | 2019-08-02 | 深圳市豪斯莱科技有限公司 | Across chain storage method, terminal and storage medium |
CN110083606B (en) * | 2019-04-25 | 2021-06-08 | 深圳市豪斯莱科技有限公司 | Cross-chain storage method, terminal and storage medium |
CN110365766A (en) * | 2019-07-12 | 2019-10-22 | 全链通有限公司 | Cloud storage method, equipment and computer readable storage medium based on block chain |
WO2021057863A1 (en) * | 2019-09-29 | 2021-04-01 | 腾讯科技(深圳)有限公司 | Blockchain-based content processing method, apparatus, device, and storage medium |
CN111163156A (en) * | 2019-12-26 | 2020-05-15 | 山东爱城市网信息技术有限公司 | Data processing method, device and storage medium based on block chain |
CN111209585A (en) * | 2020-02-11 | 2020-05-29 | 广州电力交易中心有限责任公司 | Data processing method and system based on electric power transaction |
CN111209585B (en) * | 2020-02-11 | 2020-12-18 | 广州电力交易中心有限责任公司 | Data processing method and system based on electric power transaction |
CN111414418A (en) * | 2020-03-05 | 2020-07-14 | 合肥达朴汇联科技有限公司 | Data storage method and device based on block chain |
CN111414418B (en) * | 2020-03-05 | 2023-09-29 | 合肥达朴汇联科技有限公司 | Data storage method and device based on block chain |
CN111475567A (en) * | 2020-03-09 | 2020-07-31 | 上海能链众合科技有限公司 | Internet of things data sequential recording method |
CN113032803A (en) * | 2021-03-22 | 2021-06-25 | 翰雅(深圳)网络信息科技有限公司 | Method for safely storing and reading data |
CN113255001A (en) * | 2021-06-09 | 2021-08-13 | 湖北央中巨石信息技术有限公司 | Block chain-based calculation accounting method, system, device and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109656882A (en) | Data record method, extracting method and device, storage medium, terminal | |
US11956357B2 (en) | Traceable key block-chain ledger | |
US20170091463A1 (en) | Secure Audit Logging | |
JP6495346B2 (en) | Information processing system | |
CN106612320A (en) | Encrypted data dereplication method for cloud storage | |
CN102339370A (en) | Preservation method for electronic file, preservation system and verification system thereof | |
CN106067874B (en) | It is a kind of by the method for data record to server end, terminal and server | |
CN106776904A (en) | The fuzzy query encryption method of dynamic authentication is supported in a kind of insincere cloud computing environment | |
CN106557707B (en) | Method and system for processing document data | |
CN106603561A (en) | Block level encryption method in cloud storage and multi-granularity deduplication method | |
CN111339201B (en) | Evaluation method and system based on block chain | |
FR3082023A1 (en) | A SOFTWARE APPLICATION AND A COMPUTER SERVER TO AUTHENTICATE THE IDENTITY OF A DIGITAL CONTENT CREATOR AND THE INTEGRITY OF THE PUBLIC CREATOR CONTENT | |
CN104615929A (en) | Security key device for secure cloud services, and system and method of providing security cloud services | |
CN109495252A (en) | Data ciphering method, device, computer equipment and storage medium | |
CN109889494A (en) | A kind of voidable cloud data safety sharing method | |
CN112307458A (en) | Light node uplink method and device, Internet of things central control terminal and block chain network | |
CN111488372A (en) | Data processing method, device and storage medium | |
CN111460394A (en) | Copyright file verification method and device and computer readable storage medium | |
CN107094075A (en) | A kind of data block dynamic operation method based on convergent encryption | |
CN113704357A (en) | Smart city data sharing method and system based on block chain | |
WO2014197071A1 (en) | Secured embedded data encryption systems | |
CN111585995A (en) | Method and device for transmitting and processing safety wind control information, computer equipment and storage medium | |
CN112202555B (en) | Information processing method, device and equipment for generating random number based on information attribute | |
CN110032877A (en) | Image access method and its system | |
CN112133386A (en) | Block chain-based information processing method, device, equipment and medium |
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: 20190419 |