CN110046524A - A kind of processing method of data, device, electronic equipment and medium - Google Patents

A kind of processing method of data, device, electronic equipment and medium Download PDF

Info

Publication number
CN110046524A
CN110046524A CN201910304898.4A CN201910304898A CN110046524A CN 110046524 A CN110046524 A CN 110046524A CN 201910304898 A CN201910304898 A CN 201910304898A CN 110046524 A CN110046524 A CN 110046524A
Authority
CN
China
Prior art keywords
data
destination document
string
document
checking
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
CN201910304898.4A
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.)
Kunshan Q Technology Co Ltd
Original Assignee
Kunshan Q 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 Kunshan Q Technology Co Ltd filed Critical Kunshan Q Technology Co Ltd
Priority to CN201910304898.4A priority Critical patent/CN110046524A/en
Publication of CN110046524A publication Critical patent/CN110046524A/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
    • G06F21/602Providing cryptographic facilities or services
    • 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
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures

Landscapes

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

Abstract

The present invention discloses processing method, device, electronic equipment and the medium of a kind of data, and method includes: to obtain the original contents data of destination document, and carry out verification calculating to the original contents data according to default checking algorithm, obtains check value;The check value is encrypted using private key, generates digital signature;The digital signature is converted to by string of checking character using default converting algorithm, and the string of checking character is added in the destination document;Wherein, if the destination document added with the string of checking character is opened, the plaintext of the content-data of the destination document and the string of checking character are shown;Send or store the destination document.Scheme provided by the invention is for solving the problems, such as that original text shelves may cause the content-data of document to change because of transmittance process or storage medium, and receipt of subsequent or reading side, can not but discover the technical issues of whether document content data was altered.Realize the effect for improving document security.

Description

