Search

CN-114611158-B - Electronic document authorization method and device, electronic device and storage medium

CN114611158BCN 114611158 BCN114611158 BCN 114611158BCN-114611158-B

Abstract

The application is applicable to the technical field of data processing and provides an authorization method, an authorization device, electronic equipment and a storage medium of an electronic document, wherein the method comprises the steps of determining the signature type of the electronic document if a signature request about the electronic document to be signed is received; the method comprises the steps of identifying a verification identification result of an electronic document according to a verification algorithm associated with a signature type, generating signature data associated with the signature type if the verification identification result is verification passing, and importing the signature data into a signature domain of the electronic document to obtain an authorized document added with the electronic signature. By adopting the method, the corresponding signature type can be determined according to the corresponding signature request, and the electronic document is checked by the checking algorithm of the signature type, so that the checking algorithm used for the electronic document can be flexibly changed, and the flexibility of the file authorization process is improved.

Inventors

  • LU JINGJIA
  • YANG ZHENYAN
  • WANG ZHIHUI
  • MA GUANGWEI
  • LI PENGJUN
  • ZHANG ZHAO
  • ZENG XIANG
  • LI YIFAN

Assignees

  • 深圳市电子商务安全证书管理有限公司

Dates

Publication Date
20260505
Application Date
20220324

Claims (9)

  1. 1. A method for authorizing an electronic document, comprising: if a signature request about an electronic document to be signed is received, determining the signature type of the electronic document; Identifying a verification identification result of the electronic document according to a verification algorithm associated with the signature type; if the verification recognition result is that verification is passed, generating signature data associated with the signature type; Importing signature data into a signature domain of the electronic document to obtain an authorized document added with the electronic signature; If a signature request about an electronic document to be signed is received, determining the signature type of the electronic document includes: Extracting document keywords of the electronic document, and generating semantic feature vectors of the electronic document according to all the document keywords; acquiring user information of a user to which the electronic document belongs, and generating a user feature vector corresponding to the user information; Determining release scene information of the electronic document, and determining an application feature vector of the electronic document according to the release scene information; performing convolution operation on the semantic feature vector, the user feature vector and the application feature vector based on a preset convolution check to generate a multidimensional feature matrix of the electronic document; And selecting the candidate type with the highest matching degree as the signature type of the electronic document based on the matching degree between the multi-dimensional feature matrix and each candidate type.
  2. 2. The method of authorizing of claim 1, wherein the extracting document keywords of the electronic document and generating semantic feature vectors from all the document keywords includes: Carrying out semantic analysis on the electronic document, and determining candidate keywords contained in the electronic document; Constructing a keyword graph of the electronic document according to all the candidate keywords, and calculating word association degrees between any candidate keyword and other candidate keywords based on the keyword graph, wherein the word association degrees specifically are as follows: Wherein, the The word association degree is the word association degree; the number of association relations of the ith candidate keyword pointing to other candidate keywords in a preset keyword graph; The number of association relations of other candidate keywords pointing to the j candidate keywords in the keyword graph; Determining a position characteristic value of any candidate keyword based on the occurrence position of the candidate keyword in the electronic document; Determining a frequency characteristic value of any candidate keyword based on a first occurrence frequency of the candidate keyword in the electronic document and a second occurrence frequency of the candidate keyword in an existing text of a preset corpus, wherein the frequency characteristic value is specifically: Wherein, the The frequency characteristic value is obtained; the word frequency characteristic value is calculated based on the first occurrence frequency and the second occurrence frequency of any candidate keyword; Calculating a feature index corresponding to any candidate keyword according to the word association degree, the position feature value and the frequency feature value; And selecting the candidate keywords with the feature indexes larger than a preset threshold value as document keywords of the electronic document.
  3. 3. The method according to claim 1, wherein generating signature data associated with the signature type if the verification recognition result is verification pass comprises: Determining a document data range of a required signature based on the signature request and the document content of the electronic document; calculating a hash value of the document data range according to the document data contained in the document data range and the signature type; And carrying out data conversion on the hash value and the document data through a signature algorithm associated with the signature type to obtain the signature data.
  4. 4. The authorization method of claim 3, wherein the determining a document data range of the desired signature based on the signature request and the document content of the electronic document comprises: analyzing the signature request and determining an authorization range associated with the signature request; Carrying out semantic recognition on the electronic document, and extracting word cloud information corresponding to each text paragraph of the electronic document; calculating the matching degree between each word cloud information and the authorized range, and selecting a text paragraph corresponding to the word cloud information with the matching degree larger than a preset matching threshold as a target paragraph; the document data range is determined based on the text data contained within the target paragraph.
  5. 5. The method of any one of claims 1-4, wherein the identifying the verification recognition result of the electronic document according to the verification algorithm associated with the signature type comprises: acquiring signature information associated with the electronic document, and determining an effective authorization range of the signature information; determining a verification identification item according to the verification algorithm; And extracting authorization characteristic values corresponding to the verification and identification items from the effective authorization range, and generating the verification and identification result based on all the authorization characteristic values.
  6. 6. The method according to any one of claims 1 to 4, further comprising, after said importing signature data into a signature field of said electronic document to obtain an electronic signature-added authorization document: if an authorization request of the authorization electronic document is received, determining the signature type of the authorization document; Selecting an authentication algorithm corresponding to the signature type from an authentication database; And extracting the signature data from the authorized document, and carrying out authentication identification on the signature data through the authentication algorithm to obtain an authentication result.
  7. 7. An authorization device for an electronic document, comprising: A signature type determining unit configured to determine a signature type of an electronic document to be signed if a signature request is received with respect to the electronic document; the verification and identification result generation unit is used for identifying the verification and identification result of the electronic document according to the verification algorithm associated with the signature type; The signature data acquisition unit is used for generating signature data associated with the signature type if the verification recognition result is that verification is passed; A signature data importing unit, configured to import signature data into a signature domain of the electronic document, to obtain an authorized document to which the electronic signature is added; The signature type determination unit includes: the semantic feature vector extraction unit is used for extracting document keywords of the electronic document and generating semantic feature vectors of the electronic document according to all the document keywords; the user feature vector determining unit is used for obtaining the user information of the user to which the electronic document belongs and generating a user feature vector corresponding to the user information; an application feature vector determining unit, configured to determine release scenario information of the electronic document, and determine an application feature vector of the electronic document according to the release scenario information; The multi-dimensional feature matrix generation unit is used for carrying out convolution operation on the semantic feature vector, the user feature vector and the application feature vector based on a preset convolution check so as to generate a multi-dimensional feature matrix of the electronic document; And the multi-dimensional feature matrix matching unit is used for selecting the candidate type with the highest matching degree as the signature type of the electronic document based on the matching degree between the multi-dimensional feature matrix and each candidate type.
  8. 8. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 6 when executing the computer program.
  9. 9. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the method according to any one of claims 1 to 6.

