+

CN110830256A - File signature method and device, electronic equipment and readable storage medium - Google Patents

File signature method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN110830256A
CN110830256A CN201810922974.3A CN201810922974A CN110830256A CN 110830256 A CN110830256 A CN 110830256A CN 201810922974 A CN201810922974 A CN 201810922974A CN 110830256 A CN110830256 A CN 110830256A
Authority
CN
China
Prior art keywords
public key
signer
private key
target file
signature
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
CN201810922974.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.)
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Guangzhou Kingsoft Mobile Technology Co Ltd
Original Assignee
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Guangzhou Kingsoft Mobile Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Office Software Inc, Zhuhai Kingsoft Office Software Co Ltd, Guangzhou Kingsoft Mobile Technology Co Ltd filed Critical Beijing Kingsoft Office Software Inc
Priority to CN201810922974.3A priority Critical patent/CN110830256A/en
Publication of CN110830256A publication Critical patent/CN110830256A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3247Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/06Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
    • H04L9/0643Hash functions, e.g. MD5, SHA, HMAC or f9 MAC
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0816Key establishment, i.e. cryptographic processes or cryptographic protocols whereby a shared secret becomes available to two or more parties, for subsequent use
    • H04L9/0819Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s)
    • H04L9/0822Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s) using key encryption key

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Storage Device Security (AREA)

Abstract

本发明实施例提供了一种文件签名方法、装置、电子设备及可读存储介质。该方法包括:确定待进行数字签名的目标文件,并根据预设的信息摘要算法计算目标文件的信息摘要值;获得要对目标文件进行数字签名的签名者的私钥和公钥;利用私钥对信息摘要值进行加密计算,得到签名者的数字签名;将签名者的数字签名、信息摘要值和公钥对应存储至区块链分布式账本中;在目标文件中写入签名标记,签名标记用于标记已对目标文件进行数字签名。这样,可以将数字签名存储至区块链分布式账本中,从而可以确保数字签名的有效性,提高了数据的安全性。

Figure 201810922974

Embodiments of the present invention provide a file signature method, apparatus, electronic device, and readable storage medium. The method includes: determining a target file to be digitally signed, and calculating an information digest value of the target file according to a preset information digest algorithm; obtaining the private key and public key of a signer who is to digitally sign the target file; using the private key Encrypt the message digest value to obtain the signer's digital signature; store the signer's digital signature, message digest value and public key in the blockchain distributed ledger; write the signature mark in the target file, the signature mark Used to mark that the target file has been digitally signed. In this way, the digital signature can be stored in the blockchain distributed ledger, thereby ensuring the validity of the digital signature and improving the security of the data.

Figure 201810922974

Description

一种文件签名方法、装置、电子设备及可读存储介质A file signature method, device, electronic device and readable storage medium

技术领域technical field

本发明涉及计算机技术领域,特别是涉及一种文件签名方法、装置、电子设备及可读存储介质。The present invention relates to the field of computer technology, and in particular, to a file signature method, an apparatus, an electronic device and a readable storage medium.

背景技术Background technique

文件签名是指对文件进行数字签名。其中,数字签名是附加在文件中的一些数据,而且数字签名常常附加在文件尾部。这样,文件的接收者能够根据附加的数据来验证:该文件是否确实是签名者发送的,以及该文件的文件内容是否被篡改。File signing refers to digitally signing a file. Among them, the digital signature is some data attached to the file, and the digital signature is often attached to the end of the file. In this way, the recipient of the file can verify, based on the additional data, whether the file was indeed sent by the signer, and whether the file content of the file has been tampered with.

例如,张三利用私钥对文件A进行数字签名。其中,签名后的文件A的尾部写入有该数字签名。然后,张三将签名后的文件A发送给李四。李四在接收到签名后的文件A后,可以利用张三的公钥解密该数字签名。若李四能够利用张三的公钥解密得到文件A的哈希值,则证明文件A确实是张三发送的。并且,可以对接收到的文件A进行哈希计算,并将计算得到的哈希值与解密得到的哈希值进行比对。若比对结果一致,则表明文件A未被篡改,若比对结果不一致,则表明文件A被篡改。For example, Zhang San uses his private key to digitally sign file A. The digital signature is written at the end of the signed file A. Then, Zhang San sends the signed document A to Li Si. After receiving the signed file A, Li Si can use Zhang San's public key to decrypt the digital signature. If Li Si can decrypt the hash value of file A with Zhang San's public key, it proves that file A was indeed sent by Zhang San. In addition, a hash calculation can be performed on the received file A, and the calculated hash value can be compared with the decrypted hash value. If the comparison results are consistent, it means that file A has not been tampered with; if the comparison results are inconsistent, it means that file A has been tampered with.

但是,该种将数字签名附加在文件中的方式,使得数字签名容易被恶意用户篡改,无法保证数字签名的有效性,从而使用户数据的安全受到威胁。However, this method of attaching the digital signature to the file makes the digital signature easy to be tampered with by malicious users, cannot guarantee the validity of the digital signature, and thus threatens the security of user data.

发明内容SUMMARY OF THE INVENTION

本发明实施例的目的在于提供一种新的文件签名方法、装置、电子设备及可读存储介质,以可以确保数字签名的有效性,提高数据的安全性。技术方案如下:The purpose of the embodiments of the present invention is to provide a new file signature method, device, electronic device and readable storage medium, so as to ensure the validity of the digital signature and improve the security of data. The technical solution is as follows:

第一方面,本发明实施例提供了一种文件签名方法,该方法可以包括:In a first aspect, an embodiment of the present invention provides a file signature method, which may include:

确定待进行数字签名的目标文件,并根据预设的信息摘要算法计算目标文件的信息摘要值;Determine the target file to be digitally signed, and calculate the message digest value of the target file according to the preset message digest algorithm;

获得要对目标文件进行数字签名的签名者的私钥和公钥;Obtain the private key and public key of the signer to digitally sign the target file;

利用私钥对信息摘要值进行加密计算,得到签名者的数字签名;Use the private key to encrypt and calculate the message digest value to obtain the digital signature of the signer;

将签名者的数字签名、信息摘要值和公钥对应存储至区块链分布式账本中;Store the signer's digital signature, message digest value and public key in the blockchain distributed ledger;

在目标文件中写入签名标记,签名标记用于标记已对目标文件进行数字签名。Write a signature mark in the target file, and the signature mark is used to mark that the target file has been digitally signed.

可选地,在一种实现方式中,获得要对目标文件进行数字签名的签名者的私钥和公钥的步骤,可以包括:Optionally, in an implementation manner, the step of obtaining the private key and public key of the signer who is to digitally sign the target file may include:

从区块链私钥公钥对存储软件中,加载要对目标文件进行数字签名的签名者的私钥加密文件和公钥;Load the private key encrypted file and public key of the signer who wants to digitally sign the target file from the blockchain private key public key pair storage software;

利用用户输入的私钥解密密钥对私钥加密文件进行解密,得到公钥对应的私钥。Use the private key decryption key input by the user to decrypt the private key encrypted file to obtain the private key corresponding to the public key.

可选地,在另一种实现方式中,获得要对目标文件进行数字签名的签名者的私钥和公钥的步骤,可以包括:Optionally, in another implementation manner, the step of obtaining the private key and public key of the signer who is to digitally sign the target file may include:

调用区块链私钥公钥对生成软件,生成要对目标文件进行数字签名的签名者的私钥和公钥。Call the blockchain private key and public key pair generation software to generate the private key and public key of the signer who will digitally sign the target file.

可选地,在调用区块链私钥公钥对生成软件,生成要对目标文件进行数字签名的签名者的私钥和公钥的步骤之后,该方法还可以包括:Optionally, after invoking the blockchain private key and public key pair generation software to generate the private key and public key of the signer who is to digitally sign the target file, the method may further include:

获得签名者的身份标识;Obtain the signer's identity;

将身份标识和公钥对应存储至区块链分布式账本中。The identity and public key are stored correspondingly in the blockchain distributed ledger.

可选地,签名标记中可以包括信息摘要值。Optionally, a message digest value may be included in the signature tag.

可选地,签名标记中还可以包括:Optionally, the signature tag may also include:

公钥、签名者的数字签名的签名时间和签名者的身份标识中的至少一项。At least one of the public key, the signature time of the signer's digital signature, and the signer's identity.

第二方面,本发明实施例还提供了一种文件签名装置,该装置可以包括:In a second aspect, an embodiment of the present invention further provides a file signature device, the device may include:

确定模块,用于确定待进行数字签名的目标文件,并根据预设的信息摘要算法计算目标文件的信息摘要值;A determination module, used for determining the target file to be digitally signed, and calculating the information digest value of the target file according to a preset information digest algorithm;

第一获得模块,用于获得要对目标文件进行数字签名的签名者的私钥和公钥;The first obtaining module is used to obtain the private key and public key of the signer who wants to digitally sign the target file;

