CN111159733A - Vector signature method with anti-acquisition function - Google Patents

Vector signature method with anti-acquisition function Download PDF

Info

Publication number
CN111159733A
CN111159733A CN201911299010.9A CN201911299010A CN111159733A CN 111159733 A CN111159733 A CN 111159733A CN 201911299010 A CN201911299010 A CN 201911299010A CN 111159733 A CN111159733 A CN 111159733A
Authority
CN
China
Prior art keywords
signature
vector
data
file
user
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
CN201911299010.9A
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.)
Bohai Shipyard Group Co Ltd
Original Assignee
Bohai Shipyard Group 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 Bohai Shipyard Group Co Ltd filed Critical Bohai Shipyard Group Co Ltd
Priority to CN201911299010.9A priority Critical patent/CN111159733A/en
Publication of CN111159733A publication Critical patent/CN111159733A/en
Pending legal-status Critical Current

Links

Images

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

Abstract

A method of vector signature with anti-acquisition functionality. The signature making comprises: user signature collection, signature making and vector data conversion. The signature inserting step includes extracting signature data, parsing into vector data, and generating a vector graphic code of a corresponding document. The signature data is not stored in the document in the form of a single picture resource any more, and the signature picture is difficult to acquire in a simple mode. Thereby performing the function of protecting the signature from being acquired. The method is suitable for signature anti-theft method application.

Description

