CN109992994A - A method and system for personnel file management based on blockchain - Google Patents
A method and system for personnel file management based on blockchain Download PDFInfo
- Publication number
- CN109992994A CN109992994A CN201910161123.6A CN201910161123A CN109992994A CN 109992994 A CN109992994 A CN 109992994A CN 201910161123 A CN201910161123 A CN 201910161123A CN 109992994 A CN109992994 A CN 109992994A
- Authority
- CN
- China
- Prior art keywords
- information
- user
- file
- hash value
- archive information
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/62—Protecting access to data via a platform, e.g. using keys or access control rules
- G06F21/6218—Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Bioethics (AREA)
- General Health & Medical Sciences (AREA)
- Computer Hardware Design (AREA)
- Health & Medical Sciences (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Storage Device Security (AREA)
Abstract
本发明公开了一种基于区块链的人事档案管理方法及系统,包括以下步骤:采用哈希加密算法将用户的档案加密生成档案的Hash值,并摘取与所述Hash值对应的内容信息;创建档案信息,并通过所述用户的公钥对所述档案信息加密,将所述档案信息的密文存入区块链,所述档案信息包括:所述Hash值、所述内容信息、所述用户的交易地址。本发明通过引入区块链技术管理人事档案,形成一个分布的、受监督的可追溯认证的档案网络系统,有助于提高档案的安全性、便利性和可信度。
The invention discloses a blockchain-based personnel file management method and system, comprising the following steps: encrypting a user's file with a hash encryption algorithm to generate a Hash value of the file, and extracting content information corresponding to the Hash value ; Create archive information, encrypt the archive information through the user's public key, and store the ciphertext of the archive information into the blockchain, the archive information includes: the Hash value, the content information, The transaction address of the user. The present invention manages personnel files by introducing blockchain technology to form a distributed, supervised, traceable and authenticated file network system, which helps to improve the security, convenience and credibility of files.
Description
技术领域technical field
本发明涉及信息技术领域,特别涉及一种基于区块链的人事档案管理方法及系统。The invention relates to the field of information technology, in particular to a method and system for managing personnel files based on blockchain.
背景技术Background technique
人事档案是我国人事管理制度的一项重要特色,它是个人身份、学历、资历等方面的证据,是记载人生轨迹的重要依据。现行的人事档案采取“档随人走”的管理方法,档案的保存采取电子和纸质并存的双轨制方法,一旦遇到不可预料事件,如自然灾害等突发情况,档案的安全难以保障,从而致使人事档案可信度下降,以至于造成社会不公不正的现象时有发生。所以需要一种管理体系,记录人事档案变动的全过程,并且可追溯可认证人事档案的真实性。Personnel files are an important feature of my country's personnel management system. They are evidence of personal identity, education, qualifications, etc., and an important basis for recording the trajectory of life. The current personnel file management method adopts the management method of "files follow people", and the preservation of files adopts the dual-track method of coexistence of electronic and paper materials. As a result, the credibility of personnel files has declined, so that social injustice and injustice have occurred from time to time. Therefore, a management system is needed to record the entire process of personnel file changes, and to trace and certify the authenticity of personnel files.
发明内容SUMMARY OF THE INVENTION
为了解决现有技术的问题,本发明实施例提供了一种基于区块链的人事档案管理方法及系统。所述技术方案如下:In order to solve the problems in the prior art, the embodiments of the present invention provide a method and system for managing personnel files based on a blockchain. The technical solution is as follows:
一方面,提供了一种基于区块链的人事档案管理方法,所述方法包括以下步骤:In one aspect, a blockchain-based personnel file management method is provided, the method comprising the following steps:
采用哈希加密算法将用户的档案加密生成档案的Hash值,并摘取与所述Hash值对应的内容信息;Adopt a hash encryption algorithm to encrypt the user's file to generate the Hash value of the file, and extract the content information corresponding to the Hash value;
创建档案信息,并通过所述用户的公钥对所述档案信息加密,将所述档案信息的密文存入区块链,所述档案信息包括:所述Hash值、所述内容信息、所述用户的交易地址。Create archive information, encrypt the archive information with the user's public key, and store the ciphertext of the archive information in the blockchain, where the archive information includes: the Hash value, the content information, the the user's transaction address.
可选的,所述方法还包括:Optionally, the method further includes:
通过所述交易地址查找所述用户的所有档案信息,并获取所述所有档案信息中最后一个档案信息;Search all profile information of the user through the transaction address, and obtain the last profile information of all the profile information;
通过所述用户的私钥将所述最后一个档案信息解密,获取所述最后一个档案信息的Hash值;Decrypt the last archive information through the user's private key to obtain the Hash value of the last archive information;
将新增档案材料和所述最后一个档案信息中的Hash值的副本采用哈希加密算法加密生成新Hash值,同时摘取与所述新Hash值对应的新内容信息;The copy of the Hash value in the newly added archive material and the last archive information is encrypted with a hash encryption algorithm to generate a new Hash value, and new content information corresponding to the new Hash value is extracted simultaneously;
创建新档案信息,通过所述用户的公钥对所述新档案信息加密,将所述新档案信息的密文存入区块链,所述新档案信息包括:所述新Hash值、所述新内容信息、所述用户的交易地址。Create new profile information, encrypt the new profile information with the user's public key, and store the ciphertext of the new profile information in the blockchain, where the new profile information includes: the new Hash value, the New content information, the user's transaction address.
可选的,所述方法还包括:Optionally, the method further includes:
接收档案查询请求后,通过所述用户的交易地址查询所述用户所有的档案信息。After receiving the file query request, query all the file information of the user through the user's transaction address.
可选的,所述方法还包括:Optionally, the method further includes:
档案管理用户接收校验请求后,通过所述用户的私钥解密所述档案信息获取所述档案信息的明文,将所述档案信息的明文发送至认证管理方与真实档案文件对比。After receiving the verification request, the archive management user decrypts the archive information through the user's private key to obtain the plaintext of the archive information, and sends the plaintext of the archive information to the authentication manager for comparison with the real archive file.
可选的,所述用户的交易地址以及所述用户的公钥、私钥均根据所述用户的基本信息生成。Optionally, the user's transaction address and the user's public key and private key are generated according to the user's basic information.
另一方面,提供了一种基于区块链的人事档案管理系统,包括:On the other hand, a blockchain-based personnel file management system is provided, including:
哈希加密模块,用于将用户的档案加密生成档案的Hash值;The hash encryption module is used to encrypt the user's file to generate the hash value of the file;
内容信息获取模块,用于摘取与所述Hash值对应的内容信息;a content information acquisition module, used for extracting content information corresponding to the Hash value;
档案信息创建模块,用于创建档案信息并将加密后的档案信息存入区块链;The file information creation module is used to create file information and store the encrypted file information into the blockchain;
加密模块,用于通过所述用户的公钥对所述档案信息加密。The encryption module is used for encrypting the profile information through the user's public key.
可选的,所述系统还包括:Optionally, the system further includes:
档案信息查找模块,用于通过交易地址查找所述用户的所有档案信息;a file information search module, used to search all file information of the user through the transaction address;
解密模块,用于通过所述用户的私钥对加密后的档案信息解密;A decryption module for decrypting the encrypted archive information through the user's private key;
所述哈希加密模块,还用于加密新增档案材料和所述最后一个档案信息的Hash值,生成新Hash值;The hash encryption module is also used to encrypt the Hash value of the newly added archive material and the last archive information to generate a new Hash value;
所述内容信息获取模块,还用于摘取与所述新Hash值对应的新内容信息;The content information acquisition module is also used to extract new content information corresponding to the new Hash value;
所述档案信息创建模块,还用于创建新档案信息并将加密后的新档案信息存入区块链;The profile information creation module is also used to create new profile information and store the encrypted new profile information in the blockchain;
加密模块,用于通过所述用户的公钥对所述新档案信息加密。The encryption module is used for encrypting the new profile information through the user's public key.
可选的,所述系统还包括:Optionally, the system further includes:
接收模块,用于接收档案查询请求。The receiving module is used to receive the file query request.
可选的,所述接收模块,还用于接收校验请求;所述系统还发射模块,用于将所述档案信息的明文发送至认证管理方与真实档案文件对比。Optionally, the receiving module is further configured to receive a verification request; the system is further configured to transmit a module, configured to send the plaintext of the archive information to the authentication manager for comparison with the real archive file.
可选的,所述系统还包括:公私钥配置模块,用于根据所述用户的基本信息生成所述用户的交易地址以及所述用户的公钥、私钥。Optionally, the system further includes: a public and private key configuration module, configured to generate the user's transaction address and the user's public key and private key according to the user's basic information.
另一方面,提供了一种基于区块链的人事档案管理装置,包括:On the other hand, a blockchain-based personnel file management device is provided, including:
处理器,用于存储处理器可执行指令的存储器;a processor, a memory for storing processor-executable instructions;
其中,所述处理器被配置为:执行所述的基于区块链的人事档案管理方法。Wherein, the processor is configured to: execute the blockchain-based personnel file management method.
另一方面,提供了一种计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令被处理器执行时实现所述的基于区块链的人事档案管理方法。In another aspect, a computer-readable storage medium is provided, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the blockchain-based personnel file management method is implemented.
本发明实施例提供的技术方案带来的有益效果是:The beneficial effects brought by the technical solutions provided in the embodiments of the present invention are:
1、本发明引入区块链技术管理人事档案,形成一个分布的、受监督的可追溯认证的档案网络系统,有助于提高档案的安全性、便利性和可信度;1. The present invention introduces blockchain technology to manage personnel files to form a distributed, supervised, traceable and authenticated file network system, which helps to improve the security, convenience and credibility of files;
2、本发明进行档案更新时,仅需将新增档案材料和最后一个档案信息的Hash值生成新Hash值,便于快速更新档案、查找档案;2. When the present invention performs file update, it only needs to generate a new Hash value from the Hash value of the newly added file material and the last file information, which is convenient for quickly updating the file and searching for the file;
3、本发明中档案信息的加密和解密均需通过用户的公钥和私钥进行,使用户参与到其人事档案的管理过程中,做到了档案信息的管理的公开、透明、可监督;3. Encryption and decryption of archive information in the present invention all need to be carried out through the user's public key and private key, so that the user can participate in the management process of his personnel archives, so that the management of archive information is open, transparent and supervised;
4、本发明还包括档案信息的验证过程,将档案信息的明文发送至认证管理方与真实档案文件对比,有利于确保档案的真实、准确和完整。4. The present invention also includes the verification process of the archives information. The plaintext of the archives information is sent to the authentication management party for comparison with the real archives, which is beneficial to ensure the authenticity, accuracy and integrity of the archives.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings used in the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative effort.
图1是本发明实施例1提供的一种基于区块链人事档案管理方法的流程图;Fig. 1 is a flowchart of a method for managing personnel files based on blockchain provided in Embodiment 1 of the present invention;
图2是本发明实施例1提供的一种基于区块链人事档案更新方法的流程图;2 is a flowchart of a method for updating personnel files based on blockchain provided in Embodiment 1 of the present invention;
图3是本发明实施例1提供的一种基于区块链人事档案查询认证方法的流程图;3 is a flowchart of a blockchain-based personnel file query and authentication method provided in Embodiment 1 of the present invention;
图4是本发明实施例1提供的一种基于区块链人事档案管理系统的模块结构图;4 is a block diagram of a block chain-based personnel file management system provided in Embodiment 1 of the present invention;
图5是本发明实施例2提供的一种基于区块链人事档案管理方法的交互图。FIG. 5 is an interaction diagram of a blockchain-based personnel file management method provided in Embodiment 2 of the present invention.
具体实施方式Detailed ways
为使本发明的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the objectives, technical solutions and advantages of the present invention clearer, 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 Some, but not all, embodiments of the present invention. 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 the existing personnel file management technology, the dual-track file storage method in which paper files and electronic files coexist is usually adopted, and there are potential security risks in file management. For paper files, there is a risk of loss and damage, and for electronic files, there are hidden dangers of virus intrusion and human tampering. Therefore, the embodiments of the present invention introduce blockchain technology to manage personnel files, and utilize the advantages of decentralization and non-tampering in the blockchain to make the personnel file management process open, transparent, supervised, and more secure.
实施例1Example 1
如图1所示,一种基于区块链的人事档案管理方法,主要包括以下步骤:As shown in Figure 1, a blockchain-based personnel file management method mainly includes the following steps:
S11、采用哈希加密算法将用户的档案加密生成档案的Hash值,并摘取与所述Hash值对应的内容信息;S11, adopt the hash encryption algorithm to encrypt the user's file to generate the Hash value of the file, and extract the content information corresponding to the Hash value;
S12、创建档案信息,并通过所述用户的公钥对所述档案信息加密,将所述档案信息的密文存入区块链,所述档案信息包括:所述Hash值、所述内容信息、所述用户的交易地址。S12. Create file information, encrypt the file information with the user's public key, and store the ciphertext of the file information in the blockchain, where the file information includes: the Hash value, the content information , the transaction address of the user.
上述方法包括档案Hash值的生成以及档案信息的建立两个过程,其中,生成Hash值是为了保证人事档案的安全性,确保人事档案不能人为地被改动。创建档案信息是为了将人事档案打包存入区块链,使人事档案得到系统管理。The above method includes two processes: the generation of the file Hash value and the establishment of the file information. The purpose of generating the Hash value is to ensure the security of the personnel file and ensure that the personnel file cannot be altered artificially. The purpose of creating file information is to package the personnel files and store them in the blockchain, so that the personnel files can be managed systematically.
需要说明的是,上述方法步骤中,所述档案包括:用户的人事档案信息以及人事档案创建时间。生成Hash值的档案优选为档案副本文件,所述内容信息为所述档案的摘要,包括:用户姓名、身份证号码、人事档案创建时间等内容。在创建档案信息的过程中,用户的公钥根据用户基本信息生成,每个用户均配置有唯一的公私钥对,用来对档案信息进行加密和解密,基本信息包括用户姓名、身份证号码。用户的交易地址可以为诸如用户账号等用来识别用户身份的唯一参数。档案信息还包括提供档案生成方的人员信息。It should be noted that, in the above method steps, the file includes: the user's personnel file information and the creation time of the personnel file. The file for generating the Hash value is preferably a file copy file, and the content information is a summary of the file, including: user name, ID number, creation time of the personnel file, and the like. In the process of creating file information, the user's public key is generated according to the user's basic information. Each user is configured with a unique public-private key pair, which is used to encrypt and decrypt the file information. The basic information includes the user's name and ID number. The user's transaction address can be the only parameter used to identify the user, such as the user account. The file information also includes the information of the person who provided the file generator.
如图2所示,作为一种可能实现的情况,本实施例公开的方法还包括基于区块链的人事档案的更新方法,包括:As shown in Figure 2, as a possible implementation, the method disclosed in this embodiment further includes a blockchain-based update method for personnel files, including:
S21、通过交易地址查找所述用户的所有档案信息,并获取所述所有档案信息中最后一个档案信息;S21, searching for all profile information of the user through the transaction address, and obtaining the last profile information in all the profile information;
S22、通过所述用户的私钥将所述最后一个档案信息解密,获取所述最后一个档案信息的Hash值;S22, decrypt the last archive information by the private key of the user, and obtain the Hash value of the last archive information;
S23、将新增档案材料和所述最后一个档案信息的Hash值的副本采用哈希加密算法加密生成新Hash值,同时摘取与所述新Hash值对应的新内容信息;S23, adopting the hash encryption algorithm to encrypt the copy of the Hash value of the newly added archive material and the last archive information to generate a new Hash value, and extract the new content information corresponding to the new Hash value simultaneously;
S24、创建新档案信息,通过所述用户的公钥对所述新档案信息加密,将所述新档案信息的密文存入区块链,所述新档案信息包括:所述新Hash值、所述新内容信息、所述用户的交易地址。S24. Create new file information, encrypt the new file information with the user's public key, and store the ciphertext of the new file information in the blockchain, where the new file information includes: the new Hash value, The new content information, the user's transaction address.
上述更新档案的方法中,由于档案以Hash值的形式保存至区块链中,因此在更新时需要将新增档案材料与最新的档案信息中的Hash值采用哈希加密算法加密生成新Hash值,这样既保证了档案材料的连续性,又对新增档案进行了加密保证了档案的安全性。生成新Hash值使用的新增档案材料优选为新增档案材料的副本。新档案信息还包括提供档案生成方的更新档案的人员信息。In the above method of updating the file, since the file is stored in the blockchain in the form of a hash value, it is necessary to encrypt the hash value in the new file material and the latest file information with a hash encryption algorithm to generate a new hash value when updating. , which not only ensures the continuity of the archives, but also encrypts the newly added archives to ensure the security of the archives. The newly added archive material used to generate the new Hash value is preferably a copy of the newly added archive material. The new profile information also includes the information of the person who provided the update profile of the profile generator.
下面举例说明档案的更新过程,首次生成用户的档案信息为“A”,“A”中包含档案的Hash值“a”、内容信息、交易地址。需要新增的档案资料为“w”,更新时将A解密得到Hash值“a”,然后将“a”的副本、“w”加密成新Hash值“b”,摘取与“b”相对应的新内容信息“x”,然后将“b”、“x”以及交易地址打包生成新档案信息“B”并将“B”加密上链,这样区块链上即包括档案信息“A”和档案信息“B”,其中“B”包括的档案信息最完整。此后的更新过程依次类推,随着更新的次数增多区块链上所包含的档案信息也就越多。The following is an example to illustrate the update process of the file. The file information of the first generated user is "A", and "A" contains the file's Hash value "a", content information, and transaction address. The file data that needs to be added is "w". When updating, decrypt A to get the Hash value "a", then encrypt the copy of "a" and "w" into a new Hash value "b", and extract the corresponding value "b". Corresponding new content information "x", then package "b", "x" and transaction address to generate new file information "B" and encrypt "B" on the chain, so that the file information "A" is included on the blockchain and file information "B", where "B" includes the most complete file information. The subsequent update process is analogous, and as the number of updates increases, the more file information contained on the blockchain will be.
作为一种可能实现的情况,本实施例公开的方法还包括档案的查询方法:As a possible implementation, the method disclosed in this embodiment also includes a method for querying archives:
S31、接收档案查询请求后,通过所述用户的交易地址查询所述用户所有的档案信息。S31. After receiving the file query request, query all the file information of the user through the user's transaction address.
如图3所示,在档案查询方法的基础上,作为一种可能实现的情况,本实施例公开的方法档案验证方法:As shown in FIG. 3 , on the basis of the file query method, as a possible implementation situation, the method disclosed in this embodiment is the file verification method:
S32、档案管理用户接收校验请求后,通过所述用户的私钥解密所述档案信息获取所述档案信息的明文,将所述档案信息的明文发送至认证管理方与真实档案文件对比。S32: After the file management user receives the verification request, decrypt the file information through the user's private key to obtain the plaintext of the file information, and send the plain text of the file information to the authentication manager for comparison with the real file.
档案验证是为了保证档案内容的真实性、完整性。其中,认证管理方为保管纸质人事档案的政府行政部门。File verification is to ensure the authenticity and integrity of file content. Among them, the certification management party is the government administrative department that keeps paper personnel files.
下面接前述举例进一步说明本实施例中档案查询和认证的过程。查询和认证档案时,仅需要查询区块链中最后一个档案信息即可,也就是说在上述区块链上即包括“A”又包括“B”的情况下,仅需找到“B”进行档案的查询和认证即可,因为“B”包含的档案信息最完整。The following is a further description of the process of file query and authentication in this embodiment following the foregoing examples. When querying and certifying files, you only need to query the last file information in the blockchain, that is to say, if the above blockchain includes both "A" and "B", you only need to find "B" to carry out The query and authentication of the file is enough, because "B" contains the most complete file information.
如图4所示,基于本实施例公开的上述人事档案的管理方法,本实施例还提供一种基于区块链的人事档案的管理系统,具体包括:As shown in FIG. 4 , based on the above-mentioned management method for personnel files disclosed in this embodiment, this embodiment also provides a management system for personnel files based on blockchain, which specifically includes:
哈希加密模块,用于将用户的档案加密生成档案的Hash值;The hash encryption module is used to encrypt the user's file to generate the hash value of the file;
内容信息获取模块,用于摘取与所述Hash值对应的内容信息;a content information acquisition module, used for extracting content information corresponding to the Hash value;
档案信息创建模块,用于创建档案信息并将加密后的档案信息存入区块链;The file information creation module is used to create file information and store the encrypted file information into the blockchain;
加密模块,用于通过所述用户的公钥对所述档案信息加密。The encryption module is used for encrypting the profile information through the user's public key.
作为一种可能的实现方式,所述系统还包括:As a possible implementation manner, the system further includes:
档案信息查找模块,用于通过交易地址查找所述用户的所有档案信息;a file information search module, used to search all file information of the user through the transaction address;
解密模块,用于通过所述用户的私钥对加密后的档案信息解密;A decryption module for decrypting the encrypted archive information through the user's private key;
所述哈希加密模块,还用于加密新增档案材料和所述最后一个档案信息中的Hash值的副本,生成新Hash值;The hash encryption module is also used to encrypt the copy of the Hash value in the newly added archive material and the last archive information to generate a new Hash value;
所述内容信息获取模块,还用于摘取与所述新Hash值对应的新内容信息;The content information acquisition module is also used to extract new content information corresponding to the new Hash value;
所述档案信息创建模块,还用于创建新档案信息并将加密后的新档案信息存入区块链;The profile information creation module is also used to create new profile information and store the encrypted new profile information in the blockchain;
加密模块,用于通过所述用户的公钥对所述新档案信息加密。The encryption module is used for encrypting the new profile information through the user's public key.
作为一种可能的实现方式,所述系统还包括:As a possible implementation manner, the system further includes:
接收模块,用于接收档案查询请求。The receiving module is used to receive the file query request.
作为一种可能的实现方式,所述接收模块,还用于接收校验请求;所述系统还包括发射模块,用于将所述档案信息的明文发送至认证管理方与真实档案文件对比。As a possible implementation manner, the receiving module is further configured to receive a verification request; the system further includes a transmitting module, configured to send the plaintext of the archive information to the authentication manager for comparison with the real archive file.
作为一种可能的实现方式,所述系统还包括:公私钥配置模块,用于根据所述用户的基本信息生成所述用户的交易地址以及所述用户的公钥、私钥。As a possible implementation manner, the system further includes: a public-private key configuration module, configured to generate the user's transaction address and the user's public key and private key according to the user's basic information.
另一方面,本发明实施例还提供了一种基于区块链的人事档案管理装置,包括:处理器,用于存储处理器可执行指令的存储器;其中,所述处理器被配置为:执行所述的基于区块链的人事档案管理方法。On the other hand, an embodiment of the present invention also provides a blockchain-based personnel file management device, including: a processor, a memory for storing instructions executable by the processor; wherein the processor is configured to: execute The blockchain-based personnel file management method.
另一方面,本发明实施例还提供了一种计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令被处理器执行时实现所述的基于区块链的人事档案管理方法。On the other hand, an embodiment of the present invention also provides a computer-readable storage medium on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the blockchain-based personnel file management method is implemented .
下面结合实际应用示例对本发明公开的方法和系统做进一步应用说明。The method and system disclosed in the present invention will be further described below with reference to practical application examples.
实施例2Example 2
如图5所示,本实施例中参与人事档案管理的共有四方,分别是:人事档案的所属者(即为:用户)、人事档案生成部门、人事档案管理部门(即为认证管理方)、查询认证的单位。其中,人事档案生成部门主要负责制作人事档案以及更新人事档案,人事档案管理部门主要负责管理人事档案,查询认证的单位主要是指有查询人事档案需求的单位。四方均通过人事档案管理系统完成交互和人事档案的管理。As shown in Figure 5, there are four parties involved in personnel file management in this embodiment, namely: the owner of the personnel file (that is, the user), the personnel file generating department, the personnel file management department (that is, the authentication manager), Query certified units. Among them, the personnel file generation department is mainly responsible for making personnel files and updating personnel files, the personnel file management department is mainly responsible for managing personnel files, and the units that query and authenticate mainly refer to the units that have the need to query personnel files. The four parties complete the interaction and management of personnel files through the personnel file management system.
用户注册人事档案管理系统时需要填写其基本信息,基本信息包括:用户姓名、身份证号码。人事档案管理系统的公私钥配置模块根据用户的基本信息生成用户唯一的公钥、私钥。Users need to fill in their basic information when registering in the personnel file management system. The basic information includes: user name, ID number. The public and private key configuration module of the personnel file management system generates the user's unique public key and private key according to the user's basic information.
人事档案生成部门从用户处获取用户的档案,并通过系统的哈希加密模块将档案的副本采用哈希算法生成档案的Hash值,通过内容信息获取模块在档案中摘取与Hash值对应的内容信息。人事档案生成部门将Hash值、内容信息以及用户的交易地址打包后生成档案信息,然后通过加密模块将档案信息加密,并将档案信息的密文存入区块链。The personnel file generation department obtains the user's file from the user, and uses the hash algorithm of the system's hash encryption module to generate the file's Hash value from the copy of the file, and extracts the content corresponding to the Hash value from the file through the content information acquisition module. information. The personnel file generation department packs the hash value, content information and the user's transaction address to generate the file information, then encrypts the file information through the encryption module, and stores the ciphertext of the file information into the blockchain.
当用户需要更新档案资料时,可将需要更新的档案资料发送给人事档案生成部门,人事档案生成部门通过档案信息查找模块查找到该用户的档案信息,并获取最后一个档案信息的Hash值,这里所述的最后一个档案信息为最新更新的档案信息。人事档案生成部门通过系统的解密模块利用用户的私钥将最后一个档案信息解密从而获取到最后一个档案信息的Hash值。人事档案生成部门将新增档案材料和最后一个档案信息中的Hash值的副本通过哈希加密模块加密生成新Hash值,并通过内容信息获取模块摘取新内容信息。然后利用加密模块通过公钥对新档案信息加密,将新档案信息的密文存入区块链。新档案信息包括:所述新HASH值、所述新内容信息、所述用户的交易地址。When the user needs to update the file information, he can send the file to be updated to the personnel file generation department. The personnel file generation department finds the user's file information through the file information search module, and obtains the Hash value of the last file information, here The last profile information is the latest updated profile information. The personnel file generation department uses the user's private key to decrypt the last file information through the decryption module of the system to obtain the Hash value of the last file information. The personnel file generation department encrypts the new Hash value by encrypting the copy of the Hash value in the new file material and the last file information through the hash encryption module, and extracts the new content information through the content information acquisition module. Then use the encryption module to encrypt the new file information through the public key, and store the ciphertext of the new file information into the blockchain. The new profile information includes: the new HASH value, the new content information, and the user's transaction address.
当查询认证的单位需要认证用户的档案时,查询认证的单位通过发射模块向人事档案管理部门发送认证请求,人事档案管理部门接受到认证请求后通过档案信息查找模块查找用户的档案信息并通过解密模块利用用户的私钥解密档案信息获取档案信息的明文。然后人事档案管理部门通过发射模块将档案信息的明文发送至人事档案管理部门,由人事档案管理部门负责将档案信息的明文与纸质的人事档案进行比对,将比对结果发送给查询认证的单位。When the inquiring and certifying unit needs to authenticate the user's file, the inquiring and certifying unit sends an authentication request to the personnel file management department through the launch module. After receiving the authentication request, the personnel file management department searches for the user's file information through the file information search module and decrypts it by decrypting it. The module uses the user's private key to decrypt the archive information to obtain the plaintext of the archive information. Then the personnel archives management department sends the plaintext of the archives information to the personnel archives management department through the transmitting module, and the personnel archives management department is responsible for comparing the plaintext of the archives information with the paper personnel archives, and sending the comparison results to the inquiry and certification unit.
通过上述方法可以看出,本发明公开的一种基于区块链的人事档案管理方法及系统具有以下优点:It can be seen from the above method that a blockchain-based personnel file management method and system disclosed in the present invention have the following advantages:
1、本发明引入区块链技术管理人事档案,形成一个分布的、受监督的可追溯认证的档案网络系统,有助于提高档案的安全性、便利性和可信度;1. The present invention introduces blockchain technology to manage personnel files to form a distributed, supervised, traceable and authenticated file network system, which helps to improve the security, convenience and credibility of files;
2、本发明进行档案更新时,仅需将新增档案材料和最后一个档案信息的Hash值生成新Hash值,便于快速更新档案、查找档案;2. When the present invention performs file update, it only needs to generate a new Hash value from the Hash value of the newly added file material and the last file information, which is convenient for quickly updating the file and searching for the file;
3、本发明中档案信息的加密和解密均需通过用户的公钥和私钥进行,使用户参与到其人事档案的管理过程中,做到了档案信息的管理的公开、透明、可监督;3. Encryption and decryption of archive information in the present invention all need to be carried out through the user's public key and private key, so that the user can participate in the management process of his personnel archives, so that the management of archive information is open, transparent and supervised;
4、本发明还包括档案信息的验证过程,将档案信息的明文发送至认证管理方与真实档案文件对比,有利于确保档案的真实、准确和完整。4. The present invention also includes the verification process of the archives information. The plaintext of the archives information is sent to the authentication management party for comparison with the real archives, which is beneficial to ensure the authenticity, accuracy and integrity of the archives.
上述所有可选技术方案,可以采用任意结合形成本发明的可选实施例,在此不再一一赘述。All the above-mentioned optional technical solutions can be combined arbitrarily to form optional embodiments of the present invention, which will not be repeated here.
以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the protection of the present invention. within the range.
Claims (12)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910161123.6A CN109992994A (en) | 2019-03-04 | 2019-03-04 | A method and system for personnel file management based on blockchain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910161123.6A CN109992994A (en) | 2019-03-04 | 2019-03-04 | A method and system for personnel file management based on blockchain |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109992994A true CN109992994A (en) | 2019-07-09 |
Family
ID=67130503
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910161123.6A Pending CN109992994A (en) | 2019-03-04 | 2019-03-04 | A method and system for personnel file management based on blockchain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109992994A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110543526A (en) * | 2019-10-31 | 2019-12-06 | 成都四方伟业软件股份有限公司 | A blockchain-based optimized storage method and system |
CN110543545A (en) * | 2019-09-05 | 2019-12-06 | 腾讯科技(深圳)有限公司 | File management method, device and storage medium based on block chain |
CN112242904A (en) * | 2020-11-19 | 2021-01-19 | 中国联合网络通信集团有限公司 | File information processing method and equipment |
CN113222342A (en) * | 2021-04-14 | 2021-08-06 | 河海大学 | Personnel file online tracing and tracking system and method |
CN113672953A (en) * | 2021-08-19 | 2021-11-19 | 安碳科技(深圳)有限公司 | Private chain file management system and method |
CN114726560A (en) * | 2020-12-22 | 2022-07-08 | 富泰华工业(深圳)有限公司 | Data protection method, computer device and readable storage medium |
US11580240B2 (en) | 2020-03-24 | 2023-02-14 | Kyndryl, Inc. | Protecting sensitive data |
CN115834072A (en) * | 2022-10-13 | 2023-03-21 | 湖南天河国云科技有限公司 | Personnel archive traceability management method based on block chain |
CN116522365A (en) * | 2023-06-25 | 2023-08-01 | 点米(北京)科技有限公司 | Personnel file management method and system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160021109A1 (en) * | 2007-01-22 | 2016-01-21 | Spyrus, Inc. | Method and device for file encryption |
CN107070874A (en) * | 2017-01-23 | 2017-08-18 | 济南浪潮高新科技投资发展有限公司 | System, encryption method and the device of broadcast communication, decryption method and device |
CN107947922A (en) * | 2017-11-29 | 2018-04-20 | 中国科学院合肥物质科学研究院 | A kind of digital archives management method and system based on block chain technology |
CN109255251A (en) * | 2018-10-31 | 2019-01-22 | 安徽中科智链信息科技有限公司 | File data based on block chain technology protects system and method |
-
2019
- 2019-03-04 CN CN201910161123.6A patent/CN109992994A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160021109A1 (en) * | 2007-01-22 | 2016-01-21 | Spyrus, Inc. | Method and device for file encryption |
CN107070874A (en) * | 2017-01-23 | 2017-08-18 | 济南浪潮高新科技投资发展有限公司 | System, encryption method and the device of broadcast communication, decryption method and device |
CN107947922A (en) * | 2017-11-29 | 2018-04-20 | 中国科学院合肥物质科学研究院 | A kind of digital archives management method and system based on block chain technology |
CN109255251A (en) * | 2018-10-31 | 2019-01-22 | 安徽中科智链信息科技有限公司 | File data based on block chain technology protects system and method |
Non-Patent Citations (2)
Title |
---|
冯博 等著: "《互联网金融》", 30 April 2018, 北京:经济日报出版社 * |
李亿豪: "《区块链+区块链重建新世界》", 30 September 2018, 北京:中国商业出版社 * |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110543545A (en) * | 2019-09-05 | 2019-12-06 | 腾讯科技(深圳)有限公司 | File management method, device and storage medium based on block chain |
CN110543545B (en) * | 2019-09-05 | 2024-07-19 | 腾讯科技(深圳)有限公司 | Blockchain-based archive management method, device and storage medium |
CN110543526A (en) * | 2019-10-31 | 2019-12-06 | 成都四方伟业软件股份有限公司 | A blockchain-based optimized storage method and system |
US12105823B2 (en) | 2020-03-24 | 2024-10-01 | Kyndryl, Inc. | Protecting sensitive data |
US11580240B2 (en) | 2020-03-24 | 2023-02-14 | Kyndryl, Inc. | Protecting sensitive data |
CN112242904B (en) * | 2020-11-19 | 2023-06-02 | 中国联合网络通信集团有限公司 | File information processing method and equipment |
CN112242904A (en) * | 2020-11-19 | 2021-01-19 | 中国联合网络通信集团有限公司 | File information processing method and equipment |
CN114726560A (en) * | 2020-12-22 | 2022-07-08 | 富泰华工业(深圳)有限公司 | Data protection method, computer device and readable storage medium |
CN113222342A (en) * | 2021-04-14 | 2021-08-06 | 河海大学 | Personnel file online tracing and tracking system and method |
CN113672953A (en) * | 2021-08-19 | 2021-11-19 | 安碳科技(深圳)有限公司 | Private chain file management system and method |
CN115834072A (en) * | 2022-10-13 | 2023-03-21 | 湖南天河国云科技有限公司 | Personnel archive traceability management method based on block chain |
CN115834072B (en) * | 2022-10-13 | 2024-11-19 | 湖南天河国云科技有限公司 | Personnel file traceability management method based on block chain |
CN116522365A (en) * | 2023-06-25 | 2023-08-01 | 点米(北京)科技有限公司 | Personnel file management method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109992994A (en) | A method and system for personnel file management based on blockchain | |
CN107147652B (en) | A secure fusion authentication method for user multi-modal identity based on blockchain | |
CN113014392B (en) | Block chain-based digital certificate management method, system, equipment and storage medium | |
Yang et al. | A blockchain-based approach to the secure sharing of healthcare data | |
CN106254324B (en) | A kind of encryption method and device of storage file | |
US8712041B2 (en) | Content protection apparatus and content encryption and decryption apparatus using white-box encryption table | |
WO2017024934A1 (en) | Electronic signing method, device and signing server | |
Jiang et al. | Verifiable search meets blockchain: A privacy-preserving framework for outsourced encrypted data | |
CN110597836B (en) | Information inquiry request response method and device based on block chain network | |
JP2019506103A (en) | How to manage trusted identities | |
CN113868715B (en) | Signature method and system based on quantum key | |
CN101924739A (en) | Method for encrypting, storing and retrieving software certificate and private key | |
CN117454440A (en) | Technology archive authentication method and intelligent management system based on traceable digital signature technology | |
CN110610102A (en) | A data access method, device and system | |
CN117240452A (en) | A blockchain-based secure sharing method for plateau data | |
CN108965824B (en) | CPK-based video surveillance method, system, camera, server and client | |
CN107094075A (en) | A kind of data block dynamic operation method based on convergent encryption | |
US20160080336A1 (en) | Key Usage Detection | |
CN110188545B (en) | A kind of data encryption method and device based on chain database | |
CN116340331A (en) | Large instrument experimental result evidence-storing method and system based on blockchain | |
US7031469B2 (en) | Optimized enveloping via key reuse | |
CN110493011A (en) | Certificate authority management method and device based on block chain | |
KR102475434B1 (en) | Security method and system for crypto currency | |
CN111628860A (en) | Method for generating and applying double-key system digital certificate | |
CN113065146A (en) | Homomorphic encryption method for block chain data protection |
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: 20190709 |