计算模块,用于利用私钥对信息摘要值进行加密计算,得到签名者的数字签名;The calculation module is used to encrypt and calculate the information digest value by using the private key to obtain the digital signature of the signer;

第一存储模块,用于将签名者的数字签名、信息摘要值和公钥对应存储至区块链分布式账本中;The first storage module is used for correspondingly storing the signer's digital signature, message digest value and public key in the blockchain distributed ledger;

标记模块,用于在目标文件中写入签名标记,签名标记用于标记已对目标文件进行数字签名。The marking module is used to write a signature mark in the target file, and the signature mark is used to mark that the target file has been digitally signed.

可选地,在一种实现方式中,第一获得模块可以包括:Optionally, in an implementation manner, the first obtaining module may include:

加载子模块,用于从区块链私钥公钥对存储软件中,加载要对目标文件进行数字签名的签名者的私钥加密文件和公钥;The loading submodule is used to load the private key encrypted file and public key of the signer who wants to digitally sign the target file from the blockchain private key public key pair storage software;

解密子模块,用于利用用户输入的私钥解密密钥对私钥加密文件进行解密,得到公钥对应的私钥。The decryption sub-module is used to decrypt the private key encrypted file by using the private key decryption key input by the user to obtain the private key corresponding to the public key.

可选地,在另一种实现方式中,第一获得模块可以包括:Optionally, in another implementation manner, the first obtaining module may include:

调用子模块,用于调用区块链私钥公钥对生成软件,生成要对目标文件进行数字签名的签名者的私钥和公钥。The calling submodule is used to call the blockchain private key and public key pair generation software to generate the private key and public key of the signer who will digitally sign the target file.

可选地,在本发明实施例中,该装置还可以包括:Optionally, in this embodiment of the present invention, the device may further include:

第二获得模块,用于在调用区块链私钥公钥对生成软件,生成要对目标文件进行数字签名的签名者的私钥和公钥之后,获得签名者的身份标识;The second obtaining module is used to obtain the identity of the signer after invoking the blockchain private key and public key pair generation software to generate the private key and public key of the signer who will digitally sign the target file;

第二存储模块,用于将身份标识和公钥对应存储至区块链分布式账本中。The second storage module is used to store the identity identifier and the public key in the distributed ledger of the blockchain.

可选地,签名标记中可以包括信息摘要值。Optionally, a message digest value may be included in the signature tag.

可选地,签名标记中还可以包括:Optionally, the signature tag may also include:

公钥、签名者的数字签名的签名时间和签名者的身份标识中的至少一项。At least one of the public key, the signature time of the signer's digital signature, and the signer's identity.

第三方面,本发明实施例还提供了一种电子设备,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;In a third aspect, an embodiment of the present invention further provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;

存储器,用于存放计算机程序;memory for storing computer programs;

处理器,用于执行存储器上所存放的程序时,实现本发明实施例提供的任一项文件签名方法的方法步骤。The processor is configured to implement the method steps of any one of the file signature methods provided by the embodiments of the present invention when executing the program stored in the memory.

第四方面,本发明实施例还提供了一种可读存储介质,可读存储介质内存储有计算机程序,计算机程序被处理器执行时实现:本发明实施例提供的任一项文件签名方法的方法步骤。In a fourth aspect, an embodiment of the present invention further provides a readable storage medium, where a computer program is stored in the readable storage medium, and the computer program is executed by a processor to realize: method steps.

第五方面,本发明实施例还提供了一种包含指令的计算机程序产品,当其在电子设备上运行时,使得电子设备执行:本发明实施例提供的任一项文件签名方法的方法步骤。In a fifth aspect, the embodiments of the present invention further provide a computer program product containing instructions, which, when running on the electronic device, cause the electronic device to execute: the method steps of any one of the file signature methods provided by the embodiments of the present invention.

在本发明实施例中,可以确定待进行数字签名的目标文件,并可以根据预设的信息摘要算法计算得到该目标文件的信息摘要值。然后,可以获得要对该目标文件进行数字签名的签名者的私钥和公钥。之后,利用该私钥对信息摘要值进行加密计算,得到该签名者的数字签名。在得到数字签名后,将该数字签名、信息摘要值和公钥对应存储至区块链分布式账本中。这样,可以将数字签名存储至区块链分布式账本中。其中,由于区块链分布式账本是集体维护的分布式数据库,并具有去中心化和信息不可篡改性等特点。因而,可以避免现有技术中将数字签名写在目标文件尾部所造成的数字签名容易被篡改的情况发生,确保了该数字签名的有效性。另外,将该数字签名、信息摘要值和公钥对应存储至区块链分布式账本中,可以便于后续利用该信息摘要值和公钥对该数字签名进行验证。In the embodiment of the present invention, the target file to be digitally signed can be determined, and the information digest value of the target file can be obtained by calculating according to a preset information digest algorithm. Then, the private key and public key of the signer to digitally sign the target file can be obtained. After that, use the private key to encrypt and calculate the message digest value to obtain the digital signature of the signer. After the digital signature is obtained, the digital signature, the message digest value and the public key are correspondingly stored in the blockchain distributed ledger. In this way, digital signatures can be stored in the blockchain distributed ledger. Among them, the blockchain distributed ledger is a distributed database maintained collectively, and has the characteristics of decentralization and information immutability. Therefore, the situation in which the digital signature is easily tampered due to writing the digital signature at the tail of the target file in the prior art can be avoided, and the validity of the digital signature is ensured. In addition, the digital signature, the information digest value and the public key are correspondingly stored in the blockchain distributed ledger, which can facilitate the subsequent verification of the digital signature by using the information digest value and the public key.

在将该数字签名、信息摘要值和公钥对应存储至区块链分布式账本中之后,还可以在目标文件中写入签名标记。这样,可以方便记录该目标文件是已经进行了数字签名的文件,便于后续对该目标文件的数字签名进行验证。After the digital signature, message digest value and public key are stored in the blockchain distributed ledger, the signature mark can also be written in the target file. In this way, it is convenient to record that the target file is a file that has been digitally signed, so as to facilitate subsequent verification of the digital signature of the target file.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained according to these drawings without creative efforts.

图1为本发明实施例所提供的一种文件签名方法的流程图;1 is a flowchart of a file signature method provided by an embodiment of the present invention;

图2为本发明实施例所提供的一种文件签名装置的结构示意图;2 is a schematic structural diagram of a file signature device according to an embodiment of the present invention;

图3为本发明实施例所提供的一种电子设备的结构示意图。FIG. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

为了解决现有技术中存在的技术问题,本发明实施例提供了一种文件签名方法、装置、电子设备及可读存储介质。In order to solve the technical problems existing in the prior art, the embodiments of the present invention provide a file signature method, an apparatus, an electronic device, and a readable storage medium.

下面首先对本发明实施例提供的文件签名方法进行说明。The following first describes the file signature method provided by the embodiment of the present invention.

其中,本发明实施例提供的文件签名方法可以应用于文档阅读客户端。该文档阅读客户端包括但并不局限于:WPS(WPS software,WPS软件)客户端、PPT(PowerPoint,演示文稿)客户端和PDF(Portable Document Format,便携式文档格式)客户端。Wherein, the file signature method provided by the embodiment of the present invention can be applied to a document reading client. The document reading client includes but is not limited to: WPS (WPS software, WPS software) client, PPT (PowerPoint, presentation) client and PDF (Portable Document Format, portable document format) client.

相应地,本发明实施例中的目标文件包括但并不局限于:WPS文件、PPT文件和PDF文件,当然并不局限于此。Correspondingly, the target files in the embodiments of the present invention include, but are not limited to, WPS files, PPT files, and PDF files, which are of course not limited thereto.

参见图1,该文件签名方法可以包括如下步骤:Referring to Figure 1, the file signature method may include the following steps:

S101:确定待进行数字签名的目标文件,并根据预设的信息摘要算法计算目标文件的信息摘要值;S101: Determine a target file to be digitally signed, and calculate an information digest value of the target file according to a preset information digest algorithm;

预设的信息摘要算法包括但并不局限于:CRC(Cyclic Redundancy Check,循环冗余校验)算法、SHA(Secure Hash Algorithm,安全散列算法)算法、RIPEMD(RACE IntegrityPrimitives Evaluation Message Digest,RACE原始完整性校验消息摘要)算法、MD4(Message-Digest Algorithm 4,信息摘要算法版本4)算法,以及MD5(Message-DigestAlgorithm 5,信息摘要算法版本5)算法。The preset message digest algorithms include but are not limited to: CRC (Cyclic Redundancy Check, cyclic redundancy check) algorithm, SHA (Secure Hash Algorithm, secure hash algorithm) algorithm, RIPEMD (RACE IntegrityPrimitives Evaluation Message Digest, RACE original Integrity check message digest) algorithm, MD4 (Message-Digest Algorithm 4, message digest algorithm version 4) algorithm, and MD5 (Message-Digest Algorithm 5, message digest algorithm version 5) algorithm.

