CN110069906A - A kind of encryption and decryption method and its device of electronic document - Google Patents

A kind of encryption and decryption method and its device of electronic document Download PDF

Info

Publication number
CN110069906A
CN110069906A CN201910181682.3A CN201910181682A CN110069906A CN 110069906 A CN110069906 A CN 110069906A CN 201910181682 A CN201910181682 A CN 201910181682A CN 110069906 A CN110069906 A CN 110069906A
Authority
CN
China
Prior art keywords
information
electronic
electronic document
watermark information
seal
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
CN201910181682.3A
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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201910181682.3A priority Critical patent/CN110069906A/en
Publication of CN110069906A publication Critical patent/CN110069906A/en
Priority to PCT/CN2019/118412 priority patent/WO2020181818A1/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/10Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
    • G06F21/16Program or content traceability, e.g. by watermarking

Abstract

The invention discloses a kind of encryption method of electronic document and its devices.This method, comprising: obtain Electronic Coding seal information and the first electronic document, the Electronic Coding seal information include the information obtained after being encrypted by the private key in RSA key to watermark information and initiating electron seal;By Electronic Coding seal information load in first electronic document, the second electronic document is obtained;Second electronic document and the watermark information are passed through predetermined encryption algorithm to encrypt together, obtain the encrypted electronic file to be sent to destination address.By being encrypted to initiating electron seal, and the first electronic document for being loaded with Electronic Coding seal information is encrypted, improve electronic document examination & approval and it is with an official seal affixed during safety, avoid that third party distorts encrypted electronic file into destination address transmission process by encrypted electronic file.

Description