Vector signature method with anti-acquisition function
Technical Field
The invention relates to a vector signature technology with an anti-acquisition function, which can increase the difficulty of acquiring a user signature and belongs to a vector signature method with the anti-acquisition function in the technical field of office automation in a computer data processing system.
Background
With the rapid development and popularization of networking and intellectualization, more and more services can be handled through networking, and signatures are inevitably required in the services. And if the signature is the online signature, acquiring the signature of the user as a dot matrix or a vector picture, inserting the picture into a document PDF or XPS document, and if the signature is not the online signature, reading the prepared signature picture of the user, and inserting the picture into the document.
Whether the user writes by hand on line or inserts the existing signature file into an internal system, the signature of the end user is embedded into the document for viewing, so that the signature can be acquired by a person who looks up the document, and the signature can be used for other purposes, and certain potential safety hazards exist. The most common electronic document formats at present are Adobe PDF and microsoft XPS, both documents belong to non-editable electronic documents, but in any format, the signature is stored in the document in a picture format, and the picture is stored in a resource folder in the document, so that the original data can be easily acquired. For example, a user signed picture is inserted into Word and then saved as a file in PDF format and XPS format, respectively. If the PDF file is saved in html format, we can see the inserted signature file in the images folder of the saving position. The XPS file is decompressed, and the inserted signature file can be seen in a \ Resources \ Images folder at the decompression position.
Besides, a picture signed by the user can be obtained through a capture mode, and if the original file is also a non-vector picture, the non-vector picture obtained through capture can be false and spurious to a certain extent.
In order to solve the problem that the user signature is acquired in the above-described case, the following problems need to be solved:
1. the picture source file in the electronic document can not be acquired by others through simple means.
2. The signature should use vector graphics to make the picture captured through the screen much different from the real original file.
Disclosure of Invention
Aiming at the problem that a traditional method is easy to acquire a signature picture, the invention provides a method for preventing a vector signature of an acquisition function. The method decomposes and converts vector graphics into original description data as a signature file, converts the signature data into corresponding vector graphics to be inserted into a document through a program when the signature is inserted, and one signature can be dispersedly inserted into the document by tens or hundreds of vector graphics, and the data cannot be reversely extracted from the document to be combined into a signature picture, so that the acquisition prevention function is realized, and the technical problem of vector signature theft prevention is solved.
The technical scheme adopted by the invention for solving the technical problem is as follows:
(1) and (3) signature preparation:
the step aims at the condition that a signature file needs to be made in advance according to the user signature picture. The signature file can be stored on the user computer, in the USBKEY or in the server, and can be extracted and inserted into the specified document when needed.
1) User signature collection:
the user signature may be obtained by signing on paper and then scanning into picture format of JPG, PNG, BMP, etc. The picture format supported by the integrated system can also be directly adopted by the handwriting board.
2) Processing into a vector diagram:
the dot matrix format pictures such as JPG, PNG, BMP and the like are processed into vector graphics such as EMF or WMF by using vector graphics design software such as Adobe illustrator, CoreDRAW and the like, and the processing aims to only keep the handwriting graphics, and the background is completely removed. Preprocessing can be performed by using Photoshop to facilitate vector graphics software processing.
If the user signature capture is directly captured as a vector graphic in EMF or WMF format, this step is skipped.
3) Converting vector data:
the purpose of this step is to decompose the vector graphics into a plurality of completely independent graphics description data. And extracting the elements forming the vector diagram, and describing data of points, lines, rectangles, polygons and circles from the vector diagram, and storing the describing data in an XML format or other user-defined formats. The data can be extracted by self-writing programs according to EMF or WMF file formats, and other software with the function can be used for extracting the data.
Vector data of the EMF or WMF file is extracted and stored into an XML file or a file format defined by a user, and document storage is realized by adding data.
The vector graphics are converted into vector data such as a straight line, a curve and the like.
4) Generating a signature file, encrypting:
the converted vector data is generated into a signature file, and encryption, compression and the like can be used to improve the security of the signature file and reduce the file.
(2) Signature insertion document:
1.1 extracting signature data:
A. if an online signature mode is used, the content input by a user through a handwriting pad, direct screen handwriting and the like is collected into vector graphics or other data which can be used for vector conversion.
B. And loading the user signature file which is manufactured in advance, and decrypting/decompressing the user signature file.
2.1 resolution into vector data:
and converting the user signature data acquired in the last step into vector data.
3.1 generating vector graphics code of the corresponding document and inserting:
the vector data is inserted after generating a description data block for the document according to a different document format (PDF or XPS), calculating a position to be deviated in the page, and setting a coordinate position.
The positive effects are as follows: the signature data is not stored in the document in the form of a single picture resource any more, and the signature picture is difficult to acquire in a simple mode. Because the vector graphics are used, the vector graphics cannot be distorted when being amplified and reduced, and even if the signature file can be acquired by using a screen capture mode, the display and printing effects of the vector graphics are not achieved. For PDF documents, no more signed pictures are saved to the images folder by save. For the XPS document, no signed picture resource exists under the Resources path, and by looking up the description data of the XPS document, the signature data and normal document data are described by using Xaml codes and cannot be distinguished, so that the function of protecting the signature from being acquired is achieved. The method is suitable for signature anti-theft method application.
Drawings
Fig. 1 is a flow chart of a conventional signature method according to the present invention.
Detailed Description
And after the user signature is started, acquiring the user signature, analyzing whether the user signature is a vector diagram or not, converting the user signature into the vector diagram if the user signature is not the vector diagram, converting the vector diagram into vector data, generating a signature file according to the vector data, and then finishing.
The specific implementation steps are as follows:
(1) and (3) signature preparation:
the step aims at the condition that a signature file needs to be made in advance according to the user signature picture. The signature file can be stored on the user computer, in the USBKEY or in the server, and can be extracted and inserted into the specified document when needed.
1) User signature collection:
the user signature may be obtained by signing on paper and then scanning into picture format of JPG, PNG, BMP, etc. The picture format supported by the integrated system can also be directly adopted by the handwriting board.
2) Processing into a vector diagram:
the dot matrix format pictures such as JPG, PNG, BMP and the like are processed into vector graphics such as EMF or WMF by using vector graphics design software such as Adobe illustrator, CoreDRAW and the like, and the processing aims to only keep the handwriting graphics, and the background is completely removed. Preprocessing can be performed by using Photoshop to facilitate vector graphics software processing.
If the user signature capture is directly captured as a vector graphic in EMF or WMF format, this step is skipped.
3) Converting vector data:
the purpose of this step is to decompose the vector graphics into a plurality of completely independent graphics description data. And extracting the elements forming the vector diagram, and describing data of points, lines, rectangles, polygons and circles from the vector diagram, and storing the describing data in an XML format or other user-defined formats. The data can be extracted by self-writing programs according to EMF or WMF file formats, and other software with the function can be used for extracting the data.
Vector data of the EMF or WMF file is extracted and stored into an XML file or a file format defined by a user, and document storage is realized by adding data.
The vector graphics are converted into vector data such as a straight line, a curve and the like.
4) Generating a signature file, encrypting:
the converted vector data is generated into a signature file, and encryption, compression and the like can be used to improve the security of the signature file and reduce the file.
(2) Signature insertion document:
1.1 extracting signature data:
A. if an online signature mode is used, the content input by a user through a handwriting pad, direct screen handwriting and the like is collected into vector graphics or other data which can be used for vector conversion.
B. And loading the user signature file which is manufactured in advance, and decrypting/decompressing the user signature file.
2.1 resolution into vector data:
and converting the user signature data acquired in the last step into vector data.
3.1 generating vector graphics code of the corresponding document and inserting:
the vector data is inserted after generating a description data block for the document according to a different document format (PDF or XPS), calculating a position to be deviated in the page, and setting a coordinate position.
Example data in XPS certain page insertion (3) method such as using C #:
///<summary>
v/insert decomposed signature data into specified locations of the page
///</summary>
// < param name = "page" > Page in XPS >
// < param name = "x" > sign x coordinate to place >
// < param name = "y" > sign y coordinate to place >
// < param name = "width" > signature width >
// < param name = "height" > signature height >
// < param name = "data" > signature vector data (string format) </param >
private void InserSign(FixedPage page, double x, double y,doublewidth,double height, string data)
{
Canvas cvs = XamlReader.Parse(data) as Canvas;
Viewbox vb = new Viewbox();
vb.Child = cvs;
vb.Width = width;
vb.Height = height;
page.Children.Add(vb);
}
If the picture is inserted directly, the data saved in XPS is as follows:
<ImageBrush x:Key="b0" ViewportUnits="Absolute" TileMode="None"ViewboxUnits="Absolute" Viewbox="0,0,76.011,26.004" Viewport="0,0,1,1"ImageSource="/Resources/db9fc1f8-8b89-4da2-ba1e-0799a3009fd7.png" Transform="57,0,0,19.56,89.88,110.52" />
the signature picture can be stored in the XPS resource folder and can be extracted, and even can be directly copied and pasted in the XPS Viewer.
While, using the above-mentioned method, the signed data is in the following state (partial data) in XPS:
<Path Fill="#EC010101" RenderTransform="1,0,0,1,65.0307,6.4849" Data="M10.06,15C8.27,14.82 8.78,14.93 8.38,13.83L10.13,13.5 10.06,15Z" />
<Path Fill="#EC010101" RenderTransform="1,0,0,1,65.0307,6.4849" Data="M11.6,13.06L11.93,13.72 11.16,14.05 11.6,13.06Z" />
<Path Fill="#EC010101" RenderTransform="1,0,0,1,65.0307,6.4849" Data="M12.15,4.44C13.21,4.69 13.43,5.1 13.79,6.09L11.74,6.42 12.15,4.44Z" />
<Path Fill="#EC010101" RenderTransform="1,0,0,1,65.0307,6.4849" Data="M5.67,7.52C6.03,5.32 8.85,2.24 7.86,0 6.25,0.29 6.91,0.99 5.85,3.59 5.3,4.994.75,6.09 4.02,7.37 3.29,8.69 2.7,9.57 1.86,10.78 0.98,12.03 -0.7,12.51 0.32,13.83 1.93,13.72 4.82,8.18 10.17,8.36L10.17,11.41C8.59,12.76 5.96,12.8 5.92,14.45 7.35,15.55 8.3,14.74 9.25,16.5 7.86,19.95 3.47,18.89 3.29,21.49 4.46,22.19 6.95,20.57 9.73,20.61 15,20.68 30.6,23.21 32.65,20.54 31.84,20.1 28.29,20.57 26.75,20.5 21.34,20.32 17.34,19.58 11.89,19.29 11.63,19.29 10.61,19.2510.46,19.22 8.92,18.81 9.99,19.22 9.44,18.59 10.24,17.71 9.8,18.34 10.46,17.911.3,17.31 10.61,18.01 11.23,17.13 11.63,16.58 12.15,15.66 12.55,15 14.53,11.37 12.29,11.74 11.63,10.93 11.93,8.69 11.34,8.18 13.28,7.59 18.77,5.9412.99,3.59 12.84,3.45 11.63,2.46 12.07,1.61 11.41,0.55 8.81,0.62 11.19,4.6910.02,6.67L5.67,7.52Z" />
<Path Fill="#EC020202" RenderTransform="1,0,0,1,35.4764,3.53713" Data="M5.09,19.56C5.93,18.9 7.14,18.09 8.27,17.65 8.79,19.41 8.9,21.65 8.64,23.567.14,23.34 5.27,21.14 5.09,19.56Z" />
……
if the positions of the stroke data are intentionally confused at the time of insertion and are dispersedly inserted in the document, it is almost impossible to obtain the restoration.
The method is characterized in that:
the application of the technology of the invention can prevent the vector signature from being stolen, thereby improving the anti-theft function of the electronic signature and enabling the vector data to be stable and safe.