其中,计算目标文件的信息摘要值具体可以是指:计算目标文件的文件内容的信息摘要值。Wherein, calculating the information digest value of the target file may specifically refer to: calculating the information digest value of the file content of the target file.

S102:获得要对目标文件进行数字签名的签名者的私钥和公钥;S102: Obtain the private key and public key of the signer who wants to digitally sign the target file;

其中,当要对目标文件进行数字签名的签名者已经有私钥公钥对时,可以直接从区块链私钥公钥对存储软件中,加载该签名者的私钥加密文件和公钥。Among them, when the signer who wants to digitally sign the target file already has a private key and public key pair, the private key encrypted file and public key of the signer can be loaded directly from the blockchain private key and public key pair storage software.

然后,利用用户输入的私钥解密密钥对私钥加密文件进行解密,得到公钥对应的私钥。其中,该种加载私钥加密文件的方式,可以避免直接加载签名者的私钥,从而可以避免私钥泄露,提高私钥的安全性。Then, the private key encrypted file is decrypted using the private key decryption key input by the user to obtain the private key corresponding to the public key. Among them, this method of loading the private key encrypted file can avoid directly loading the signer's private key, thereby avoiding the leakage of the private key and improving the security of the private key.

该区块链私钥公钥对存储软件包括但并不局限于数字钱包。其中,数字钱包为现有概念,在此不对数字钱包进行详细描述。The blockchain private key and public key pair storage software includes but is not limited to digital wallets. Among them, the digital wallet is an existing concept, and the digital wallet is not described in detail here.

当要对目标文件进行数字签名的签名者还没有私钥公钥对时,可以调用区块链私钥公钥对生成软件,生成该签名者的私钥和公钥。When the signer who wants to digitally sign the target file does not have a private key and public key pair, the blockchain private key and public key pair generation software can be called to generate the signer's private key and public key.

其中,区块链私钥公钥对生成软件可以为包括:任意可以生成区块链私钥公钥对的软件。The software for generating a blockchain private key and public key pair may include: any software that can generate a blockchain private key and public key pair.

S103:利用私钥对信息摘要值进行加密计算,得到签名者的数字签名;S103: Use the private key to encrypt and calculate the message digest value to obtain the digital signature of the signer;

举例而言,当信息摘要值为MD5值时,可以利用私钥对该MD5值进行加密计算,从而可以得到该签名者的数字签名。For example, when the message digest value is an MD5 value, the MD5 value can be encrypted and calculated by using the private key, so that the digital signature of the signer can be obtained.

S104:将签名者的数字签名、信息摘要值和公钥对应存储至区块链分布式账本中;S104: correspondingly store the signer's digital signature, message digest value and public key in the blockchain distributed ledger;

具体地,可以利用该签名者的数字签名、该目标文件的信息摘要值和该签名者的公钥构建一个区块链发布块,实现数字签名、信息摘要值和公钥的对应存储。然后,调用区块链SDK(Software Development Kit,软件开发工具包)将该发布块存储至区块链分布式账本中,从而实现该发布块的全网发布。其中,该区块链SDK为任意可以将发布块存储至区块链分布式账本中的软件,在此不做详述。Specifically, a blockchain publishing block can be constructed by using the signer's digital signature, the information digest value of the target file, and the signer's public key, so as to realize the corresponding storage of the digital signature, the information digest value and the public key. Then, the blockchain SDK (Software Development Kit, software development kit) is called to store the release block in the blockchain distributed ledger, so as to realize the network-wide release of the release block. Among them, the blockchain SDK is any software that can store released blocks in the blockchain distributed ledger, which will not be described in detail here.

由于区块链分布式账本是集体维护的分布式数据库,具有去中心化和信息不可篡改性等特点。因而,使得存储至该区块链分布式账本中的数字签名是不可篡改的,保证了该数字签名的有效性。进而,可以避免将信息泄露给恶意用户的情况发生,保证了数据的安全性。Since the blockchain distributed ledger is a distributed database maintained collectively, it has the characteristics of decentralization and information immutability. Therefore, the digital signature stored in the distributed ledger of the blockchain cannot be tampered with, which ensures the validity of the digital signature. Further, it is possible to avoid the occurrence of information leaking to malicious users, thereby ensuring data security.

对于背景技术所举的示例而言,现有技术中在使用数字签名过程中,常需要依赖数字证书来证明李四得到的公钥确实为张三的公钥,从而在一定程度上来确保张三的数字签名的有效性。其中,数字证书是证书授权中心机构进行数字签名的、包含公钥拥有者信息以及公钥的文件,该数字证书可以用于证明:公钥拥有者合法拥有该证书中列出的公钥。For the examples given in the background art, in the process of using digital signatures in the prior art, it is often necessary to rely on a digital certificate to prove that the public key obtained by Li Si is indeed the public key of Zhang San, so as to ensure that Zhang San’s public key is to a certain extent. the validity of the digital signature. The digital certificate is a file digitally signed by the certificate authority and containing the public key owner information and the public key. The digital certificate can be used to prove that the public key owner legally owns the public key listed in the certificate.

但是,证书授权中心机构是中心化机构,该机构很可能会遭受到黑客的攻击。当该机构遭到攻击时,该机构所颁发的数字证书很可能是被黑客篡改的证书。并且,当该机构所颁发的张三的数字证书被黑客篡改时,此时无法确保张三的数字签名的有效性,使数据的安全受到威胁。However, the certificate authority is a centralized authority, and the authority is likely to be attacked by hackers. When the agency is attacked, the digital certificates issued by the agency are likely to be tampered with by hackers. Moreover, when Zhang San's digital certificate issued by the agency is tampered with by hackers, the validity of Zhang San's digital signature cannot be ensured at this time, which threatens the security of data.

而在本发明实施例中,由于存储在该区块链分布式账本中的数字签名以及对应存储的公钥是不可篡改的,因而能够确保存储至区块链分布式账本中的该数字签名即为该公钥所对应的签名者的数字签名,从而可以保证该数字签名的有效性。In the embodiment of the present invention, since the digital signature stored in the blockchain distributed ledger and the corresponding stored public key cannot be tampered with, it can be ensured that the digital signature stored in the blockchain distributed ledger is It is the digital signature of the signer corresponding to the public key, so that the validity of the digital signature can be guaranteed.

另外,在将该数字签名、信息摘要值和公钥对应存储至区块链分布式账本中后,可以便于后续利用该信息摘要值和公钥对该数字签名进行验证。In addition, after the digital signature, the information digest value and the public key are correspondingly stored in the blockchain distributed ledger, it is convenient to use the information digest value and the public key to verify the digital signature subsequently.

S105:在目标文件中写入签名标记,签名标记用于标记已对目标文件进行数字签名。S105: Write a signature mark in the target file, where the signature mark is used to mark that the target file has been digitally signed.

为了便于后续能够确定该目标文件是经过了数字签名的文件,从而避免重复对该目标文件进行数字签名,并便于对该目标文件的数字签名进行验证,还可以在目标文件中写入签名标记。In order to facilitate the subsequent determination that the target file is a digitally signed file, thereby avoiding repeated digital signatures on the target file and facilitating verification of the digital signature of the target file, a signature mark may also be written in the target file.

其中,该签名标记可以是由本领域技术人员根据具体需求而设定的标记。为了清晰说明,后续对签名标记进行详细说明。Wherein, the signature mark may be a mark set by those skilled in the art according to specific requirements. For the sake of clarity, the signature mark will be described in detail later.

在本发明实施例中,可以确定待进行数字签名的目标文件,并可以根据预设的信息摘要算法计算得到该目标文件的信息摘要值。然后,可以获得要对该目标文件进行数字签名的签名者的私钥和公钥。之后,利用该私钥对信息摘要值进行加密计算,得到该签名者的数字签名。在得到数字签名后,将该数字签名、信息摘要值和公钥对应存储至区块链分布式账本中。这样,可以将数字签名存储至区块链分布式账本中。其中,由于区块链分布式账本是集体维护的分布式数据库,并具有去中心化和信息不可篡改性等特点。因而,可以避免现有技术中将数字签名写在目标文件尾部所造成的数字签名容易被篡改的情况发生,确保了该数字签名的有效性。另外,将该数字签名、信息摘要值和公钥对应存储至区块链分布式账本中,可以便于后续利用该信息摘要值和公钥对该数字签名进行验证。In the embodiment of the present invention, the target file to be digitally signed can be determined, and the information digest value of the target file can be obtained by calculating according to a preset information digest algorithm. Then, the private key and public key of the signer to digitally sign the target file can be obtained. After that, use the private key to encrypt and calculate the message digest value to obtain the digital signature of the signer. After the digital signature is obtained, the digital signature, the message digest value and the public key are correspondingly stored in the blockchain distributed ledger. In this way, digital signatures can be stored in the blockchain distributed ledger. Among them, the blockchain distributed ledger is a distributed database maintained collectively, and has the characteristics of decentralization and information immutability. Therefore, the situation in which the digital signature is easily tampered due to writing the digital signature at the tail of the target file in the prior art can be avoided, and the validity of the digital signature is ensured. In addition, the digital signature, the information digest value and the public key are correspondingly stored in the blockchain distributed ledger, which can facilitate the subsequent verification of the digital signature by using the information digest value and the public key.