A kind of processing method of data, device, electronic equipment and medium
Technical field
The present invention relates to field of computer technology more particularly to a kind of processing method of data, device, electronic equipment and Jie Matter.
Background technique
With the development of the communication technology and memory technology, more and more data can using document mode carry out storage or Transmitting.The content of document directly can be quickly obtained for the ease of the user of subsequent browsing document, often not encrypt Clear-text way shows document.
However, after original text shelves are issued or are stored in storage medium certainly, it may be because of transmittance process problem or storage medium Problem causes the content-data of document to change.And receipt of subsequent or reading side, can not but whether discover document content data It was altered or had loss, to generate dispute.
Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind State data processing method, device, electronic equipment and the medium of the mould group of problem.
In a first aspect, providing a kind of processing method of data, comprising:
The original contents data of destination document are obtained, and school is carried out to the original contents data according to default checking algorithm Calculating is tested, check value is obtained;
The check value is encrypted using private key, generates digital signature;
The digital signature is converted to by string of checking character using default converting algorithm, and the string of checking character is added To in the destination document;Wherein, if the destination document added with the string of checking character is opened, the destination document The plaintext of content-data and the string of checking character are shown;
Send or store the destination document.
Optionally, after the character string is added in the destination document, further includes: receive or read the mesh Document is marked, and shows the plaintext and the string of checking character of the current content data of the destination document;If receiving inspection Instruction, then execute following step: obtaining the current content data, and according to the default checking algorithm to the Current Content Data carry out verification calculating, obtain test value;Based on the default converting algorithm, string of checking character described in display is reduced to The digital signature;The digital signature is decrypted using public key corresponding with the private key, obtains the check value;Than To the test value and the check value, to judge whether the current content data is consistent with the original contents data.
Optionally, the string of checking character is added in the destination document, including, by the string of checking character with key The mode of value pair is added in the destination document.
Optionally, the destination document is the document listings information of sets of documentation;The original contents data of the destination document Mark including each document in the sets of documentation;The transmission stores the target and asks, comprising: will add the check word The destination document after symbol string is retransmited or is stored after compressing together with the sets of documentation.
Optionally, the original contents data of the destination document further include the sub- content number of each document in the sets of documentation According to sub- check value, the sub- check value be according to default checking algorithm to the sub- content-data carry out verification calculate obtain 's.
Second aspect provides a kind of processing method of data, comprising:
It receives or reads destination document, and show the plaintext of the current content data of the destination document and check character String;If receiving check command, following step is executed:
The current content data is obtained, and master gage is carried out to the current content data according to default checking algorithm It calculates, obtains test value;
Based on default converting algorithm, string of checking character described in display is reduced to digital signature;
The digital signature is decrypted using public key, obtains check value;
The test value and the check value are compared, to judge whether the current content data checks character with described Corresponding original contents data of going here and there are consistent.
Optionally, before receiving or reading destination document, further includes: obtain the original contents number of the destination document According to, and verification calculating is carried out to the original contents data according to the default checking algorithm, obtain the check value;Using institute It states the corresponding private key of public key to encrypt the check value, generates the digital signature;It will using the default converting algorithm The digital signature is converted to the string of checking character, and the string of checking character is added in the destination document;Wherein, If the destination document added with the string of checking character is opened, the plaintext of the content-data of the destination document and the school Character string is tested to show;Send or store the destination document.
The third aspect provides a kind of data processing method of mould group, comprising:
In the inspection process of the mould group, the detection data that will acquire is corresponding with the unique identities identification code of the mould group The data storage areas being stored in outside the mould group;
The detection data corresponding with the unique identities identification code stored in the data storage areas is merged, Obtain merging data;
According to the mould set type that the unique identities identification code characterizes, the merging data is carried out to meet the mould group class The data conversion of type obtains translated data;
Using translated data as destination document, is stored or sent using any method of claim 1-5 To the terminal device for installing the mould group.
Fourth aspect provides a kind of processing unit of data, comprising:
First computing module, for obtaining the original contents data of destination document, and according to default checking algorithm to described Original contents data carry out verification calculating, obtain check value;
Encrypting module generates digital signature for encrypting using private key to the check value;
Adding module, for the digital signature to be converted to string of checking character using default converting algorithm, and will be described String of checking character is added in the destination document;Wherein, if the destination document added with the string of checking character is opened, The plaintext of the content-data of the destination document and the string of checking character are shown;
Processing module, for sending or storing the destination document.
5th aspect, provides a kind of computer readable storage medium, is stored thereon with computer program, the program is processed Device performs the steps of when executing
The original contents data of destination document are obtained, and school is carried out to the original contents data according to default checking algorithm Calculating is tested, check value is obtained;
The check value is encrypted using private key, generates digital signature;
The digital signature is converted to by string of checking character using default converting algorithm, and the string of checking character is added To in the destination document;Wherein, if the destination document added with the string of checking character is opened, the destination document The plaintext of content-data and the string of checking character are shown;
Send or store the destination document.
The technical solution provided in the embodiment of the present invention, has at least the following technical effects or advantages:
Processing method, device, electronic equipment and the medium of data provided in an embodiment of the present invention are first calculated according to default verification Method carries out verification calculating to the original contents data of destination document, obtains check value, then obtain check word by encryption and conversion Symbol string.It is saved and is sent by the way that string of checking character is added into destination document, so that subsequent opening destination document carries out When display, the content-data that can directly browse to plaintext can also be selected through string of checking character when needed to seeing Current content data is verified, and judges whether its content is altered.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 is the flow chart one of the processing method of data in the embodiment of the present invention;
Fig. 2 is in the embodiment of the present invention, the schematic diagram one of the processing methods of data;
Fig. 3 is the flowchart 2 of the processing method of data in the embodiment of the present invention;
Fig. 4 is the schematic diagram two of the processing method of data in the embodiment of the present invention;
Fig. 5 is the structural schematic diagram one of device in the embodiment of the present invention;
Fig. 6 is the structural schematic diagram two of device in the embodiment of the present invention;
Fig. 7 is the structural schematic diagram of electronic equipment in the embodiment of the present invention;
Fig. 8 is the structural schematic diagram of storage medium in the embodiment of the present invention;
The step of Fig. 9 is the data processing method of mould group in the embodiment of the present invention is schemed.
Specific embodiment
Technical solution in the embodiment of the present invention, general thought are as follows:
Processing method, device, electronic equipment and the medium of data provided in an embodiment of the present invention, obtain the original of destination document Beginning content-data, and verification calculating is carried out to the original contents data according to default checking algorithm, obtain check value;Using private Key encrypts the check value, generates digital signature;The digital signature is converted to by verification using default converting algorithm Character string, and the string of checking character is added in the destination document;Wherein, if added with the string of checking character Destination document is opened, and the plaintext of the content-data of the destination document and the string of checking character are shown.So that subsequent beat When opening destination document and being shown, the content-data of plaintext can be directly browsed to, can also select to pass through school when needed It tests character string to verify current content data, judges whether its content is altered.
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
A kind of processing method of data is present embodiments provided, referring to FIG. 1, this method comprises:
Step S101 obtains the original contents data of destination document, and according to default checking algorithm to the original contents Data carry out verification calculating, obtain check value;
Step S102 encrypts the check value using private key, generates digital signature;
The digital signature is converted to string of checking character using default converting algorithm by step S103, and by the verification Character string is added in the destination document;Wherein, described if the destination document added with the string of checking character is opened The plaintext of the content-data of destination document and the string of checking character are shown;
Step S104 sends or stores the destination document.
It should be noted that the destination document is that JSON, BSON or XML etc. have clear block and have key-value pair relationship Document format, this is not restricted.
Preferably, setting destination document is JSON format, if the document content of subsequent opening does not meet JSON structure, and is sent out Raw parsing mistake, it is known that the information received is imperfect.
The method of the data processing can be applied to document storage before, mailing before, printing before, fax before, hair mail before Or before being uploaded to network, this is not restricted.
In the following, the specific implementation step of the processing method of data provided in this embodiment is discussed in detail in conjunction with Fig. 1:
Step S101 obtains the original contents data of destination document, and according to default checking algorithm to the original contents Data carry out verification calculating, obtain check value.
After content-data refers to opening document, in the data that document file page is shown.The document of various formats carries The storage location and format of content-data are all each self-retainings, therefore can accurately just be obtained by the type of destination document To its original contents data.By taking Fig. 2 as an example, it is assumed that destination document is JSON format, and wherein original contents data fixation is shown in At content area 201.
The original contents data can be text information, compiler language or character string etc., and this is not restricted.
After obtaining original data content, original data content can integrally be verified according to preset checking algorithm It calculates and obtains check value.The mode that the verification calculates, which can according to need, pre-selects determination, and determining checking algorithm is public Open needs to receive document or reads the opposite end of document, can carry out content using being somebody's turn to do compared with checking method in order to which peer user is subsequent Verification.
In the specific implementation process, which can use CRC, MD5, SHA-1 or SHA-256 scheduling algorithm, herein With no restriction.
Step S102 encrypts the check value using private key, generates digital signature.
In view of the consistency of data, the source of strict guarantee document can believe, and for the ease of check value to be added into Destination document, the present embodiment also use the private key in asymmetric encryption techniques to add the calculated check value of step S101 It is close, generate digital signature.
Certainly, it needs that the corresponding public key of the private key is issued to all recipient or reading side extensively in advance, and private key is then It must strictly limit and be stored in sender or storage side.To guarantee to can confirm that the document must come from the sender or storage side.
The digital signature is converted to string of checking character using default converting algorithm by step S103, and by the verification Character string is added in the destination document;Wherein, described if the destination document added with the string of checking character is opened The plaintext of the content-data of destination document and the string of checking character are shown.
Specifically, it needs that the digital signature is converted to visual string of checking character using default converting algorithm, with The string of checking character can be added in the destination document by realization in a manner of key-value pair, and be in visible state.This turn Change algorithm to be also required to be disclosed to Document Creator side or reading side in advance, so that it can be restored according to the string of checking character received Digital signature, and then decrypt check value.
In the specific implementation process, which can use Base64 or GB2312 scheduling algorithm, and this is not restricted.
The string of checking character is added in the destination document, the designated position of document is specifically added to, for example, As shown in Fig. 2, being added to stamped signature region 202.The designated position can be disclosed to Document Creator side and reading side in advance, in order to It can identify that content area and checking character goes here and there region, so that acquisition can accurately be extracted in subsequent opening destination document Current content data and string of checking character.
Step S104 sends or stores the destination document.
After it will verify character string and be added to destination document, it can store or send as needed the destination document.Tool Body can be printing document, mailing paper document, fax paper document, USB flash disk storage document, optical disc storage document, mailbox and send Document uploads document to internet etc., and this is not restricted.
When destination document is opened or is received again, the current content data of the plaintext of destination document and add before Check character string can be shown so that user both can quickly directly from plaintext obtain content-data, can also adopt With checking character, string carries out document content verification.
In one embodiment, the method for verifying above-mentioned destination document is provided, specially a kind of processing side of data Method, as shown in Figure 3, comprising:
Step S301, receive or read destination document, and show the destination document current content data plaintext and It checks character string;If receiving check command, following step is executed:
Step S302, obtains the current content data, and according to default checking algorithm to the current content data into Row verification calculates, and obtains test value;
String of checking character described in display is reduced to digital signature based on default converting algorithm by step S303;
Step S304 is decrypted the digital signature using public key, obtains check value;
Step S305 compares the test value and the check value, thus judge the current content data whether with institute It states and checks character that go here and there corresponding original contents data consistent.
Specifically, step S301 is added to when user receives or reads out from storage medium using preceding method It checking character after the destination document of string, user opens destination document, then can be as described in Figure 2, it can see the current of display in plain text Content-data can also know string of checking character.After if user sees current content data, it is believed that content is inessential or can confirm that When content is important change, the browsing or processing of destination document can be directly carried out.After if user sees current content data, It was found that can choose triggering when having messy code, thinking that data are critically important or think that content is wrong and generate check command, executed with triggering Subsequent step S302-S305.The mode specifically triggered, which can be, clicks virtual checkout button, is also possible to incoming inspection order Deng this is not restricted.
It should be noted that step S303~step S304 be according to obtain before the step of going here and there of checking character come it is sequentially anti- To restoring check value.But step S303~it is no sequencing requirement, Ke Yixian between step S304 and step S302 Step S302 is executed, step S303 can also be first carried out, or be performed simultaneously, this is not restricted.
It is according to the content location before with document sender or storage side's agreement (or being apprised of) in step S302 Accurately to obtain the current content data.And verification calculating is carried out to the current content data according to default checking algorithm The method for obtaining test value is also consistent with the verification calculation method in step S101, does not make tired state herein.
Restored in step S303~step S304 digital signature and decryption obtain check value method be step S102~ The reversed reduction of step S103 calculates, and does not also make tired state herein.
In the test value for calculating current content data, and after restoring the check value of original contents data, pass through comparison Test value and check value, just can determine that current content data whether with check character that go here and there corresponding original contents data consistent, from And judge whether the content of destination document was altered, and then confirm the authenticity of document content.
In a kind of optional embodiment, when transmitting if necessary or storing a large amount of document, it can will need to transmit Sets of documentation in the mark (for example, title or number etc.) of each document be organized in document listings, as destination document.It adopts again Destination document check character the addition of string with step S101~S103 of the processing method of data above-mentioned, and will be added It checks character after the destination document after going here and there compresses together with document in sets of documentation and retransmits or store.
In the specific implementation process, compress mode can be using 7z, ZIP, RAR, ARJ, TAR, BZ2 or gzip etc., herein With no restriction.
Recipient or reading side after decompressing compressed package, can directly open the inventory in destination document comparison destination document Whether content meets with the document of decompression.When user is there are query or wants to verify destination document content authenticity, can use Step S302~S305 of the processing method of data above-mentioned verifies the content of destination document.
Preferably, in order to realize the lists of documents that can not only be examined in compressed package, moreover it is possible to examine other documents in compressed package Content.The mark in destination document not only including each document in sets of documentation can be set, also corresponding record has in sets of documentation The sub- check value (such as cryptographic Hash) of the sub- content-data of each document, the sub- check value are according to default checking algorithm antithetical phrase Content-data carries out the check value that verification calculates the document content of each document obtained.In this way, user uses data above-mentioned Processing method step S302~S305 the content of destination document is verified after, can also be by each in destination document Sub- content-data branch verifies the content of each document.When to guarantee that Masses of Document is saved and transmitted, number of documents It can be verified with content.
For example, as shown in figure 4, destination document content area 201, enumerate the title of all documents and right in plain text The content Hash value answered.The string of checking character of 202 displaying target document content data in stamped signature region.
As it can be seen that being packaged storage together with batch document by the destination document of setting inventory type or sending, not only can be reduced The size of transferring documents reduces transmission server pressure, moreover it is possible to guarantee verifying for number of documents and content.
Specifically, content-data is saved with clear-text way in document, in addition string of checking character, both can ensure that the one of data Cause property, security level to be improved can be needed to decide whether and whether examine document according to oneself by also ensuring that receiving end or reading end It is altered, may also pass through the inspection to string of checking character, know the document from specific transmission end.Further, to batch Document is measured, the destination document of inventory type is set, and after batch packing compression on the one hand transmission data can be effectively reduced in transmission together Amount promotes transmitting information content, moreover it is possible to which whether verifying batch document content has change in time.
In another embodiment, based on the same inventive concept, a kind of processing unit of data is also provided, such as Fig. 5 institute Show, comprising:
First computing module 501, for obtaining the original contents data of destination document, and according to default checking algorithm to institute It states original contents data and carries out verification calculating, obtain check value;
Encrypting module 502 generates digital signature for encrypting using private key to the check value;
Adding module 503, for the digital signature to be converted to string of checking character using default converting algorithm, and by institute String of checking character is stated to be added in the destination document;Wherein, if the destination document added with the string of checking character is beaten It opens, the plaintext of the content-data of the destination document and the string of checking character are shown;
Processing module 504, for sending or storing the destination document.
The device is document transmitting terminal or storage end.
By the device that the application is introduced, device used by the processing method to implement data provided by the present application, So based on the method that the application is introduced, the affiliated personnel in this field can understand specific structure and the deformation of the device, so Details are not described herein.Device used by all methods of the invention belongs to the range of the invention to be protected.
In another embodiment, based on the same inventive concept, a kind of processing unit of data is also provided, such as Fig. 6 institute Show, comprising:
Display module 601, for receiving or reading destination document, and show the current content data of the destination document Plaintext and string of checking character;If receiving check command, following step is executed:
Second computing module 602, for obtaining the current content data, and according to default checking algorithm to described current Content-data carries out verification calculating, obtains test value;
Recovery module 603, for based on default converting algorithm, string of checking character described in display to be reduced to digital label Chapter;
Deciphering module 604 obtains check value for the digital signature to be decrypted using public key;
Inspection module 605, for comparing the test value and the check value, to judge that the current content data is It is no to check character that go here and there corresponding original contents data consistent with described.
The device is Document Creator end or reading end.
By the device that the application is introduced, device used by the processing method to implement data provided by the present application, So based on the method that the application is introduced, the affiliated personnel in this field can understand specific structure and the deformation of the device, so Details are not described herein.Device used by all methods of the invention belongs to the range of the invention to be protected.
In another embodiment, based on the same inventive concept, a kind of electronic equipment is also provided, as shown in fig. 7, comprises Memory 710, processor 720 and it is stored in the computer program 711 that can be run on memory 710 and on processor 720, institute It states when processor 720 executes the computer program 711 and performs the steps of
The original contents data of destination document are obtained, and school is carried out to the original contents data according to default checking algorithm Calculating is tested, check value is obtained;
The check value is encrypted using private key, generates digital signature;
The digital signature is converted to by string of checking character using default converting algorithm, and the string of checking character is added To in the destination document;Wherein, if the destination document added with the string of checking character is opened, the destination document The plaintext of content-data and the string of checking character are shown;
Send or store the destination document.
In embodiments of the present invention, the present invention may be implemented when the processor 720 executes the computer program 711 to mention Any embodiment in the method for confession.
By the electronic equipment that the application is introduced, set used by the processing method to implement data provided by the present application It is standby, so based on the method that the present invention is introduced, the affiliated personnel in this field can understand specific structure and the deformation of the equipment, therefore And details are not described herein.Equipment used by all methods provided by the invention belongs to the range of the invention to be protected.
In another embodiment, based on the same inventive concept, a kind of computer readable storage medium 800 is also provided, As shown in figure 8, being stored thereon with computer program 811, which is characterized in that real when the computer program 811 is executed by processor Existing following steps:
The original contents data of destination document are obtained, and school is carried out to the original contents data according to default checking algorithm Calculating is tested, check value is obtained;
The check value is encrypted using private key, generates digital signature;
The digital signature is converted to by string of checking character using default converting algorithm, and the string of checking character is added To in the destination document;Wherein, if the destination document added with the string of checking character is opened, the destination document The plaintext of content-data and the string of checking character are shown;
Send or store the destination document.
In the specific implementation process, when which is executed by processor, side provided by the invention may be implemented Any embodiment in method.
In a kind of optional embodiment, a kind of data processing method of mould group is also provided, referring to FIG. 9, Fig. 9 is this The flow chart of the data processing method of mould group in inventive embodiments, this method comprises:
Step S901, in the inspection process of the mould group, the unique identities of the detection data and the mould group that will acquire The corresponding data storage areas being stored in outside the mould group of identification code;
Step S902, to the detection data corresponding with the unique identities identification code stored in the data storage areas It merges, obtains merging data;
Step S903 meets the merging data according to the mould set type that the unique identities identification code characterizes The data conversion of the mould set type obtains translated data;
Step S904, using translated data as destination document, using the processing method for the data that embodiment before provides It carries out being stored or sent to the terminal device for installing the mould group.
It should be noted that the mould group in the present embodiment can be camera module or fingerprint mould group etc., this is not restricted. The inspection process includes the various calibrations and detecting step before the factory of mould group.
In one embodiment, each mould group is previously provided with unique identities identification code, before inspection process or examines It surveys in processing procedure and obtains and store the unique identities identification code.Specifically, the unique identities identification code can be mould group sequence number or The combination of the sensor sequence number of module internal either mould group sequence number and sensor sequence number.In addition, when mould group is double takes the photograph Or when taking the photograph mould group, wherein each camera has the unique identities identification code of itself, optionally, which can more To include two parts: the identification code of each specific camera of the identification code and module internal of mould group entirety.For example, it is assumed that Camera module takes the photograph mould group to be double, including there are two camera B and C, and the binary encoding (such as sequence number) of camera module is a1, is taken the photograph As the b1 that is encoded to of head B, camera C's is encoded to c1, then can be set, and the unique identities identification code of camera B is a1b1, takes the photograph As head C unique identities identification code be a1c1 so that each camera has unduplicated unique identities identification code.
After inspection process starts, generated process data is detected every time and/or result data is used as detection data It is stored in data storage areas.Storage specifically corresponding with unique identities identification code, that is, detect the testing number that A mould group obtains It is stored according to the unique identities identification code of then corresponding A mould group, after carrying out a series of detections to A mould group, all data of generation can As the production resume of the A mould group, corresponding unique identities identification code storage.
Specifically, detection data is the original test data of each characterization processes website output, the detection data not with Mould set type is stored into the data format of EEPROM/OTP or address generation association, during the test, it is only necessary to test and note Data are recorded, without the concern for mould set type, and data format or the address of EEPROM/OTP is deposited into, testing efficiency can be improved. Also, it will test data and be stored in data storage areas, do not need to adapt to different mould set types repeatedly to detection data It formats, can also improve process efficiency.
It should also be noted that, will test in the data storage areas that data are first stored in outside mould group, detected It, can be according to the mould group only if a certain detection needs stored detection data before use to be detected when processing procedure One identity code reads out corresponding detection data from data storage areas and is detected.This avoid out of mould group The reading repeatedly of the storage unit in portion and change data format can be reduced data and be affected factor, improve reading efficiency and storage The consistency of data.
Next to the detection data corresponding with the unique identities identification code stored in the data storage areas into Row merges, and obtains merging data.
The detection data being stored in data storage areas carries out if being corresponding with identical unique identities identification code Merging is centrally placed.It is specific to merge mode, it can be merging and stored in an address area or joint account verification It is stored after code.It is specific to merge the time, it can be after obtaining inspection data every time, i.e., merge the inspection data of acquisition in real time Enter the corresponding data set of unique identities identification code, be also possible to after the completion of inspection process, then is corresponding by what is stored before The identical inspection data of unique identities identification code merges, herein with no restriction.
It should also be noted that, merging data can be to all testing numbers corresponding with the unique identities identification code According to merging, it is also possible to only merge critical data therein.Specifically, it is stored in the inspection of data storage areas Measured data is the original test data of each characterization processes website output, wherein critical data can specifically refer to according to client It is required that finally needing to be put into the series data of EEPROM or OPT or terminal.Specifically, it can be according to preset crucial number According to list or critical data judgment criteria, the inspection corresponding with the unique identities identification code that is stored out of described data storage areas Critical data is determined in measured data, then the critical data determined is merged.For example, critical data is AWB (auto white balance)、AF(auto focus)、LSC(lens shading correcting)、PDAF(phase Detection auto focus) etc. data.
In one embodiment, when mould group be it is double take the photograph or take the photograph mould group more when, as previously mentioned, each camera in mould group There is unique identities identification code.Data in the case of this kind merge can divide according to the unique identities identification code of each camera Not carry out data merging, so that the supplemental characteristic of each camera orderly can be stored and be identified.
Subsequently, the mould set type characterized according to the unique identities identification code, is met institute to the merging data The data conversion of mould set type is stated, translated data is obtained.
In the specific implementation process, it is contemplated that different mould set types (brand or model), to the data format of write-in There is different requirements, therefore after obtaining merging data, the type of mould group is first identified according to unique identities identification code, then number will be merged According to the types of models specified data format and address requirement is converted into, to adapt to different mould group requirements.
In one embodiment, when mould group be it is double take the photograph or take the photograph mould group more when, as previously mentioned, each camera in mould group There is unique identities identification code.In the case of this kind merging data conversion can according to each camera specified data format come Data conversion is carried out, so that the supplemental characteristic of each camera can be effectively recognized and store.
After completing the unified conversion of merging data, mould group can be made to obtain the data needed by the way of needing, It is set forth below for two kinds:
Translated data, is stored into the storage unit of the module internal by the first.
Specifically, the storage medium characteristic used due to each mould group it is different, it is specified that storage mode of operation it is different, therefore can The type for identifying mould group according to unique identities identification code with elder generation, adopts translated data according to the medium requirements of the mould set type In the corresponding address for the EEPROM/OTP that the processing method of the data provided with embodiment before stores progressive die group.
Second, translated data is sent to the terminal device for installing the mould group.
Specifically, it does not need that storage unit is arranged in mould group, does not need in factory advance row data write-in process yet. After mould group is installed on the terminal devices such as mobile phone, plate, request can be initiated to server to obtain by terminal device The processing method of translated data, the data provided with embodiment before using sends translated data to installing the mould group Terminal device, and be stored in the storage unit of terminal device.
Certainly, in specific implementation process, the mode that mould group obtains the data needed is not limited to above two, does not limit herein System.
The technical solution provided in the embodiment of the present invention, has at least the following technical effects or advantages:
Processing method, device, electronic equipment and the medium of data provided in an embodiment of the present invention are first calculated according to default verification Method carries out verification calculating to the original contents data of destination document, obtains check value, then obtain check word by encryption and conversion Symbol string.It is saved and is sent by the way that string of checking character is added into destination document, so that subsequent opening destination document carries out When display, the content-data that can directly browse to plaintext can also be selected through string of checking character when needed to seeing Current content data is verified, and judges whether its content is altered.
Algorithm and display are not inherently related to any particular computer, virtual system, or other device provided herein. Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs required by this kind of system Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments in this include institute in other embodiments Including certain features rather than other feature, but the combination of the feature of different embodiment means in the scope of the present invention Within and form different embodiments.For example, in the following claims, embodiment claimed it is any it One can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice Microprocessor or digital signal processor (DSP) realize gateway according to an embodiment of the present invention, proxy server, in system Some or all components some or all functions.The present invention is also implemented as executing side as described herein Some or all device or device programs (for example, computer program and computer program product) of method.It is such It realizes that program of the invention can store on a computer-readable medium, or can have the shape of one or more signal Formula.Such signal can be downloaded from an internet website to obtain, and perhaps be provided on the carrier signal or with any other shape Formula provides.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Component or step listed in the claims.Word "a" or "an" before component does not exclude the presence of multiple such Component.The present invention can be by means of including the hardware of several different components and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame Claim.