A kind of encryption and decryption method and its device of electronic document
Technical field
The present invention relates to encryption technology field, the encryption and decryption method and its device of espespecially a kind of electronic document.
Background technique
With the development of science and technology, E-seal has been widely applied in people's life, wherein E-seal is with elder generation Into simulation with digital technique tradition seal in kind.
In general, personnel can be qualified to examination & approval when different personnel examine same file and distinguish with an official seal affixed File cover E-seal, thus reduce paper document need to be transferred to different places carry out seal capping.
It is found in the prior art however, the present inventor states in realization, electronic document is transferred to from the first Two people carry out during examining and being with an official seal affixed, which may be intercepted and copied by the third party seal of the second people, So as to cause electronic document, safety is lower during examining and is with an official seal affixed.
Summary of the invention
In order to solve the above-mentioned technical problems, the present invention provides a kind of encryption and decryption method and device of electronic document, energy Enough solve the problems, such as that electronic document safety during examining and is with an official seal affixed is lower.
In order to reach the object of the invention, the present invention provides a kind of encryption methods of electronic document, comprising:
Electronic Coding seal information and the first electronic document are obtained, the Electronic Coding seal information includes passing through RSA The information that private key in key obtains after encrypting to watermark information and initiating electron seal;
By Electronic Coding seal load in first electronic document, the second electronic document is obtained;
Second electronic document and the watermark information are passed through predetermined encryption algorithm together to encrypt, obtain to It is sent to the encrypted electronic file of destination address.
It further, include multiple information fields for clearing a paper in the watermark information, the acquisition electronics adds Close seal information includes:
Multiple information fields for clearing a paper are extracted from the watermark information;
The multiple information fields for being used to clear a paper are ranked up composition examination & approval chain number according to default examination & approval sequence According to;
After the examination & approval chain data and the initiating electron seal are encrypted, Electronic Coding seal information is obtained.
Further, before the acquisition Electronic Coding seal information, the method also includes:
By handling physical seal, the numerical data for being stored as preset format is obtained, by the preset format Numerical data is as initiating electron seal.
The present invention also provides a kind of decryption methods of electronic document, comprising:
Encrypted electronic file is received, the encrypted electronic file is pre- to pass through the second electronic document and watermark information together If Encryption Algorithm carries out the electronic document of encryption acquisition;
The encrypted electronic file is decrypted according to default decipherment algorithm, obtains the second electronic document and the first watermark Information, second electronic document include Electronic Coding seal information, and the Electronic Coding seal information includes passing through RSA key In private key watermark information and initiating electron seal are encrypted after the information that obtains;
The Electronic Coding seal information is decrypted by the public key in RSA key, obtains the second watermark information;
According to first watermark information and second watermark information, first watermark information and described second is determined Whether watermark information is identical;
If they are the same, it is determined that the encrypted electronic file is legitimate files;
If not identical, it is determined that the encrypted electronic file is illegal file.
Further, in first watermark information and second watermark information include multiple letters for clearing a paper Cease field, it is described according to first watermark information and second watermark information, determine first watermark information with it is described Whether the second watermark information is identical to include:
Compare the multiple information fields and second watermark information for clearing a paper in first watermark information In whether corresponded to for multiple information fields for clearing a paper it is identical;
If first watermark information corresponds to identical with multiple information fields in second watermark information, it is determined that The encrypted electronic file is legitimate files;
At least one information field does not correspond to identical if it exists, it is determined that the encrypted electronic file is illegal file.
Further, the determination encrypted electronic file is after legitimate files, further includes:
By the first watermark information or second watermark information by presetting transfer algorithm, target character or target are converted to Two dimensional code;
The target character or the load of target two dimensional code are exported in second electronic document.
The present invention also provides a kind of encryption devices of electronic document, comprising:
Acquiring unit, for obtaining Electronic Coding seal information and the first electronic document, the Electronic Coding seal letter Breath includes the information obtained after being encrypted by the private key in RSA key to watermark information and initiating electron seal;
Loading unit, for Electronic Coding seal information load in first electronic document, to be obtained second Electronic document;
Encryption unit, for carrying out second electronic document and the watermark information by predetermined encryption algorithm together Encryption, obtains the encrypted electronic file to be sent to destination address.
It further, include multiple information fields for clearing a paper, the acquiring unit packet in the watermark information It includes:
Extraction module, for extracting multiple information fields for clearing a paper from the watermark information;
Sorting module, for being ranked up the multiple information fields for being used to clear a paper according to default examination & approval sequence Composition examination & approval chain data;
Encrypting module obtains electronics and adds after being encrypted the examination & approval chain data and the initiating electron seal Close seal information.
Further, in described device further include:
Processing unit, for by handling physical seal, obtaining before the acquisition Electronic Coding seal information To the numerical data for being stored as preset format, using the numerical data of the preset format as initiating electron seal.
The present invention also provides a kind of computer equipment, including memory and processor, meter is stored in the memory Calculation machine readable instruction, when the computer-readable instruction is executed by the processor, so that the processor executes as described above The encrypting step of electronic document.
The present invention also provides a kind of storage medium for being stored with computer-readable instruction, the computer-readable instruction quilt When one or more processors execute, so that one or more processors execute the encryption method of electronic document as described above Step.
The present invention also provides a kind of decryption devices of electronic document, comprising:
Receiving unit, for receiving encrypted electronic file, the encrypted electronic file is by the second electronic document and watermark Information passes through the electronic document that predetermined encryption algorithm carries out encryption acquisition together;
First decryption unit obtains second for the encrypted electronic file to be decrypted according to default decipherment algorithm Electronic document and the first watermark information, second electronic document include Electronic Coding seal information, the Electronic Coding seal Information includes the information obtained after being encrypted by the private key in RSA key to watermark information and initiating electron seal;
Second decryption unit is obtained for the Electronic Coding seal information to be decrypted by the public key in RSA key Obtain the second watermark information;
Determination unit, for determining first watermark according to first watermark information and second watermark information Whether information and second watermark information are identical;If they are the same, it is determined that the encrypted electronic file is legitimate files;If not phase Together, it is determined that the encrypted electronic file is illegal file.
Further, in first watermark information and second watermark information include multiple letters for clearing a paper Field is ceased, the determination unit includes:
Comparison module, in first watermark information for clearing a paper multiple information fields with it is described It is identical whether multiple information fields in the second watermark information for clearing a paper correspond to;
Determining module, if right for first watermark information and multiple information fields in second watermark information It answers identical, it is determined that the encrypted electronic file is legitimate files;
The determining module, be also used at least one information field if it exists do not correspond to it is identical, it is determined that encryption electricity Subfile is illegal file.
Further, described device further include:
Converting unit, for determine the encrypted electronic file be legitimate files after, by the first watermark information or institute The second watermark information is stated by presetting transfer algorithm, is converted to target character or target two dimensional code;
Output unit, for exporting the target character or the load of target two dimensional code in second electronic document.
The present invention also provides a kind of computer equipment, including memory and processor, meter is stored in the memory Calculation machine readable instruction, when the computer-readable instruction is executed by the processor, so that the processor executes as described above The decryption step of electronic document.
The present invention also provides a kind of storage medium for being stored with computer-readable instruction, the computer-readable instruction quilt When one or more processors execute, so that one or more processors execute the decryption method of electronic document as described above Step.
By above-mentioned technical proposal, the present invention provides a kind of encryption and decryption method and devices of electronic document, by obtaining Electronic Coding seal information and the first electronic document are taken, due to including by RSA key in Electronic Coding seal information The information that private key obtains after encrypting to watermark information and initiating electron seal, by loading Electronic Coding seal first In electronic document, the second electronic document is obtained, so that the second electronic document safety with higher, further again by second Electronic document and watermark information pass through predetermined encryption algorithm together and are encrypted, and obtain the encryption electricity to be sent to destination address Subfile.Compared with directly carrying out examination & approval and mode with an official seal affixed on electronic document in the prior art, the embodiment of the present invention By encrypting to initiating electron seal, Electronic Coding seal information is obtained, and to being loaded with Electronic Coding seal information Electronic document carry out secondary encryption, obtain encrypted electronic file improve electronic document examination & approval and it is with an official seal affixed during Safety, avoids that third party distorts encrypted electronic file into destination address transmission process by encrypted electronic file.
Detailed description of the invention
Attached drawing is used to provide to further understand technical solution of the present invention, and constitutes part of specification, with this The embodiment of application technical solution for explaining the present invention together, does not constitute the limitation to technical solution of the present invention.
Fig. 1 is the flow diagram of one embodiment of encryption method of electronic document of the present invention;
Fig. 2 is the flow diagram of one embodiment of decryption method of electronic document of the present invention;
Fig. 3 is the structural schematic diagram of one embodiment of encryption device of electronic document of the present invention;
Fig. 4 is the structural schematic diagram of another embodiment of encryption device of electronic document of the present invention;
Fig. 5 is the structural schematic diagram of decryption one embodiment of device of electronic document of the present invention;
Fig. 6 is the structural schematic diagram of decryption another embodiment of device of electronic document of the present invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention Embodiment be described in detail.It should be noted that in the absence of conflict, in the embodiment and embodiment in the application Feature can mutual any combination.
Step shown in the flowchart of the accompanying drawings can be in a computer system such as a set of computer executable instructions It executes.Also, although logical order is shown in flow charts, and it in some cases, can be to be different from herein suitable Sequence executes shown or described step.
Fig. 1 is the flow diagram of one embodiment of encryption method of electronic document of the present invention.As shown in Figure 1, the present embodiment Executing subject be electronic document encryption device, wherein the encryption device of electronic document can be independently arranged, and also can be set In the server for clearing a paper.The applicable scene of the present embodiment is adding to electronic document during document approvals It is close.The encryption method of electronic document provided in this embodiment, comprising:
Step 101 obtains Electronic Coding seal information and the first electronic document.
Electronic Coding seal information in the present embodiment includes by the private key in RSA key to watermark information and initial electricity The information that sub- seal obtains after being encrypted, the electronic document are the files for preparing examination & approval, after electronic document examination & approval pass through Can to the electronic document cover described in meet accident E-seal and load watermark information, wherein watermark information include at least with Lower any one or combinations thereof: examination & approval pass through time, examination & approval time started, submitter's information, approver's information, departments of examination and approval's letter Breath.
Not being due to initiating electron seal is the E-seal directly acquired, specifically can be by physical seal Reason, obtains the numerical data for being stored as preset format, and using the numerical data of the preset format as initiating electron seal, here Preset format can be .seal format numerical data.For example, it by covering physical seal mould onto blank sheet of paper, connects , pictorial information is converted by the marking of the lid on blank sheet of paper, followed by by cutting out picture, mixes colours, removes point, not side etc. After operation, the pictorial information obtained after processing is stored as to the numerical data of .seal format.
For the embodiment of the present invention, while carrying out the cryptographic operation of files electronic file, in the watermark information of load Including multiple information fields for clearing a paper, for example, submitter's information, submission time, the examination & approval portion of each examination & approval environment Door information, examining temporal information and approver's information can believe during specifically obtaining Electronic Coding seal information from watermark Multiple information fields for clearing a paper are extracted in breath, and by the multiple information fields for being used to clear a paper according to default examination & approval Sequence is ranked up composition examination & approval chain data, and will examination & approval chain data and after initiating electron seal encrypted, obtain electronics and add Close seal information.
Illustratively, data can be formed examination & approval chain data with separator "/" by above-mentioned information field, examine chain data Composition format in the following example: " user1/2018-08-23 15:00:18/ project management department 2018-08-18 of user2 14:00:15/ Office user3 2018-08-18 15:03:06/ ZongJingBan user4 2018-08-23 14:08:15/ ".It then will examination & approval Chain data and initiating electron seal are combined into be-encrypted data, by obtaining Electronic Coding after encrypting to be-encrypted data Seal information.
Further, the method encrypted to watermark information and initiating electron seal may include that existing any encryption is calculated Method can execute encrypting step by encryption key, pass through solution for example, RSA Algorithm, can determine key pair by RSA Algorithm Key executes decryption step.It should be noted that improve encryption strength, RSA key is at least 500 bit lengths, the present embodiment RSA key can use 1024.
Step 102 loads the Electronic Coding seal information in first electronic document, obtains the second electronics text Part.
Specifically, third party intercepts and distorts the first electronics text in order to prevent after first electronic document examination & approval pass through Part can load Electronic Coding seal information in electronic document, to obtain the second electronics for being loaded with initiating electron seal File, due to the Electronic Coding seal information safety with higher loaded in the second electronic document, not third party can be with It cracks easily, to improve the safety of electronic document.
Second electronic document and the watermark information are passed through predetermined encryption algorithm together and encrypt by step 103, Obtain the encrypted electronic file to be sent to destination address.
Specifically, passing through predetermined encryption algorithm pair to improve the safety that the second electronic document is sent to destination address Second electronic document and watermark information are encrypted, and encrypted electronic file is obtained.Due to being had been covered in the second electronic document Electronic Coding seal information, so that being carried out using predetermined encryption algorithm to the second electronic document and watermark information secondary encrypted Encrypted electronic file has higher safety, is not easy to be cracked.
It should be noted that the predetermined encryption algorithm can be the preset Encryption Algorithm of those skilled in the art, such as Aes algorithm, chaos sequence algorithm, LSB algorithm etc. are specifically encrypting the second electronic document and watermark information together In the process, after can encrypting by predetermined encryption algorithm to watermark information, the image of encrypted watermark is obtained, and water will be encrypted The image of print is embedded in the second electronic document, to obtain encrypted electronic file, can also be embedded in certainly by watermark information To the second electronic document, after being encrypted by the second electronic document of the predetermined encryption algorithm to insertion watermark information, obtain Encrypted electronic file.
A kind of encryption method of electronic document provided in an embodiment of the present invention, by obtain Electronic Coding seal information and First electronic document, due to including by the private key in RSA key in Electronic Coding seal information to watermark information and initial electricity The information that sub- seal obtains after being encrypted, by the way that the load of Electronic Coding seal in the first electronic document, is obtained the second electricity Subfile, so that the second electronic document safety with higher, further again by the second electronic document and watermark information one It rises and is encrypted by predetermined encryption algorithm, obtain the encrypted electronic file to be sent to destination address.With in the prior art On electronic document directly carry out examination & approval compared with mode with an official seal affixed, the embodiment of the present invention by initiating electron seal into Row encryption obtains Electronic Coding seal information, and carries out secondary add to the electronic document for being loaded with Electronic Coding seal information It is close, it obtains encrypted electronic file and improves electronic document safety during examining and is with an official seal affixed, avoid that electricity will be encrypted Subfile third party into destination address transmission process distorts encrypted electronic file.
Fig. 2 is the flow diagram of one embodiment of decryption method of electronic document of the present invention.As shown in Fig. 2, the present embodiment Executing subject be decryption file device, wherein decryption file device can be independently arranged, also can be set for electronics text On the decryption server of part.The applicable scene of the present embodiment be file whole approval process after to the second encrypted electronic file It is decrypted.The encryption method of electronic document provided in this embodiment, comprising:
Step 201 receives encrypted electronic file, and the encrypted electronic file is by the second electronic document and watermark information one Play the electronic document that encryption acquisition is carried out by predetermined encryption algorithm.
Wherein, encrypted electronic file is to carry out the second electronic document and watermark information by predetermined encryption algorithm together Encrypt the electronic document obtained, safety with higher, if electronics can not be directly acquired by electronic document not being decrypted Content in file.
Step 202, according to preset decipherment algorithm the encrypted electronic file is decrypted, obtain the second electronic document and First watermark information.
Wherein, the second electronic document includes Electronic Coding seal information, which includes close by RSA The information that private key in key obtains after encrypting to watermark information and initiating electron seal.
It is not third party's interception to verify recipient after receiving encrypted electronic file for the embodiment of the present invention, Encrypted electronic file can be decrypted according to default decipherment algorithm, by the way that the second electronic document and the can be obtained after decryption One watermark information.
It should be noted that default decipherment algorithm and predetermined encryption algorithm in step 103 here is reverse process, due to Watermark information has used twice in the ciphering process of electronic document, so by the way that the second encrypted electronic file is decrypted, What is got is electronic document watermark information used in second of ciphering process, i.e. the first watermark information.
Step 203 is decrypted the Electronic Coding seal information by the public key in RSA key, obtains the second water Official seal breath.
The present embodiment uses rivest, shamir, adelman RSA Algorithm, and RSA Algorithm uses 1024 keys, that is, passes through rsa encryption Algorithm determines a pair of of RSA key, one of them is private key (SK), is protected by each department for the ciphering terminal of electronic document It deposits, for encrypting to obtain Electronic Coding seal information;Another is public-key cryptography (PK), is stored in the end of printing electronic document End, for Electronic Coding seal information to be decrypted.
It should be noted that the process that Electronic Coding seal information is decrypted by the public key in RSA key here To be reverse with the process that is encrypted in step 101 to initiating electron seal and watermark information, since watermark information is in electronics It has been used twice in the ciphering process of file, so what is got is electronics by the way that Electronic Coding seal information is decrypted File watermark information used in second of ciphering process, i.e. the second watermark information.
Step 204, according to first watermark information and second watermark information, determine first watermark information with Whether second watermark information is identical.
The watermark information as used in encrypted electronic file processes is identical watermark information, so encrypting to second Electronic document, which decrypts extracted the first watermark information and the second watermark information, should also be identical watermark information, pass through ratio It is whether identical as the second watermark information to the first watermark information, can find whether electronic document is to distort in time.
During determining whether the first watermark information and the second watermark information are identical, due to the first watermark information and It include multiple information fields for clearing a paper in two watermark informations, for example, submitter's information, submission time, each examination & approval Departments of examination and approval's information of environment examines temporal information and approver's information, specifically can be by comparing in the first watermark information Whether multiple information fields for clearing a paper and multiple information fields in the second watermark information for clearing a paper are corresponding It is identical;If the first watermark information corresponds to identical with multiple information fields in the second watermark information, it is determined that encrypted electronic text Part is legitimate files;At least one information field does not correspond to identical if it exists, it is determined that encrypted electronic file is illegal file.
Step 205a, if they are the same, it is determined that the encrypted electronic file is legitimate files.
For the embodiment of the present invention, if they are the same, then illustrates that electronic document is not tampered in transmission process, determine the encryption Electronic document is legitimate files.
If corresponding with step 205a have step 205b, not identical, it is determined that the encrypted electronic file is non-French Part.
For the embodiment of the present invention, if not identical, illustrate that electronic document may be tampered in transmission process, determining should Encrypted electronic file is illegal file.
It should be noted that can believe to initiating electron seal and watermark due in the ciphering process of electronic document While breath is encrypted, initiating electron seal and encrypted E-seal and watermark information can also be subjected to whole add It is close, newly-added information identical with watermark information can also be increased, thus to encrypted electronic file after all departments affix one's seal During being decrypted, the newly-added information after can extracting decryption first further believes Electronic Coding seal by PK Breath is decrypted, the watermark information after being decrypted, and then, the watermark information after decryption and the newly-added information after decryption are carried out It compares, after comparison is identical, determines that the encrypted electronic file is legitimate files, otherwise determine that the encrypted electronic file is non-French Part.
Preferably, on the basis of the above embodiments, if encrypted electronic file is legitimate files, illustrate that electronic document is Safety, further after determining that encrypted electronic file is legitimate files, for the ease of the printing to electronic document, it can incite somebody to action First watermark information or the second watermark information are converted to target character or target two dimensional code by presetting transfer algorithm;By target Character or the load of target two dimensional code export in the second electronic document, so as to more intuitively check electronic document.
The decryption method of a kind of electronic document provided in an embodiment of the present invention, by receiving encrypted electronic file, due to adding Cipher telegram subfile is the electronics text that the second electronic document and watermark information are passed through to predetermined encryption algorithm together and carry out encryption acquisition Part, safety with higher need that encrypted electronic file is decrypted according to default decipherment algorithm, to obtain the second electricity Subfile and the first watermark information are further again decrypted Electronic Coding seal information by the public key in RSA key, obtain The second watermark information, by judging the first watermark information and whether the second watermark information identical determines that encrypted electronic file is No is legitimate files.Compared with directly carrying out examination & approval and mode with an official seal affixed on electronic document in the prior art, the present invention Embodiment obtains Electronic Coding seal information, and print to Electronic Coding is loaded with by encrypting to initiating electron seal The electronic document of chapter information carries out secondary encryption, obtains encrypted electronic file and improves electronic document in examination & approval and with an official seal affixed Safety in the process, avoids that third party distorts encrypted electronic file into destination address transmission process by encrypted electronic file.
Further, the specific implementation as Fig. 1 the method, the embodiment of the invention provides a kind of adding for electronic document Close device, as shown in figure 3, the encryption device of the electronic document includes: that first acquisition unit 31, processing unit 32 and encryption are single Member 33, wherein
Acquiring unit 31 can be used for obtaining Electronic Coding seal information and the first electronic document, the Electronic Coding Seal information includes the information obtained after being encrypted by the private key in RSA key to watermark information and initiating electron seal;
Loading unit 32 can be used for loading the Electronic Coding seal information in first electronic document, obtain Obtain the second electronic document;
Encryption unit 33 can be used for together calculating second electronic document and the watermark information by predetermined encryption Method is encrypted, and the encrypted electronic file to be sent to destination address is obtained.
The encryption device of electronic document provided in an embodiment of the present invention, by obtaining Electronic Coding seal information and first Electronic document, due to including being printed by the private key in RSA key to watermark information and initiating electron in Electronic Coding seal information The information obtained after Zhang Jinhang encryption, by the way that the load of Electronic Coding seal in the first electronic document, is obtained the second electronics text Part, so that the second electronic document safety with higher, further again leads to the second electronic document and watermark information together It crosses predetermined encryption algorithm to be encrypted, obtains the encrypted electronic file to be sent to destination address.With in the prior art in electricity It directly carries out examination & approval in subfile to compare with mode with an official seal affixed, the embodiment of the present invention is by adding initiating electron seal It is close, Electronic Coding seal information is obtained, and secondary encryption is carried out to the electronic document for being loaded with Electronic Coding seal information, obtained Electronic document safety during examining and is with an official seal affixed is improved to encrypted electronic file, is avoided encrypted electronic file Into destination address transmission process, third party distorts encrypted electronic file.
In specific application scenarios, as shown in figure 4, described device further include:
Processing unit 34 can be used for before the acquisition Electronic Coding seal information, by carrying out to physical seal Processing, obtains the numerical data for being stored as preset format, using the numerical data of the preset format as initiating electron seal.
It further, include multiple information fields for clearing a paper, the acquiring unit 31 in the watermark information Include:
Extraction module 311 can be used for extracting multiple information fields for clearing a paper from the watermark information;
Sorting module 312 can be used for the multiple information fields for being used to clear a paper according to default examination & approval sequence It is ranked up composition examination & approval chain data;
Encrypting module 313 after can be used for being encrypted the examination & approval chain data and the initiating electron seal, obtains Electronic Coding seal information.
It should be noted that its of each functional unit involved by a kind of encryption device of electronic document provided in this embodiment He accordingly describes, can be with reference to the corresponding description of Fig. 1, and details are not described herein.
It is stored thereon with based on above-mentioned method as shown in Figure 1 correspondingly, the present embodiment additionally provides a kind of storage medium Computer program, which realizes the encryption of above-mentioned electronic document as shown in Figure 1 method when being executed by processor.
Further, the specific implementation as Fig. 2 the method, the embodiment of the invention provides a kind of solutions of electronic document Close device, as shown in figure 5, the decryption device of electronic document provided in this embodiment includes: receiving unit 41, the first decryption unit 42, the second decryption unit 43 and determination unit 44;
Receiving unit 41, can be used for receiving encrypted electronic file, and the encrypted electronic file is by the second electronic document Pass through the electronic document that predetermined encryption algorithm carries out encryption acquisition together with watermark information;
First decryption unit 42 can be used for that the encrypted electronic file is decrypted according to default decipherment algorithm, obtain The second electronic document and the first watermark information are obtained, second electronic document includes Electronic Coding seal information, and the electronics adds Close seal information includes the letter obtained after being encrypted by the private key in RSA key to watermark information and initiating electron seal Breath;
Second decryption unit 43 can be used for carrying out the Electronic Coding seal information by the public key in RSA key Decryption obtains the second watermark information;
Determination unit 44 can be used for determining described according to first watermark information and second watermark information Whether one watermark information and second watermark information are identical;If they are the same, it is determined that the encrypted electronic file is legitimate files; If not identical, it is determined that the encrypted electronic file is illegal file.
The decryption device of electronic document provided in an embodiment of the present invention, by receiving encrypted electronic file, due to encryption electricity Subfile is the electronic document that the second electronic document and watermark information are passed through to predetermined encryption algorithm together and carry out encryption acquisition, tool There is higher safety, need that encrypted electronic file is decrypted according to default decipherment algorithm, to obtain the second electronics text Part and the first watermark information are further again decrypted Electronic Coding seal information by the public key in RSA key, obtain the Two watermark informations, by judge the first watermark information and the second watermark information it is whether identical come determine encrypted electronic file whether be Legitimate files.Compared with directly carrying out examination & approval and mode with an official seal affixed on electronic document in the prior art, the present invention is implemented Example obtains Electronic Coding seal information, and believe Electronic Coding seal is loaded with by encrypting to initiating electron seal The electronic document of breath carries out secondary encryption, obtains encrypted electronic file and improves electronic document in examination & approval and process with an official seal affixed Middle safety, avoids that third party distorts encrypted electronic file into destination address transmission process by encrypted electronic file.
In specific application scenarios, as shown in fig. 6, described device further include:
Converting unit 45 can be used for after determining that the encrypted electronic file is legitimate files, the first watermark believed Breath or second watermark information are converted to target character or target two dimensional code by presetting transfer algorithm;
Output unit 46 can be used for the target character or the load of target two dimensional code in second electronic document Output.
Further, in first watermark information and second watermark information include multiple letters for clearing a paper Field is ceased, the determination unit 44 includes:
Comparison module 441 can be used for multiple information words for clearing a paper in the first watermark information described in comparison It is identical whether section corresponds to multiple information fields in second watermark information for clearing a paper;
Determining module 442, if can be used for multiple information in first watermark information and second watermark information Field corresponds to identical, it is determined that the encrypted electronic file is legitimate files;
The determining module 442, can be also used at least one information field if it exists do not correspond to it is identical, it is determined that it is described Encrypted electronic file is illegal file.
It should be noted that its of each functional unit involved by a kind of decryption device of electronic document provided in this embodiment He accordingly describes, can be with reference to the corresponding description of Fig. 2, and details are not described herein.
It is stored thereon with based on above-mentioned method as shown in Figure 2 correspondingly, the present embodiment additionally provides a kind of storage medium Computer program, the program realize the decryption method of above-mentioned electronic document as shown in Figure 2 when being executed by processor.
Based on this understanding, the technical solution of the application can be embodied in the form of software products, which produces Product can store in a non-volatile memory medium (can be CD-ROM, USB flash disk, mobile hard disk etc.), including some instructions With so that computer equipment (can be personal computer, server or the network equipment an etc.) execution the application is each Method described in implement scene.
Based on above-mentioned method and Fig. 3 as shown in Figure 1 to Figure 2 to virtual bench embodiment shown in fig. 6, for reality Existing above-mentioned purpose, the embodiment of the present application also provides a kind of computer equipments, are specifically as follows personal computer, server, net Network equipment etc., the entity device include storage medium and processor;Storage medium, for storing computer program;Processor is used In method of the execution computer program to realize encryption, the decryption of above-mentioned electronic document as shown in Figure 1 to Figure 2.
Optionally, which can also include user interface, network interface, camera, radio frequency (Radio Frequency, RF) circuit, sensor, voicefrequency circuit, WI-FI module etc..User interface may include display screen (Display), input unit such as keyboard (Keyboard) etc., optional user interface can also connect including USB interface, card reader Mouthful etc..Network interface optionally may include standard wireline interface and wireless interface (such as blue tooth interface, WI-FI interface).
It will be understood by those skilled in the art that the method for encryption, the decryption of electronic document provided in this embodiment is corresponding Entity device structure does not constitute the restriction to the entity device, may include more or fewer components, or combination is certain Component or different component layouts.
It can also include operating system, network communication module in storage medium.Operating system is that the above-mentioned computer of management is set The program of standby hardware and software resource, supports the operation of message handling program and other softwares and/or program.Network communication mould Block leads to for realizing the communication between each component in storage medium inside, and between other hardware and softwares in the entity device Letter.
Through the above description of the embodiments, those skilled in the art can be understood that the application can borrow It helps software that the mode of necessary general hardware platform is added to realize, hardware realization can also be passed through.Pass through the skill of application the application Art scheme by encrypting to initiating electron seal, obtains Electronic Coding seal information compared with currently available technology, with And secondary encryption is carried out to the electronic document for being loaded with Electronic Coding seal information, it obtains encrypted electronic file and improves electronics text Part examination & approval and it is with an official seal affixed during safety, avoid encrypted electronic file the third party into destination address transmission process Distort encrypted electronic file.
It will be appreciated by those skilled in the art that the accompanying drawings are only schematic diagrams of a preferred implementation scenario, module in attached drawing or Process is not necessarily implemented necessary to the application.It will be appreciated by those skilled in the art that the mould in device in implement scene Block can according to implement scene describe be distributed in the device of implement scene, can also carry out corresponding change be located at be different from In one or more devices of this implement scene.The module of above-mentioned implement scene can be merged into a module, can also be into one Step splits into multiple submodule.
Above-mentioned the application serial number is for illustration only, does not represent the superiority and inferiority of implement scene.Disclosed above is only the application Several specific implementation scenes, still, the application is not limited to this, and the changes that any person skilled in the art can think of is all The protection scope of the application should be fallen into.