Claims (1)

1. A method for vector signature with anti-acquisition function is characterized in that: the specific implementation steps are as follows:
(1) and (3) signature preparation:
aiming at the situation that a signature file needs to be made in advance according to a user signature picture; the signature file can be stored on a user computer, in a USBKEY or in a server, and can be extracted and inserted into a specified document when needed;
1) user signature collection:
the user signature can be signed on paper and then scanned into picture formats such as JPG, PNG, BMP and the like; the picture format supported by the integrated system can also be directly adopted by the handwriting board;
2) processing into a vector diagram:
processing dot matrix format pictures such as JPG, PNG, BMP and the like into vector graphics such as EMF or WMF by using vector graphics design software such as Adobe illustrator, CoreDRAW and the like, wherein the processing aims to only retain the handwriting graphics, and the background is completely removed; photoshop can be utilized for preprocessing, so that vector graphics software processing is more convenient;
if the user signature is directly acquired as a vector graph in EMF or WMF format, the step is skipped;
3) converting vector data:
the purpose of this step is to decompose the vector graphics into a plurality of completely independent graphics description data; extracting elements forming the vector diagram from the vector diagram, and describing data of points, lines, rectangles, polygons and circles, and storing the describing data in an XML format or other user-defined formats; the data can be extracted by self-writing programs according to EMF or WMF file formats, and other software with the function can be used for extracting the data;
vector data of the EMF or WMF file is extracted and stored into an XML file or a file format defined by a user, and document storage is realized by adding data;
the vector graphics are converted into vector data such as a straight line, a curve and the like;
4) generating a signature file, encrypting:
generating the converted vector data into a signature file, and using encryption, compression and other operations to improve the security of the signature file and reduce the file;
(2) signature insertion document:
1.1) extracting signature data:
A. if an online signature mode is used, acquiring the content input by a user through a handwriting board, direct screen handwriting and the like into vector graphics or other data which can be used for vector conversion;
B. loading a user signature file which is manufactured in advance, and decrypting/decompressing the user signature file;
2.1) parsing into vector data:
converting the user signature data acquired in the last step into vector data;
3.1) generating vector graphic codes of corresponding documents and inserting:
generating a description data block for the document according to different document formats PDF or XPS by the vector data, calculating a position to be deviated in a page, setting a coordinate position and inserting the coordinate position.
CN201911299010.9A 2019-12-17 2019-12-17 Vector signature method with anti-acquisition function Pending CN111159733A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911299010.9A CN111159733A (en) 2019-12-17 2019-12-17 Vector signature method with anti-acquisition function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911299010.9A CN111159733A (en) 2019-12-17 2019-12-17 Vector signature method with anti-acquisition function