Claims (10)

1. a kind of processing method of data characterized by comprising
The original contents data of destination document are obtained, and master gage is carried out to the original contents data according to default checking algorithm It calculates, obtains check value;
The check value is encrypted using private key, generates digital signature;
The digital signature is converted to by string of checking character using default converting algorithm, and the string of checking character is added to institute It states in destination document;Wherein, if the destination document added with the string of checking character is opened, the content of the destination document The plaintext of data and the string of checking character are shown;
Send or store the destination document.
2. the method as described in claim 1, which is characterized in that the character string is being added to it in the destination document Afterwards, further includes:
The destination document is received or read, and shows the plaintext and the check word of the current content data of the destination document Symbol string;If receiving check command, following step is executed:
The current content data is obtained, and master gage is carried out to the current content data according to the default checking algorithm It calculates, obtains test value;
Based on the default converting algorithm, string of checking character described in display is reduced to the digital signature;
The digital signature is decrypted using public key corresponding with the private key, obtains the check value;
Compare the test value and the check value, thus judge the current content data whether with the original contents data Unanimously.
3. the method as described in claim 1, which is characterized in that the string of checking character is added in the destination document, Including the string of checking character is added in the destination document in a manner of key-value pair.
4. the method as described in claim 1, which is characterized in that the destination document is the document listings information of sets of documentation;Institute The original contents data for stating destination document include the mark of each document in the sets of documentation;
The transmission stores the target and asks, comprising: the destination document after the string that will check character described in addition with it is described Sets of documentation is retransmited or is stored after compressing together.
5. method as claimed in claim 4, which is characterized in that the original contents data of the destination document further include the text The sub- check value of the sub- content-data of each document in shelves group, the sub- check value are according to default checking algorithm in the son Hold data and carries out what verification calculating obtained.
6. a kind of processing method of data characterized by comprising
It receives or reads destination document, and show the plaintext of the current content data of the destination document and string of checking character;Such as Fruit receives check command, then executes following step:
The current content data is obtained, and verification calculating is carried out to the current content data according to default checking algorithm, is obtained Obtain test value;
Based on default converting algorithm, string of checking character described in display is reduced to digital signature;
The digital signature is decrypted using public key, obtains check value;
Compare the test value and the check value, thus judge the current content data whether with it is described check character string pair The original contents data answered are consistent.
7. method as claimed in claim 6, which is characterized in that before receiving or reading destination document, further includes:
Obtain the original contents data of the destination document, and according to the default checking algorithm to the original contents data into Row verification calculates, and obtains the check value;
The check value is encrypted using the public key corresponding private key, generates the digital signature;
The digital signature is converted to by the string of checking character using the default converting algorithm, and by the string of checking character It is added in the destination document;Wherein, if the destination document added with the string of checking character is opened, the target text The plaintext of the content-data of shelves and the string of checking character are shown;
Send or store the destination document.
8. a kind of data processing method of mould group characterized by comprising
In the inspection process of the mould group, the detection data that will acquire storage corresponding with the unique identities identification code of the mould group Data storage areas outside the mould group;
The detection data corresponding with the unique identities identification code stored in the data storage areas is merged, is obtained Merging data;
According to the mould set type that the unique identities identification code characterizes, the merging data is carried out to meet the mould set type Data conversion obtains translated data;
Using translated data as destination document, carry out being stored or sent to peace using any method of claim 1-5 Fill the terminal device of the mould group.
9. a kind of processing unit of data characterized by comprising
First computing module, for obtaining the original contents data of destination document, and according to default checking algorithm to described original Content-data carries out verification calculating, obtains check value;
Encrypting module generates digital signature for encrypting using private key to the check value;
Adding module, for the digital signature to be converted to string of checking character using default converting algorithm, and by the verification Character string is added in the destination document;Wherein, described if the destination document added with the string of checking character is opened The plaintext of the content-data of destination document and the string of checking character are shown;
Processing module, for sending or storing the destination document.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor It is performed the steps of when execution
The original contents data of destination document are obtained, and master gage is carried out to the original contents data according to default checking algorithm It calculates, obtains check value;
The check value is encrypted using private key, generates digital signature;
The digital signature is converted to by string of checking character using default converting algorithm, and the string of checking character is added to institute It states in destination document;Wherein, if the destination document added with the string of checking character is opened, the content of the destination document The plaintext of data and the string of checking character are shown;
Send or store the destination document.
CN201910304898.4A 2019-04-16 2019-04-16 A kind of processing method of data, device, electronic equipment and medium Pending CN110046524A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910304898.4A CN110046524A (en) 2019-04-16 2019-04-16 A kind of processing method of data, device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910304898.4A CN110046524A (en) 2019-04-16 2019-04-16 A kind of processing method of data, device, electronic equipment and medium