Claims (10)

1. a kind of encryption method of electronic document characterized by comprising
Electronic Coding seal information and the first electronic document are obtained, the Electronic Coding seal information includes passing through RSA key In private key watermark information and initiating electron seal are encrypted after the information that obtains;
By Electronic Coding seal information load in first electronic document, the second electronic document is obtained;
Second electronic document and the watermark information are passed through predetermined encryption algorithm to encrypt together, obtained to send To the encrypted electronic file of destination address.
2. the method according to claim 1, wherein including multiple for what is cleared a paper in the watermark information Information field, the acquisition Electronic Coding seal information include:
Multiple information fields for clearing a paper are extracted from the watermark information;
The multiple information fields for being used to clear a paper are ranked up composition examination & approval chain data according to default examination & approval sequence;
After the examination & approval chain data and the initiating electron seal are encrypted, Electronic Coding seal information is obtained.
3. described the method according to claim 1, wherein before the acquisition Electronic Coding seal information Method further include:
By handling physical seal, the numerical data for being stored as preset format is obtained, by the number of the preset format Data are as initiating electron seal.
4. a kind of decryption method of electronic document characterized by comprising
Encrypted electronic file is received, the encrypted electronic file is that the second electronic document and watermark information are passed through default add together Close algorithm carries out the electronic document of encryption acquisition;
The encrypted electronic file is decrypted according to default decipherment algorithm, obtains the second electronic document and the first watermark letter Breath, second electronic document include Electronic Coding seal information, and the Electronic Coding seal information includes by RSA key Private key watermark information and initiating electron seal are encrypted after the information that obtains;
The Electronic Coding seal information is decrypted by the public key in RSA key, obtains the second watermark information;
According to first watermark information and second watermark information, first watermark information and second watermark are determined Whether information is identical;
If they are the same, it is determined that the encrypted electronic file is legitimate files;
If not identical, it is determined that the encrypted electronic file is illegal file.
5. according to the method described in claim 4, it is characterized in that, in first watermark information and second watermark information It is described according to first watermark information and second watermark information including multiple information fields for clearing a paper, really Whether first watermark information is identical as second watermark information calmly includes:
Compare and is used in the multiple information fields and second watermark information for clearing a paper in first watermark information In that whether the multiple information fields cleared a paper correspond to is identical;
If first watermark information corresponds to identical with multiple information fields in second watermark information, it is determined that described Encrypted electronic file is legitimate files;
At least one information field does not correspond to identical if it exists, it is determined that the encrypted electronic file is illegal file.
6. method according to claim 4 or 5, which is characterized in that the determination encrypted electronic file be it is legal After file, further includes:
By the first watermark information or second watermark information by presetting transfer algorithm, target character or target two dimension are converted to Code;
The target character or the load of target two dimensional code are exported in second electronic document.
7. a kind of encryption device of electronic document characterized by comprising
Acquiring unit, for obtaining Electronic Coding seal information and the first electronic document, the Electronic Coding seal packet Include the information obtained after encrypting by the private key in RSA key to watermark information and initiating electron seal;
Loading unit, for Electronic Coding seal information load in first electronic document, to be obtained the second electronics File;
Encryption unit is added for second electronic document and the watermark information to be passed through predetermined encryption algorithm together It is close, obtain the encrypted electronic file to be sent to destination address.
8. a kind of decryption device of electronic document characterized by comprising
Module is obtained, for obtaining the second encrypted electronic file, the second encrypted electronic file includes by the second electronic document Pass through the electronic document that predetermined encryption algorithm carries out encryption acquisition together with the watermark information, second electronic document includes It is loaded with the electronic document of the Electronic Coding seal, the Electronic Coding seal information includes by the private key in RSA key The information obtained after being encrypted to watermark information and initiating electron seal;
Deciphering module obtains electronic document for the second encrypted electronic file to be decrypted according to default decipherment algorithm With the first watermark information, the Electronic Coding seal information is decrypted by the public key in RSA key, obtains the second watermark Information;
Processing module, for determining first watermark information according to first watermark information and second watermark information It is whether identical as second watermark information;If they are the same, it is determined that the electronic document is qualified second electronic document; If not identical, it is determined that the electronic document is not conform to lattice file.
9. a kind of computer equipment, including memory and processor, it is stored with computer-readable instruction in the memory, it is described When computer-readable instruction is executed by the processor, so that the processor executes such as any one of claims 1 to 3 right It is required that the step of encryption method of the electronic document, and the electronics text as described in any one of claim 4 to 5 claim The decryption method of part.
10. a kind of storage medium for being stored with computer-readable instruction, the computer-readable instruction is handled by one or more When device executes, so that one or more processors execute the electronic document as described in any one of claims 1 to 3 claim The step of encryption method, and as described in any one of claim 4 to 5 claim electronic document decryption method.
CN201910181682.3A 2019-03-11 2019-03-11 A kind of encryption and decryption method and its device of electronic document Pending CN110069906A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910181682.3A CN110069906A (en) 2019-03-11 2019-03-11 A kind of encryption and decryption method and its device of electronic document
PCT/CN2019/118412 WO2020181818A1 (en) 2019-03-11 2019-11-14 Encryption and decryption method for electronic file and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910181682.3A CN110069906A (en) 2019-03-11 2019-03-11 A kind of encryption and decryption method and its device of electronic document