在将该数字签名、信息摘要值和公钥对应存储至区块链分布式账本中之后,还可以在目标文件中写入签名标记。这样,可以方便记录该目标文件是已经进行了数字签名的文件,便于后续对该目标文件的数字签名进行验证。After the digital signature, message digest value and public key are stored in the blockchain distributed ledger, the signature mark can also be written in the target file. In this way, it is convenient to record that the target file is a file that has been digitally signed, so as to facilitate subsequent verification of the digital signature of the target file.

下面以PDF文件为示例,对本发明实施例提供的文件签名方法进行详细说明。The following takes a PDF file as an example to describe in detail the file signature method provided by the embodiment of the present invention.

假设电子设备中安装有PDF客户端,并且通过该PDF客户端打开有目标PDF文件。当用户A想要对该目标PDF文件进行数字签名时,该PDF客户端可以根据MD5算法来计算该目标PDF文件的文件内容的MD5值。It is assumed that a PDF client is installed in the electronic device, and a target PDF file is opened through the PDF client. When user A wants to digitally sign the target PDF file, the PDF client can calculate the MD5 value of the file content of the target PDF file according to the MD5 algorithm.

该PDF客户端还可以获得用户A的私钥和公钥。具体地,该PDF客户端可以询问用户A是否存在区块链公钥和私钥。若用户A存在区块链公钥和私钥,则从用户A用于存储公钥和私钥的区块链私钥公钥对存储软件中加载该用户A的私钥和公钥。其中,为了保证私钥的安全,可以加载私钥加密文件,然后根据用户A输入的私钥解密秘钥解密得到私钥。The PDF client can also obtain user A's private key and public key. Specifically, the PDF client can ask user A whether the blockchain public key and private key exist. If user A has a blockchain public key and private key, load the user A's private key and public key from the blockchain private key and public key pair storage software used by user A to store the public key and private key. Among them, in order to ensure the security of the private key, the private key encrypted file can be loaded, and then decrypted according to the private key entered by user A to obtain the private key.

若用户A不存在区块链公钥和私钥,则可以调用区块链私钥公钥对生成软件来生成用户A的私钥和公钥。然后,PDF客户端可以利用所生成的私钥对MD5值进行数字签名。If user A does not have a blockchain public key and private key, the blockchain private key and public key pair generation software can be invoked to generate user A's private key and public key. The PDF client can then digitally sign the MD5 value with the generated private key.

其中,在生成用户A的私钥和公钥之后,还可以获得用户A的身份标识。然后,将用户A的身份标识和用户A的公钥对应存储至区块链分布式账本中。这样,使得区块链分布式账本中可以记录有:用户A的身份标识和用户A的公钥的对应关系。也就是说,此时全网可以证明:用户A合法拥有该公钥,避免了用户A的公钥被冒充。Wherein, after the private key and public key of user A are generated, the identity of user A can also be obtained. Then, the identity of user A and the public key of user A are correspondingly stored in the blockchain distributed ledger. In this way, the blockchain distributed ledger can record the correspondence between the identity of user A and the public key of user A. That is to say, at this time, the whole network can prove that user A legally owns the public key, which prevents user A's public key from being impersonated.

该PDF客户端在获得用户A的私钥后,可以利用所获得的私钥对该MD5值进行加密计算,从而得到针对该目标PDF文件的数字签名。进而,将该数字签名、MD5值和公钥对应存储至区块链分布式账本中。这样,不需要将数字签名写在目标PDF文件的尾部。而且,将数字签名写在区块链分布式账本中的方式可以避免数字签名被篡改,确保了数字签名的有效性。After obtaining the private key of user A, the PDF client can use the obtained private key to encrypt and calculate the MD5 value, thereby obtaining a digital signature for the target PDF file. Further, the digital signature, MD5 value and public key are stored in the blockchain distributed ledger. In this way, there is no need to write the digital signature at the end of the target PDF file. Moreover, the way of writing the digital signature in the blockchain distributed ledger can prevent the digital signature from being tampered with and ensure the validity of the digital signature.

其中,将该数字签名、信息摘要值和公钥对应存储至区块链分布式账本中,可以便于后续利用该信息摘要值和公钥对该数字签名进行验证。另外,为了便于后续对目标PDF文件的数字签名进行验证,还可以给该目标PDF文件标记一个签名标记,以标记该目标PDF文件已经完成了数字签名。Wherein, storing the digital signature, the information digest value and the public key in the blockchain distributed ledger can facilitate the subsequent verification of the digital signature by using the information digest value and the public key. In addition, in order to facilitate the subsequent verification of the digital signature of the target PDF file, a signature mark may also be marked on the target PDF file to mark that the target PDF file has completed the digital signature.

这样,在完成对该目标PDF文件的数字签名之后,该PDF客户端还可以通过该目标PDF文件中记录的签名标记,识别该目标PDF文件是经过数字签名的文件。In this way, after completing the digital signature of the target PDF file, the PDF client can also identify that the target PDF file is a digitally signed file through the signature mark recorded in the target PDF file.

为了验证该目标PDF文件的文件内容是否被篡改,该PDF客户端还可以计算该目标PDF文件当前的MD5值。然后,调用区块链SDK查找区块链分布式账本中的、与当前的MD5值匹配的MD5值。当在该区块链分布式账本中查找不到与当前的MD5值匹配的MD5值时,则表明该目标PDF文件的文件内容被篡改。In order to verify whether the file content of the target PDF file has been tampered with, the PDF client may also calculate the current MD5 value of the target PDF file. Then, call the blockchain SDK to find the MD5 value in the blockchain distributed ledger that matches the current MD5 value. When no MD5 value matching the current MD5 value can be found in the blockchain distributed ledger, it indicates that the file content of the target PDF file has been tampered with.

当在该区块链分布式账本中能够查找到与当前的MD5值匹配的MD5值时,该PDF客户端还可以获取区块链分布式账本中与该MD5值对应存储的公钥和数字签名。然后,利用获取得到的公钥对该数字签名进行解密,并利用解密得到的MD5值与当前的MD5值进行匹配。若匹配不成功,则表明该数字签名很可能是恶意用户伪造的数字签名。此时,为了保证用户A的数字签名的有效性,可以重新对该目标PDF文件进行数字签名。When the MD5 value matching the current MD5 value can be found in the blockchain distributed ledger, the PDF client can also obtain the public key and digital signature stored in the blockchain distributed ledger corresponding to the MD5 value . Then, use the obtained public key to decrypt the digital signature, and use the decrypted MD5 value to match the current MD5 value. If the match is unsuccessful, it indicates that the digital signature is likely to be forged by a malicious user. At this time, in order to ensure the validity of the digital signature of user A, the target PDF file may be re-signed digitally.

若匹配成功,则表明该目标PDF文件的文件内容未被篡改,且表明该目标PDF文件确实是用户A签名的。If the match is successful, it indicates that the file content of the target PDF file has not been tampered with, and indicates that the target PDF file is indeed signed by user A.

其中,为了更有效地对数字签名进行验证,签名标记中可以包括信息摘要MD5值。这样,在数字签名验证过程中,可以利用计算得到的当前的MD5值与该信息摘要值先进行匹配。若匹配不成功,则表明该目标PDF文件的文件内容被篡改。若匹配成功,则查找区块链分布式账本中是否存在该签名标记的中的MD5值,并根据查找结果执行相应的操作。Wherein, in order to verify the digital signature more effectively, the signature tag may include an information digest MD5 value. In this way, in the process of digital signature verification, the current MD5 value obtained by calculation can be used to first match the message digest value. If the matching is unsuccessful, it indicates that the file content of the target PDF file has been tampered with. If the match is successful, find out whether the MD5 value in the signature tag exists in the blockchain distributed ledger, and perform the corresponding operation according to the search result.

另外,该签名标记中还可以包括:公钥、签名者的数字签名的签名时间和签名者的身份标识中的至少一项。这样,可以先根据该签名标记中所记录的信息来验证该目标PDF文件的文件内容是否被篡改。In addition, the signature mark may also include: at least one of the public key, the signature time of the signer's digital signature, and the signer's identity. In this way, it can be verified whether the file content of the target PDF file has been tampered with according to the information recorded in the signature mark.