Publications (1)

Publication Number Publication Date
CN110046524A true CN110046524A (en) 2019-07-23

Family

ID=67277444

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910304898.4A Pending CN110046524A (en) 2019-04-16 2019-04-16 A kind of processing method of data, device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN110046524A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111400670A (en) * 2020-03-06 2020-07-10 全球能源互联网研究院有限公司 Watermark adding method, device, equipment and storage medium
CN112686019A (en) * 2020-12-25 2021-04-20 深圳市元征科技股份有限公司 Vehicle sensor data analysis method, device and storage medium
CN117150536A (en) * 2023-11-01 2023-12-01 北京敏行通达信息技术有限公司 Anti-counterfeiting method, device and equipment for document and readable storage medium
CN117390016A (en) * 2023-09-27 2024-01-12 希维科技(广州)有限公司 Method, apparatus and storage medium for generating battery passport
CN117390016B (en) * 2023-09-27 2024-05-31 希维科技(广州)有限公司 Method, apparatus and storage medium for generating battery passport

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1829149A (en) * 2006-02-08 2006-09-06 于蕾 Making method for electronic false-proof seal
CN101702150A (en) * 2009-12-02 2010-05-05 江西金格网络科技有限责任公司 Method for protecting, verifying and repealing content of PDF document page
CN104376252A (en) * 2013-08-12 2015-02-25 陈杰 Method for verifying contents on basis of digital signature codes
CN104917769A (en) * 2015-06-11 2015-09-16 北京嘉和美康信息技术有限公司 Electronic medical record signature method and device
CN105574435A (en) * 2015-12-22 2016-05-11 杭州安存网络科技有限公司 On-line electronic contract signing and verifying methods, device and system
CN105812146A (en) * 2016-05-26 2016-07-27 王云鹏 MD5-based two-way encryption data protection method
CN107678983A (en) * 2017-09-07 2018-02-09 维沃移动通信有限公司 A kind of acquisition methods and mobile terminal of camera module data
CN108427888A (en) * 2017-02-15 2018-08-21 阿里巴巴集团控股有限公司 File signature method, file verification method and corresponding intrument and equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1829149A (en) * 2006-02-08 2006-09-06 于蕾 Making method for electronic false-proof seal
CN101702150A (en) * 2009-12-02 2010-05-05 江西金格网络科技有限责任公司 Method for protecting, verifying and repealing content of PDF document page
CN104376252A (en) * 2013-08-12 2015-02-25 陈杰 Method for verifying contents on basis of digital signature codes
CN104917769A (en) * 2015-06-11 2015-09-16 北京嘉和美康信息技术有限公司 Electronic medical record signature method and device
CN105574435A (en) * 2015-12-22 2016-05-11 杭州安存网络科技有限公司 On-line electronic contract signing and verifying methods, device and system
CN105812146A (en) * 2016-05-26 2016-07-27 王云鹏 MD5-based two-way encryption data protection method
CN108427888A (en) * 2017-02-15 2018-08-21 阿里巴巴集团控股有限公司 File signature method, file verification method and corresponding intrument and equipment
CN107678983A (en) * 2017-09-07 2018-02-09 维沃移动通信有限公司 A kind of acquisition methods and mobile terminal of camera module data

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111400670A (en) * 2020-03-06 2020-07-10 全球能源互联网研究院有限公司 Watermark adding method, device, equipment and storage medium
CN111400670B (en) * 2020-03-06 2023-12-15 全球能源互联网研究院有限公司 Watermark adding method, device, equipment and storage medium
CN112686019A (en) * 2020-12-25 2021-04-20 深圳市元征科技股份有限公司 Vehicle sensor data analysis method, device and storage medium
CN117390016A (en) * 2023-09-27 2024-01-12 希维科技(广州)有限公司 Method, apparatus and storage medium for generating battery passport
CN117390016B (en) * 2023-09-27 2024-05-31 希维科技(广州)有限公司 Method, apparatus and storage medium for generating battery passport
CN117150536A (en) * 2023-11-01 2023-12-01 北京敏行通达信息技术有限公司 Anti-counterfeiting method, device and equipment for document and readable storage medium
CN117150536B (en) * 2023-11-01 2024-01-02 北京敏行通达信息技术有限公司 Anti-counterfeiting method, device and equipment for document and readable storage medium