Publications (1)

Publication Number Publication Date
CN110069906A true CN110069906A (en) 2019-07-30

Family

ID=67366150

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910181682.3A Pending CN110069906A (en) 2019-03-11 2019-03-11 A kind of encryption and decryption method and its device of electronic document

Country Status (2)

Country Link
CN (1) CN110069906A (en)
WO (1) WO2020181818A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020181818A1 (en) * 2019-03-11 2020-09-17 平安科技(深圳)有限公司 Encryption and decryption method for electronic file and device
CN112231397A (en) * 2020-09-25 2021-01-15 标信智链(杭州)科技发展有限公司 Transaction file transfer method and device based on block chain

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114760392A (en) * 2022-06-15 2022-07-15 湖南工商大学 Document tampering detection method based on blind watermark and asymmetric encryption

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101311950A (en) * 2007-05-25 2008-11-26 北京书生国际信息技术有限公司 Electronic stamp realization method and device
CN103544592A (en) * 2012-07-16 2014-01-29 天津书生投资有限公司 Application method and device of electronic stamp
CN107992463A (en) * 2017-12-01 2018-05-04 机械工业第六设计研究院有限公司 The method and system that a kind of E-Government is declared

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7751565B2 (en) * 2005-01-25 2010-07-06 Pak Kay Yuen Secure encryption system, device and method
CN105989253A (en) * 2015-03-06 2016-10-05 北京万方数据股份有限公司 Watermark embedding method as well as extraction method and apparatus
CN109274644B (en) * 2018-08-21 2020-12-25 华为技术有限公司 Data processing method, terminal and watermark server
CN110069906A (en) * 2019-03-11 2019-07-30 平安科技(深圳)有限公司 A kind of encryption and decryption method and its device of electronic document

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101311950A (en) * 2007-05-25 2008-11-26 北京书生国际信息技术有限公司 Electronic stamp realization method and device
CN103544592A (en) * 2012-07-16 2014-01-29 天津书生投资有限公司 Application method and device of electronic stamp
CN107992463A (en) * 2017-12-01 2018-05-04 机械工业第六设计研究院有限公司 The method and system that a kind of E-Government is declared

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘宏伟;: "基于身份的电子签章系统设计研究", 计算机工程与设计, no. 07, pages 1735 - 1739 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020181818A1 (en) * 2019-03-11 2020-09-17 平安科技(深圳)有限公司 Encryption and decryption method for electronic file and device
CN112231397A (en) * 2020-09-25 2021-01-15 标信智链(杭州)科技发展有限公司 Transaction file transfer method and device based on block chain