其中,当签名标记中携带有签名者的身份标识时,在数字签名验证过程中,可以先向用户展示签名者的身份标识。当用户对这个身份标识进行确认之后,即在用户确认是签名者的数字签名后,PDF客户端可以利用计算得到的该当前的MD5值与签名标记中携带的信息摘要值进行匹配,并根据匹配结果执行相应的操作。反之,当用户对该身份标识进行否认时,则确定该目标文件被篡改。Wherein, when the signature mark carries the signer's identity, in the process of digital signature verification, the signer's identity may be displayed to the user first. After the user confirms the identity, that is, after the user confirms that it is the signer's digital signature, the PDF client can use the calculated current MD5 value to match the information digest value carried in the signature tag, and based on the matching The result performs the corresponding action. On the contrary, when the user denies the identification, it is determined that the target file has been tampered with.

当该签名标记中还携带数字签名的签名时间时,而且,在该区块链分布式账本中能查找到与当前的MD5值匹配的MD5值时,还可以确定该查找到的MD5值所对应的存储时间戳。并判断该存储时间戳与该数字签名的签名时间的时间间隔是否小于预设阈值。若大于等于预设阈值,则确定目标文件被篡改。其中,该预设阈值可以由本领域技术人员根据实际情况进行设定,在此不做限定。When the signature tag also carries the signature time of the digital signature, and when an MD5 value matching the current MD5 value can be found in the blockchain distributed ledger, it can also be determined that the found MD5 value corresponds to the storage timestamp. And it is judged whether the time interval between the storage time stamp and the signature time of the digital signature is less than a preset threshold. If it is greater than or equal to the preset threshold, it is determined that the target file has been tampered with. Wherein, the preset threshold can be set by those skilled in the art according to the actual situation, which is not limited here.

反之,若小于预设阈值,则可以确定目标文件未被篡改。其中,当该签名标记中还携带有该公钥时,还可以判断区块链分布式账本中与该信息摘要值对应存储的公钥是否与该签名标记中携带的公钥匹配。若不匹配,则确定该目标文件被篡改。On the contrary, if it is less than the preset threshold, it can be determined that the target file has not been tampered with. Wherein, when the signature tag also carries the public key, it can also be determined whether the public key stored in the blockchain distributed ledger corresponding to the information digest value matches the public key carried in the signature tag. If it does not match, it is determined that the target file has been tampered with.

若匹配,则利用该公钥对区块链分布式账本中与该信息摘要值对应存储的数字签名进行解密。若解密失败,则表明该对应存储的数字签名很可能是伪造的,此时确定该目标文件被篡改。若解密成功,判断解密得到的信息摘要值是否与该对应存储的信息摘要值相同。若相同,确定目标文件未被篡改。若不相同,则表明该数字签名很可能是恶意用户伪造的数字签名。此时,为了保证数字签名的有效性,可以重新对利用上述数字签名方式对目标文件进行签名,从而得到新的数字签名。If there is a match, the public key is used to decrypt the digital signature stored in the blockchain distributed ledger corresponding to the message digest value. If the decryption fails, it indicates that the corresponding stored digital signature is likely to be forged, and it is determined that the target file has been tampered with. If the decryption is successful, it is judged whether the message digest value obtained by decryption is the same as the corresponding stored message digest value. If they are the same, it is determined that the target file has not been tampered with. If they are not the same, it indicates that the digital signature is likely to be a digital signature forged by a malicious user. At this time, in order to ensure the validity of the digital signature, the target file may be re-signed using the above-mentioned digital signature method, thereby obtaining a new digital signature.

其中,为了签名标记中所携带的内容不被恶意用户篡改,还可以利用用户A的私钥对该签名标记中所携带的内容进行数字签名,这是合理的。Among them, in order to prevent the content carried in the signature mark from being tampered with by malicious users, it is reasonable to use the private key of user A to digitally sign the content carried in the signature mark.

综上,由于区块链分布式账本是集体维护的分布式数据库,并具有去中心化和信息不可篡改性等特点。因而,应用本发明实施例提供的文件签名方法,可以将数字签名存储至区块链分布式账本中,从而可以确保数字签名不被篡改,提高了数据的安全性。In summary, since the blockchain distributed ledger is a distributed database maintained collectively, it has the characteristics of decentralization and information immutability. Therefore, by applying the file signature method provided by the embodiment of the present invention, the digital signature can be stored in the blockchain distributed ledger, thereby ensuring that the digital signature is not tampered with and improving the security of the data.

相应于上述方法实施例,本发明实施例还提供了一种文件签名装置,参见图2,该装置可以包括:Corresponding to the above-mentioned method embodiments, an embodiment of the present invention further provides a file signature device. Referring to FIG. 2 , the device may include:

确定模块201,用于确定待进行数字签名的目标文件,并根据预设的信息摘要算法计算目标文件的信息摘要值;A determination module 201, configured to determine a target file to be digitally signed, and calculate an information digest value of the target file according to a preset information digest algorithm;

第一获得模块202,用于获得要对目标文件进行数字签名的签名者的私钥和公钥;The first obtaining module 202 is used to obtain the private key and public key of the signer who will digitally sign the target file;

计算模块203,用于利用私钥对信息摘要值进行加密计算,得到签名者的数字签名;The calculation module 203 is used to encrypt and calculate the information digest value by using the private key to obtain the digital signature of the signer;

第一存储模块204,用于将签名者的数字签名、信息摘要值和公钥对应存储至区块链分布式账本中;The first storage module 204 is used for correspondingly storing the signer's digital signature, message digest value and public key in the blockchain distributed ledger;

标记模块205,用于在目标文件中写入签名标记,签名标记用于标记已对目标文件进行数字签名。The marking module 205 is used to write a signature mark in the target file, and the signature mark is used to mark that the target file has been digitally signed.

应用本发明实施例提供的装置,可以确定待进行数字签名的目标文件,并可以根据预设的信息摘要算法计算得到该目标文件的信息摘要值。然后,可以获得要对该目标文件进行数字签名的签名者的私钥和公钥。之后,利用该私钥对信息摘要值进行加密计算,得到该签名者的数字签名。在得到数字签名后,将该数字签名、信息摘要值和公钥对应存储至区块链分布式账本中。这样,可以将数字签名存储至区块链分布式账本中。其中,由于区块链分布式账本是集体维护的分布式数据库,并具有去中心化和信息不可篡改性等特点。因而,可以避免现有技术中将数字签名写在目标文件尾部所造成的数字签名容易被篡改的情况发生,确保了该数字签名的有效性。另外,将该数字签名、信息摘要值和公钥对应存储至区块链分布式账本中,可以便于后续利用该信息摘要值和公钥对该数字签名进行验证。By applying the device provided by the embodiment of the present invention, the target file to be digitally signed can be determined, and the information digest value of the target file can be obtained by calculating according to a preset information digest algorithm. Then, the private key and public key of the signer to digitally sign the target file can be obtained. After that, use the private key to encrypt and calculate the message digest value to obtain the digital signature of the signer. After the digital signature is obtained, the digital signature, the message digest value and the public key are correspondingly stored in the blockchain distributed ledger. In this way, digital signatures can be stored in the blockchain distributed ledger. Among them, the blockchain distributed ledger is a distributed database maintained collectively, and has the characteristics of decentralization and information immutability. Therefore, the situation in which the digital signature is easily tampered due to writing the digital signature at the tail of the target file in the prior art can be avoided, and the validity of the digital signature is ensured. In addition, the digital signature, the information digest value and the public key are correspondingly stored in the blockchain distributed ledger, which can facilitate the subsequent verification of the digital signature by using the information digest value and the public key.

在将该数字签名、信息摘要值和公钥对应存储至区块链分布式账本中之后,还可以在目标文件中写入签名标记。这样,可以方便记录该目标文件是已经进行了数字签名的文件,便于后续对该目标文件的数字签名进行验证。After the digital signature, message digest value and public key are stored in the blockchain distributed ledger, the signature mark can also be written in the target file. In this way, it is convenient to record that the target file is a file that has been digitally signed, so as to facilitate subsequent verification of the digital signature of the target file.

可选地,在本发明的一个实施例中,第一获得模块202可以包括:Optionally, in an embodiment of the present invention, the first obtaining module 202 may include:

加载子模块,用于从区块链私钥公钥对存储软件中,加载要对目标文件进行数字签名的签名者的私钥加密文件和公钥;The loading submodule is used to load the private key encrypted file and public key of the signer who wants to digitally sign the target file from the blockchain private key public key pair storage software;

解密子模块,用于利用用户输入的私钥解密密钥对私钥加密文件进行解密,得到公钥对应的私钥。The decryption sub-module is used to decrypt the private key encrypted file by using the private key decryption key input by the user to obtain the private key corresponding to the public key.