Description

Electronic document authorization method and device, electronic device and storage medium Technical Field The present application relates to the field of data processing technologies, and in particular, to a method and apparatus for authorizing an electronic document, an electronic device, and a storage medium. Background Along with the continuous advancement of the electronic process, more and more documents can be stored in a data form, and in order to realize the legality, the authenticity and the non-repudiation of the electronic documents, the technology of electronic signature is also generated, so that the application range of the electronic documents is further improved. In the existing electronic signature application technology, when an electronic document is signed, only the electronic signature of a single algorithm is usually supported, and under the scene that other algorithms are required to be used for signing the electronic document, the electronic document cannot be used, so that the applicability of the electronic document is greatly reduced, and the authenticity of signature and the reliability of the electronic document are also reduced due to the single electronic signature algorithm. Disclosure of Invention The embodiment of the application provides an authorization method, an authorization device, electronic equipment and a storage medium of an electronic document, which can solve the problems that the existing authorization technology of the electronic document can only support electronic signature of a single algorithm when the electronic document is signed, and the electronic document cannot be used in a scene that other algorithms are required to be used for signing the electronic document, so that the applicability of the electronic document is greatly reduced, and the authenticity of signature and the reliability of the electronic document are also reduced due to the single electronic signature algorithm. In a first aspect, an embodiment of the present application provides a method for authorizing an electronic document, including: if a signature request about an electronic document to be signed is received, determining the signature type of the electronic document; Identifying a verification identification result of the electronic document according to a verification algorithm associated with the signature type; if the verification recognition result is that verification is passed, generating signature data associated with the signature type; and importing the signature data into a signature domain of the electronic document to obtain an authorized document added with the electronic signature. In a possible implementation manner of the first aspect, the determining, if a signature request about an electronic document to be signed is received, a signature type of the electronic document includes: Extracting document keywords of the electronic document, and generating semantic feature vectors of the electronic document according to all the document keywords; acquiring user information of a user to which the electronic document belongs, and generating a user feature vector corresponding to the user information; Determining release scene information of the electronic document, and determining an application feature vector of the electronic document according to the release scene information; performing convolution operation on the semantic feature vector, the user feature vector and the application feature vector based on a preset convolution check to generate a multidimensional feature matrix of the electronic document; And selecting the candidate type with the highest matching degree as the signature type of the electronic document based on the matching degree between the multi-dimensional feature matrix and each candidate type. In a possible implementation manner of the first aspect, the extracting document keywords of the electronic document and generating semantic feature vectors according to all the document keywords includes: Carrying out semantic analysis on the electronic document, and determining candidate keywords contained in the electronic document; Constructing a keyword graph of the electronic document according to all the candidate keywords, and calculating word association degrees between any candidate keyword and other candidate keywords based on the keyword graph, wherein the word association degrees specifically are as follows: Wherein, the The word association degree is the word association degree; the number of association relations of the ith candidate keyword pointing to other candidate keywords in a preset keyword graph; The number of association relations of other candidate keywords pointing to the j candidate keywords in the keyword graph; Determining a position characteristic value of any candidate keyword based on the occurrence position of the candidate keyword in the electronic document; Determining a frequency characteristic value of any candidate