Publications (1)

Publication Number Publication Date
CN111159733A true CN111159733A (en) 2020-05-15

Family

ID=70557336

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911299010.9A Pending CN111159733A (en) 2019-12-17 2019-12-17 Vector signature method with anti-acquisition function

Country Status (1)

Country Link
CN (1) CN111159733A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113535651A (en) * 2021-09-15 2021-10-22 南京汽轮电机(集团)有限责任公司 Non-standard PDF file bar code adding method, device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004199614A (en) * 2002-12-20 2004-07-15 Hitachi Ltd Electronic sign authentication method, system, program, storage medium, and electronic pen
CN1719371A (en) * 2005-07-08 2006-01-11 上海中标软件有限公司 Document digital nano signing and method of reatizing electron seal and hand writing name signing
CN101419681A (en) * 2007-10-25 2009-04-29 恒宝股份有限公司 A kind of production method with electronic receipt of visual electronic signature
JP2010154051A (en) * 2008-12-24 2010-07-08 Fuji Xerox Co Ltd Signature system, signature device, signature verification device, and program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004199614A (en) * 2002-12-20 2004-07-15 Hitachi Ltd Electronic sign authentication method, system, program, storage medium, and electronic pen
CN1719371A (en) * 2005-07-08 2006-01-11 上海中标软件有限公司 Document digital nano signing and method of reatizing electron seal and hand writing name signing
CN101419681A (en) * 2007-10-25 2009-04-29 恒宝股份有限公司 A kind of production method with electronic receipt of visual electronic signature
JP2010154051A (en) * 2008-12-24 2010-07-08 Fuji Xerox Co Ltd Signature system, signature device, signature verification device, and program

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张晓林: "基于XML的信息组织与处理:2.应用技术" *
魏丽: ""数字签名"技术在工程CAD中的应用" *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113535651A (en) * 2021-09-15 2021-10-22 南京汽轮电机(集团)有限责任公司 Non-standard PDF file bar code adding method, device and storage medium