可选地,在本发明的另一个实施例中,第一获得模块202可以包括:Optionally, in another embodiment of the present invention, the first obtaining module 202 may include:

调用子模块,用于调用区块链私钥公钥对生成软件,生成要对目标文件进行数字签名的签名者的私钥和公钥。The calling submodule is used to call the blockchain private key and public key pair generation software to generate the private key and public key of the signer who will digitally sign the target file.

可选地,在本发明实施例中,该装置还可以包括:Optionally, in this embodiment of the present invention, the device may further include:

第二获得模块,用于在调用区块链私钥公钥对生成软件,生成要对目标文件进行数字签名的签名者的私钥和公钥之后,获得签名者的身份标识;The second obtaining module is used to obtain the identity of the signer after invoking the blockchain private key and public key pair generation software to generate the private key and public key of the signer who will digitally sign the target file;

第二存储模块,用于将身份标识和公钥对应存储至区块链分布式账本中。The second storage module is used to store the identity identifier and the public key in the distributed ledger of the blockchain.

可选地,在本发明实施例中,签名标记中可以包括信息摘要值。Optionally, in this embodiment of the present invention, the signature tag may include an information digest value.

可选地,在本发明实施例中,签名标记中还可以包括:公钥、签名者的数字签名的签名时间和签名者的身份标识中的至少一项。Optionally, in this embodiment of the present invention, the signature mark may further include at least one of: a public key, the signature time of the signer's digital signature, and the signer's identity identifier.

相应于上述方法实施例,本发明实施例还提供了一种电子设备,参见图3,包括处理器301、通信接口302、存储器303和通信总线304,其中,处理器301,通信接口302,存储器303通过通信总线304完成相互间的通信,Corresponding to the above method embodiments, an embodiment of the present invention further provides an electronic device, see FIG. 3 , including a processor 301, a communication interface 302, a memory 303, and a communication bus 304, wherein the processor 301, the communication interface 302, the memory 303 completes the mutual communication through the communication bus 304,

存储器303,用于存放计算机程序;a memory 303 for storing computer programs;

处理器301,用于执行存储器303上所存放的程序时,实现上述任一项文件签名方法的方法步骤。The processor 301 is configured to implement the method steps of any one of the above file signature methods when executing the program stored in the memory 303 .

在本发明实施例中,电子设备可以确定待进行数字签名的目标文件,并可以根据预设的信息摘要算法计算得到该目标文件的信息摘要值。然后,可以获得要对该目标文件进行数字签名的签名者的私钥和公钥。之后,利用该私钥对信息摘要值进行加密计算,得到该签名者的数字签名。在得到数字签名后,将该数字签名、信息摘要值和公钥对应存储至区块链分布式账本中。这样,可以将数字签名存储至区块链分布式账本中。其中,由于区块链分布式账本是集体维护的分布式数据库,并具有去中心化和信息不可篡改性等特点。因而,可以避免现有技术中将数字签名写在目标文件尾部所造成的数字签名容易被篡改的情况发生,确保了该数字签名的有效性。另外,将该数字签名、信息摘要值和公钥对应存储至区块链分布式账本中,可以便于后续利用该信息摘要值和公钥对该数字签名进行验证。In the embodiment of the present invention, the electronic device can determine the target file to be digitally signed, and can calculate and obtain the information digest value of the target file according to a preset information digest algorithm. Then, the private key and public key of the signer to digitally sign the target file can be obtained. After that, use the private key to encrypt and calculate the message digest value to obtain the digital signature of the signer. After the digital signature is obtained, the digital signature, the message digest value and the public key are correspondingly stored in the blockchain distributed ledger. In this way, digital signatures can be stored in the blockchain distributed ledger. Among them, the blockchain distributed ledger is a distributed database maintained collectively, and has the characteristics of decentralization and information immutability. Therefore, the situation in which the digital signature is easily tampered due to writing the digital signature at the tail of the target file in the prior art can be avoided, and the validity of the digital signature is ensured. In addition, the digital signature, the information digest value and the public key are correspondingly stored in the blockchain distributed ledger, which can facilitate the subsequent verification of the digital signature by using the information digest value and the public key.

在将该数字签名、信息摘要值和公钥对应存储至区块链分布式账本中之后,还可以在目标文件中写入签名标记。这样,可以方便记录该目标文件是已经进行了数字签名的文件,便于后续对该目标文件的数字签名进行验证。After the digital signature, message digest value and public key are stored in the blockchain distributed ledger, the signature mark can also be written in the target file. In this way, it is convenient to record that the target file is a file that has been digitally signed, so as to facilitate subsequent verification of the digital signature of the target file.

相应于上述方法实施例,本发明实施例还提供了一种可读存储介质,可读存储介质内存储有计算机程序,计算机程序被处理器执行时实现上述任一项文件签名方法的方法步骤。Corresponding to the above method embodiments, embodiments of the present invention further provide a readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the method steps of any of the above file signature methods are implemented.

本发明实施例提供的可读存储介质中存储的计算机程序被电子设备的处理器执行后,电子设备可以确定待进行数字签名的目标文件,并可以根据预设的信息摘要算法计算得到该目标文件的信息摘要值。然后,可以获得要对该目标文件进行数字签名的签名者的私钥和公钥。之后,利用该私钥对信息摘要值进行加密计算,得到该签名者的数字签名。在得到数字签名后,将该数字签名、信息摘要值和公钥对应存储至区块链分布式账本中。这样,可以将数字签名存储至区块链分布式账本中。其中,由于区块链分布式账本是集体维护的分布式数据库,并具有去中心化和信息不可篡改性等特点。因而,可以避免现有技术中将数字签名写在目标文件尾部所造成的数字签名容易被篡改的情况发生,确保了该数字签名的有效性。另外,将该数字签名、信息摘要值和公钥对应存储至区块链分布式账本中,可以便于后续利用该信息摘要值和公钥对该数字签名进行验证。After the computer program stored in the readable storage medium provided by the embodiment of the present invention is executed by the processor of the electronic device, the electronic device can determine the target file to be digitally signed, and can calculate and obtain the target file according to a preset information digest algorithm The message digest value of . Then, the private key and public key of the signer to digitally sign the target file can be obtained. After that, use the private key to encrypt and calculate the message digest value to obtain the digital signature of the signer. After the digital signature is obtained, the digital signature, the message digest value and the public key are correspondingly stored in the blockchain distributed ledger. In this way, digital signatures can be stored in the blockchain distributed ledger. Among them, the blockchain distributed ledger is a distributed database maintained collectively, and has the characteristics of decentralization and information immutability. Therefore, the situation in which the digital signature is easily tampered due to writing the digital signature at the tail of the target file in the prior art can be avoided, and the validity of the digital signature is ensured. In addition, the digital signature, the information digest value and the public key are correspondingly stored in the blockchain distributed ledger, which can facilitate the subsequent verification of the digital signature by using the information digest value and the public key.

在将该数字签名、信息摘要值和公钥对应存储至区块链分布式账本中之后,还可以在目标文件中写入签名标记。这样,可以方便记录该目标文件是已经进行了数字签名的文件,便于后续对该目标文件的数字签名进行验证。After the digital signature, message digest value and public key are stored in the blockchain distributed ledger, the signature mark can also be written in the target file. In this way, it is convenient to record that the target file is a file that has been digitally signed, so as to facilitate subsequent verification of the digital signature of the target file.

相应于上述方法实施例,本发明实施例还提供了一种包含指令的计算机程序产品,当其在电子设备上运行时,使得电子设备执行:上述任一项文件签名方法的方法步骤。Corresponding to the above method embodiments, the embodiments of the present invention also provide a computer program product containing instructions, which, when running on an electronic device, cause the electronic device to execute: any of the above method steps of the file signature method.