Also Published As

Publication number Publication date
WO2020181818A1 (en) 2020-09-17

Similar Documents

Publication Publication Date Title
CN111079128B (en) Data processing method and device, electronic equipment and storage medium
CN109150499B (en) Method and device for dynamically encrypting data, computer equipment and storage medium
US9497021B2 (en) Device for generating a message authentication code for authenticating a message
US10499243B2 (en) Authentication of phone caller identity
US9253167B2 (en) Device and system for facilitating communication and networking within a secure mobile environment
CN104660589B (en) Method, system and terminal for encrypting control and information analysis of information
CN109829269A (en) Method, apparatus and system based on E-seal authenticating electronic documents
JPH09270785A (en) Information processor
CN110069906A (en) A kind of encryption and decryption method and its device of electronic document
CN110891061B (en) Data encryption and decryption method and device, storage medium and encrypted file
CN113572743B (en) Data encryption and decryption methods and devices, computer equipment and storage medium
JP2006345261A (en) Data processor
CN106134128A (en) Use the system and method for the faster public key encryption of associated private key part
KR101832861B1 (en) Method and Apparatus for Evaluating Passwords
CN106897631A (en) Data processing method, apparatus and system
CN111177748A (en) Fingerprint storage encryption method, device and system
CN109919823A (en) A kind of watermark generation method and device
CN102404107A (en) Method, device, transmitting end and receiving end all capable of guaranteeing safety of inputted content
JP2007181011A (en) Data sharing device
CN107835172A (en) Billing information verification method and system, server and computer-readable recording medium
CN106452755A (en) Method, apparatus and system for resetting protection passwords, based on decryption cryptograph of client
JP5038015B2 (en) Image forming system, image forming apparatus, image forming method, image forming program, and recording medium
CN115333775A (en) Data processing method and device based on privacy calculation, equipment and storage medium
US8213601B2 (en) Font level encryption method and apparatus
KR100739525B1 (en) Data transmitter/receiver system using encoded image and method for the same

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