Similar Documents

Publication Publication Date Title
US11335213B2 (en) Method and apparatus for encrypting data, method and apparatus for decrypting data
JP2020517200A (en) Block chain-based document management method using UTXO-based protocol and document management server using this method
CN106878265B (en) Data processing method and device
CN105049425A (en) Physical isolation transmission method based on two-dimension code
CN110046524A (en) A kind of processing method of data, device, electronic equipment and medium
CN111740838B (en) Trusted uplink method and system for block chain data
CN110543510B (en) Bill data processing method, device, storage medium and computer equipment
JP2008243209A (en) Server system and method for authenticating document image
CN111353180A (en) Block chain evidence storing method, evidence obtaining method and system
WO1998056129A1 (en) System and method for processing transaction messages
US20150281196A1 (en) Increased communication security
CN104008351A (en) System, method and device for Windows application program integrity checking
CN103617402B (en) A kind of multimedia electronic data forensic report and generation, methods of exhibiting and system
US20160380771A1 (en) Binary code authentication
CN110232021A (en) The method and device of page test
CN105426348A (en) Extensible Markup Language (XML) file generating method, apparatus and system
CN110598433A (en) Anti-counterfeiting information processing method and device based on block chain
CN113452526B (en) Electronic file certification method, verification method and corresponding devices
CN111160504A (en) Method, device and equipment for generating dynamic two-dimensional code and storage medium
CN106888094B (en) A kind of endorsement method and server
CN112948882A (en) Electronic contract encryption method and device and storage medium
CN110493011B (en) Block chain-based certificate issuing management method and device
CN111865557B (en) Verification code generation method and device
CN109218009B (en) Method, client and server for improving equipment ID security
US9454605B1 (en) Transferring data between devices using bar codes

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: 20190723