本发明实施例提供的包含指令的计算机程序产品,当其在电子设备上运行时,使得电子设备可以确定待进行数字签名的目标文件,并可以根据预设的信息摘要算法计算得到该目标文件的信息摘要值。然后,可以获得要对该目标文件进行数字签名的签名者的私钥和公钥。之后,利用该私钥对信息摘要值进行加密计算,得到该签名者的数字签名。在得到数字签名后,将该数字签名、信息摘要值和公钥对应存储至区块链分布式账本中。这样,可以将数字签名存储至区块链分布式账本中。其中,由于区块链分布式账本是集体维护的分布式数据库,并具有去中心化和信息不可篡改性等特点。因而,可以避免现有技术中将数字签名写在目标文件尾部所造成的数字签名容易被篡改的情况发生,确保了该数字签名的有效性。另外,将该数字签名、信息摘要值和公钥对应存储至区块链分布式账本中,可以便于后续利用该信息摘要值和公钥对该数字签名进行验证。When the computer program product containing the instruction provided by the embodiment of the present invention is run on the electronic device, the electronic device can determine the target file to be digitally signed, and can calculate and obtain the target file according to the preset information digest algorithm. Information digest value. Then, the private key and public key of the signer to digitally sign the target file can be obtained. After that, use the private key to encrypt and calculate the message digest value to obtain the digital signature of the signer. After the digital signature is obtained, the digital signature, the message digest value and the public key are correspondingly stored in the blockchain distributed ledger. In this way, digital signatures can be stored in the blockchain distributed ledger. Among them, the blockchain distributed ledger is a distributed database maintained collectively, and has the characteristics of decentralization and information immutability. Therefore, the situation in which the digital signature is easily tampered due to writing the digital signature at the tail of the target file in the prior art can be avoided, and the validity of the digital signature is ensured. In addition, the digital signature, the information digest value and the public key are correspondingly stored in the blockchain distributed ledger, which can facilitate the subsequent verification of the digital signature by using the information digest value and the public key.

在将该数字签名、信息摘要值和公钥对应存储至区块链分布式账本中之后,还可以在目标文件中写入签名标记。这样,可以方便记录该目标文件是已经进行了数字签名的文件,便于后续对该目标文件的数字签名进行验证。After the digital signature, message digest value and public key are stored in the blockchain distributed ledger, the signature mark can also be written in the target file. In this way, it is convenient to record that the target file is a file that has been digitally signed, so as to facilitate subsequent verification of the digital signature of the target file.

上述电子设备提到的通信总线可以是外设部件互连标准(Peripheral ComponentInterconnect,PCI)总线或扩展工业标准结构(Extended Industry StandardArchitecture,EISA)总线等。该通信总线可以分为地址总线、数据总线、控制总线等。为便于表示,图中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The communication bus mentioned in the above electronic device may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus or an Extended Industry Standard Architecture (Extended Industry Standard Architecture, EISA) bus or the like. The communication bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of presentation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

通信接口用于上述电子设备与其他设备之间的通信。The communication interface is used for communication between the above electronic device and other devices.