Similar Documents

Publication Publication Date Title
US8331677B2 (en) Combined image and text document
US6801673B2 (en) Section extraction tool for PDF documents
US8504907B2 (en) Generating page and document logs for electronic documents
US8363944B2 (en) Reading a print image including document and code image for signature verification
US8429397B2 (en) Generating an encryption font by converting character codes and recording the encryption font in a unique tag
JP2007251929A (en) Selective image encoding and replacement
Kim et al. Watermarking two dimensional data object identifier for authenticated distribution of digital multimedia contents
JP2006191624A (en) Method, product and apparatus for secure stamping of multimedia document collections
US10402471B2 (en) Method for obfuscating the display of text
Ferilli Automatic digital document processing and management: Problems, algorithms and techniques
CN111683098B (en) Anti-crawler method and device, electronic equipment and storage medium
US7586641B2 (en) System for certifying whether printed material corresponds to original
CN111159733A (en) Vector signature method with anti-acquisition function
JP4541473B2 (en) Data processing method and apparatus, and storage medium
JP3468608B2 (en) Verification device for printed matter
CN115904167A (en) Processing method and device of webpage icon, storage medium and electronic equipment
Ockerbloom Archiving and preserving PDF files
Zhang et al. PDF document watermarking algorithm based on discarded page object
JPH06305200A (en) Printer and printing verification device for electronic approval information
US20080062456A1 (en) Print management device, storage medium for print management program, print analysis system, print system, document issuance system, print management method, and computer data signal
JP3499294B2 (en) Document security management method and image processing apparatus
JP6357871B2 (en) Information collection method, information collection system, and computer program
JPH10228516A (en) Form document, form document processing method and device
Guo et al. Information hiding in ooxml format data based on the splitting of text elements
CN112106072A (en) Graphic code generation and verification method and device, equipment and storage medium

Legal Events

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

Application publication date: 20200515