存储器可以包括随机存取存储器(Random Access Memory,RAM),也可以包括非易失性存储器(Non-Volatile Memory,NVM),例如至少一个磁盘存储器。可选的,存储器还可以是至少一个位于远离前述处理器的存储装置。上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(Digital Signal Processing,DSP)、专用集成电路(ApplicationSpecific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable GateArray,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。The memory may include random access memory (Random Access Memory, RAM), and may also include non-volatile memory (Non-Volatile Memory, NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor. The above-mentioned processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; it may also be a digital signal processor (Digital Signal Processing, DSP), dedicated integrated Circuit (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that, in this document, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any relationship between these entities or operations. any such actual relationship or sequence exists. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device that includes a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.

本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置、电子设备、可读存储介质和包含指令的计算机程序产品实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a related manner, and the same and similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the embodiments of the apparatus, electronic equipment, readable storage medium and computer program product containing instructions, since they are basically similar to the method embodiments, the description is relatively simple. Can.

以上所述仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本发明的保护范围内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims (14)

1.一种文件签名方法,其特征在于,所述方法包括:1. a file signature method, is characterized in that, described method comprises: 确定待进行数字签名的目标文件,并根据预设的信息摘要算法计算所述目标文件的信息摘要值;Determine the target file to be digitally signed, and calculate the information digest value of the target file according to a preset information digest algorithm; 获得要对所述目标文件进行数字签名的签名者的私钥和公钥;obtain the private key and public key of the signer who is to digitally sign the target file; 利用所述私钥对所述信息摘要值进行加密计算,得到所述签名者的数字签名;The information digest value is encrypted and calculated by using the private key to obtain the digital signature of the signer; 将所述签名者的数字签名、所述信息摘要值和所述公钥对应存储至区块链分布式账本中;correspondingly store the signer's digital signature, the message digest value and the public key in the blockchain distributed ledger; 在所述目标文件中写入签名标记,所述签名标记用于标记已对所述目标文件进行数字签名。A signature mark is written in the target file, and the signature mark is used to mark that the target file has been digitally signed. 2.根据权利要求1所述的方法,其特征在于,所述获得要对所述目标文件进行数字签名的签名者的私钥和公钥的步骤,包括:2. The method according to claim 1, wherein the step of obtaining the private key and the public key of the signer who will digitally sign the target file comprises: 从区块链私钥公钥对存储软件中,加载要对所述目标文件进行数字签名的签名者的私钥加密文件和公钥;Load the private key encrypted file and the public key of the signer who will digitally sign the target file from the blockchain private key and public key pair storage software; 利用用户输入的私钥解密密钥对所述私钥加密文件进行解密,得到所述公钥对应的私钥。The private key encrypted file is decrypted using the private key decryption key input by the user to obtain the private key corresponding to the public key. 3.根据权利要求1所述的方法,其特征在于,所述获得要对所述目标文件进行数字签名的签名者的私钥和公钥的步骤,包括:3. The method according to claim 1, wherein the step of obtaining the private key and the public key of the signer who will digitally sign the target file comprises: 调用区块链私钥公钥对生成软件,生成要对所述目标文件进行数字签名的签名者的私钥和公钥。Call the blockchain private key and public key pair generation software to generate the private key and public key of the signer who will digitally sign the target file. 4.根据权利要求3所述的方法,其特征在于,在所述调用区块链私钥公钥对生成软件,生成要对所述目标文件进行数字签名的签名者的私钥和公钥的步骤之后,所述方法还包括:4. The method according to claim 3, characterized in that, in said calling the block chain private key and public key pair generation software, generating the private key and public key of the signer who will digitally sign the target file. After the step, the method further includes: 获得所述签名者的身份标识;obtain the identity of the signer; 将所述身份标识和所述公钥对应存储至所述区块链分布式账本中。The identity identifier and the public key are correspondingly stored in the blockchain distributed ledger. 5.根据权利要求1所述的方法,其特征在于,所述签名标记中包括所述信息摘要值。5. The method of claim 1, wherein the signature tag includes the message digest value. 6.根据权利要求5所述的方法,其特征在于,所述签名标记中还包括:6. The method according to claim 5, wherein the signature mark further comprises: 所述公钥、所述签名者的数字签名的签名时间和所述签名者的身份标识中的至少一项。At least one of the public key, the signature time of the signer's digital signature, and the signer's identity. 7.一种文件签名装置,其特征在于,所述装置包括:7. A file signature device, wherein the device comprises: 确定模块,用于确定待进行数字签名的目标文件,并根据预设的信息摘要算法计算所述目标文件的信息摘要值;a determination module, configured to determine the target file to be digitally signed, and calculate the information digest value of the target file according to a preset information digest algorithm; 第一获得模块,用于获得要对所述目标文件进行数字签名的签名者的私钥和公钥;The first obtaining module is used to obtain the private key and public key of the signer who is to digitally sign the target file; 计算模块,用于利用所述私钥对所述信息摘要值进行加密计算,得到所述签名者的数字签名;a calculation module, configured to encrypt and calculate the information digest value by using the private key to obtain the digital signature of the signer; 第一存储模块,用于将所述签名者的数字签名、所述信息摘要值和所述公钥对应存储至区块链分布式账本中;a first storage module, configured to store the signer's digital signature, the message digest value and the public key correspondingly in the blockchain distributed ledger; 标记模块,用于在所述目标文件中写入签名标记,所述签名标记用于标记已对所述目标文件进行数字签名。A marking module, configured to write a signature mark in the target file, where the signature mark is used to mark that the target file has been digitally signed. 8.根据权利要求7所述的装置,其特征在于,所述第一获得模块包括:8. The apparatus according to claim 7, wherein the first obtaining module comprises: 加载子模块,用于从区块链私钥公钥对存储软件中,加载要对所述目标文件进行数字签名的签名者的私钥加密文件和公钥;The loading submodule is used to load the private key encrypted file and the public key of the signer who will digitally sign the target file from the blockchain private key and public key pair storage software; 解密子模块,用于利用用户输入的私钥解密密钥对所述私钥加密文件进行解密,得到所述公钥对应的私钥。The decryption submodule is used for decrypting the private key encrypted file by using the private key decryption key input by the user to obtain the private key corresponding to the public key. 9.根据权利要求7所述的装置,其特征在于,所述第一获得模块包括:9. The apparatus according to claim 7, wherein the first obtaining module comprises: 调用子模块,用于调用区块链私钥公钥对生成软件,生成要对所述目标文件进行数字签名的签名者的私钥和公钥。The calling submodule is used for calling the blockchain private key and public key pair generation software to generate the private key and public key of the signer who will digitally sign the target file. 10.根据权利要求9所述的装置,其特征在于,所述装置还包括:10. The apparatus of claim 9, wherein the apparatus further comprises: 第二获得模块,用于在调用区块链私钥公钥对生成软件,生成要对所述目标文件进行数字签名的签名者的私钥和公钥之后,获得所述签名者的身份标识;The second obtaining module is used to obtain the identity of the signer after invoking the blockchain private key and public key pair generation software to generate the private key and public key of the signer who will digitally sign the target file; 第二存储模块,用于将所述身份标识和所述公钥对应存储至所述区块链分布式账本中。The second storage module is configured to store the identity identifier and the public key in the distributed ledger of the blockchain. 11.根据权利要求7所述的装置,其特征在于,所述签名标记中包括所述信息摘要值。11. The apparatus of claim 7, wherein the signature tag includes the message digest value. 12.根据权利要求11所述的装置,其特征在于,所述签名标记中还包括:12. The device according to claim 11, wherein the signature mark further comprises: 所述公钥、所述签名者的数字签名的签名时间和所述签名者的身份标识中的至少一项。At least one of the public key, the signature time of the signer's digital signature, and the signer's identity. 13.一种电子设备,其特征在于,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;13. An electronic device, characterized in that it comprises a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; 存储器,用于存放计算机程序;memory for storing computer programs; 处理器,用于执行存储器上所存放的程序时,实现权利要求1-6中任一所述的方法步骤。The processor is configured to implement the method steps described in any one of claims 1-6 when executing the program stored in the memory. 14.一种可读存储介质,其特征在于,所述可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1-6中任一所述的方法步骤。14. A readable storage medium, wherein a computer program is stored in the readable storage medium, and when the computer program is executed by a processor, the method steps of any one of claims 1-6 are implemented.
CN201810922974.3A 2018-08-14 2018-08-14 File signature method and device, electronic equipment and readable storage medium Pending CN110830256A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810922974.3A CN110830256A (en) 2018-08-14 2018-08-14 File signature method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810922974.3A CN110830256A (en) 2018-08-14 2018-08-14 File signature method and device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN110830256A true CN110830256A (en) 2020-02-21

Family

ID=69547227

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810922974.3A Pending CN110830256A (en) 2018-08-14 2018-08-14 File signature method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN110830256A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111709727A (en) * 2020-05-18 2020-09-25 杜晓楠 Method and computer-readable storage medium for preserving multiple signatures in a blockchain wallet
CN112507391A (en) * 2020-12-01 2021-03-16 杭州企达信息技术有限公司 Block chain-based electronic signature method, system, device and readable storage medium
CN112507328A (en) * 2021-01-29 2021-03-16 统信软件技术有限公司 File signature method, computing device and storage medium
CN113342374A (en) * 2021-06-15 2021-09-03 东莞新能安科技有限公司 Battery management system upgrading method and electronic device
CN113821561A (en) * 2020-06-19 2021-12-21 斯沃奇集团研究及开发有限公司 Method for tracking digital information elements in a computer system
CN114268447A (en) * 2020-09-16 2022-04-01 京东科技信息技术有限公司 File transmission method and device, electronic equipment and computer readable medium
CN115695942A (en) * 2022-09-27 2023-02-03 苏州科达科技股份有限公司 Video distribution method, device, electronic device and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160330027A1 (en) * 2015-05-05 2016-11-10 ShoCard, Inc. Identity Management Service Using A Blockchain Providing Certifying Transactions Between Devices
CN106485168A (en) * 2016-10-17 2017-03-08 成都知道创宇信息技术有限公司 A kind of method whether being modified using MD5 value checking contract documents
CN107070644A (en) * 2016-12-26 2017-08-18 北京科技大学 A kind of decentralization public key management method and management system based on trust network
CN107086920A (en) * 2017-06-20 2017-08-22 无锡井通网络科技有限公司 Copyright based on block chain really weighs method
CN107171794A (en) * 2017-06-27 2017-09-15 葛峰 A kind of electronic document based on block chain and intelligent contract signs method
CN107426170A (en) * 2017-05-24 2017-12-01 阿里巴巴集团控股有限公司 A kind of data processing method and equipment based on block chain
CN107657553A (en) * 2017-09-21 2018-02-02 浙江惠码科技有限公司 A kind of electronic contract generation method based on alliance's chain, information anti-fake method of tracing to the source
CN107832624A (en) * 2017-10-25 2018-03-23 济南浪潮高新科技投资发展有限公司 A kind of visualization signature system and method based on block chain

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160330027A1 (en) * 2015-05-05 2016-11-10 ShoCard, Inc. Identity Management Service Using A Blockchain Providing Certifying Transactions Between Devices
CN106485168A (en) * 2016-10-17 2017-03-08 成都知道创宇信息技术有限公司 A kind of method whether being modified using MD5 value checking contract documents
CN107070644A (en) * 2016-12-26 2017-08-18 北京科技大学 A kind of decentralization public key management method and management system based on trust network
CN107426170A (en) * 2017-05-24 2017-12-01 阿里巴巴集团控股有限公司 A kind of data processing method and equipment based on block chain
CN107086920A (en) * 2017-06-20 2017-08-22 无锡井通网络科技有限公司 Copyright based on block chain really weighs method
CN107171794A (en) * 2017-06-27 2017-09-15 葛峰 A kind of electronic document based on block chain and intelligent contract signs method
CN107657553A (en) * 2017-09-21 2018-02-02 浙江惠码科技有限公司 A kind of electronic contract generation method based on alliance's chain, information anti-fake method of tracing to the source
CN107832624A (en) * 2017-10-25 2018-03-23 济南浪潮高新科技投资发展有限公司 A kind of visualization signature system and method based on block chain

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111709727A (en) * 2020-05-18 2020-09-25 杜晓楠 Method and computer-readable storage medium for preserving multiple signatures in a blockchain wallet
CN113821561A (en) * 2020-06-19 2021-12-21 斯沃奇集团研究及开发有限公司 Method for tracking digital information elements in a computer system
CN114268447A (en) * 2020-09-16 2022-04-01 京东科技信息技术有限公司 File transmission method and device, electronic equipment and computer readable medium
CN114268447B (en) * 2020-09-16 2023-04-07 京东科技信息技术有限公司 File transmission method and device, electronic equipment and computer readable medium
CN112507391A (en) * 2020-12-01 2021-03-16 杭州企达信息技术有限公司 Block chain-based electronic signature method, system, device and readable storage medium
CN112507391B (en) * 2020-12-01 2024-01-30 杭州企达信息技术有限公司 Block chain-based electronic signature method, system, device and readable storage medium
CN112507328A (en) * 2021-01-29 2021-03-16 统信软件技术有限公司 File signature method, computing device and storage medium
CN112507328B (en) * 2021-01-29 2021-06-08 统信软件技术有限公司 File signature method, computing device and storage medium
CN113342374A (en) * 2021-06-15 2021-09-03 东莞新能安科技有限公司 Battery management system upgrading method and electronic device
CN115695942A (en) * 2022-09-27 2023-02-03 苏州科达科技股份有限公司 Video distribution method, device, electronic device and storage medium

Similar Documents

Publication Publication Date Title
CN110826092A (en) A file signature processing system
CN110826091B (en) A file signature method, device, electronic device and readable storage medium
CN112507328B (en) File signature method, computing device and storage medium
CN110830256A (en) File signature method and device, electronic equipment and readable storage medium
CN110830257B (en) File signature method and device, electronic equipment and readable storage medium
JP5196883B2 (en) Information security apparatus and information security system
CN110826107B (en) File signature method and device, electronic equipment and readable storage medium
US20130132733A1 (en) System And Method For Digital Rights Management With System Individualization
CN103765429B (en) Platform Secrets Related to Digital Signature Authority
US11943339B2 (en) Information processing apparatus, information processing method, and program
WO2020143318A1 (en) Data verification method and terminal device
GB2520056A (en) Digital data retention management
CN108229144B (en) Verification method of application program, terminal equipment and storage medium
CN113658005B (en) Method for executing transaction in blockchain and blockchain system
CN107563176A (en) Login authentication method and system based on USB flash disk, readable storage medium and computer
CN111311341A (en) Bill processing method, equipment and medium
CN114637808A (en) Method and system for archive privacy protection and encryption storage based on blockchain technology
CN110008719B (en) File processing method and device, and file detection method and device
CN111625871A (en) Method, system and device for ensuring integrity of virtual machine mirror image
WO2022057545A1 (en) File transfer method and apparatus, electronic device and computer-readable medium
CN110826034B (en) File signature method and device, electronic equipment and readable storage medium
CN115514492A (en) BIOS firmware verification method, device, server, storage medium and program product
US8756433B2 (en) Associating policy with unencrypted digital content
CN109391689A (en) A kind of method and device that micro services application programming interface is called
WO2016172986A1 (en) Data authentication method, device and system, and computer 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200221

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载