CN112347494A - Encryption reconciliation method and system based on block chain - Google Patents

Encryption reconciliation method and system based on block chain Download PDF

Info

Publication number
CN112347494A
CN112347494A CN202011247067.7A CN202011247067A CN112347494A CN 112347494 A CN112347494 A CN 112347494A CN 202011247067 A CN202011247067 A CN 202011247067A CN 112347494 A CN112347494 A CN 112347494A
Authority
CN
China
Prior art keywords
data
operator
depositor
certificate
account checking
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
CN202011247067.7A
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.)
Shanghai Ouye Finance Information Service Co ltd
Original Assignee
Shanghai Ouye Finance Information Service 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 Shanghai Ouye Finance Information Service Co ltd filed Critical Shanghai Ouye Finance Information Service Co ltd
Priority to CN202011247067.7A priority Critical patent/CN112347494A/en
Publication of CN112347494A publication Critical patent/CN112347494A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • 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

Abstract

The invention discloses an encryption reconciliation method and system based on a block chain. The method comprises the following steps: acquiring account checking data of a depositor; splicing and encrypting account data of the certificate depositor to obtain encrypted data of the certificate depositor; acquiring account checking data of an operator; splicing and encrypting account data of an operator to obtain encrypted data of the operator; and uploading the encrypted data of the certificate depositor and the encrypted data of the operator to a block chain for carrying out account checking content consistency judgment. By adopting the method and the system, account checking data is spliced and encrypted through account checking preposition and then uploaded to the block chain, so that a depositor and an operator can verify the correctness and consistency of the data and ensure the privacy of the data.

Description

Encryption reconciliation method and system based on block chain
Technical Field
The present invention relates to the field of blockchain technologies, and in particular, to a method and a system for encrypted reconciliation based on blockchain.
Background
At present, a mode of account checking based on a block chain is mostly a mode of plaintext account checking, an operator sends plaintext information of account checking to the block chain, and an external evidence storing party carries out comparison and verification by using the plaintext information.
In the current alliance certificate storing chain, an external certificate storing party independently carries out uplink and an operator carries out data verification. However, both parties cannot verify whether the uplink data is correct or not for the uplink data of each node, so that in the reconciliation operation, both parties can verify the correctness and consistency of the data and can ensure the privacy, which is very necessary.
Disclosure of Invention
The invention aims to provide an encryption reconciliation method and system based on a block chain, which can ensure that a depositor and an operator can verify the correctness and consistency of data and can ensure the privacy of the data.
In order to achieve the purpose, the invention provides the following scheme:
an encryption reconciliation method based on a blockchain comprises the following steps:
acquiring account checking data of a depositor;
splicing and encrypting the account checking data of the certificate depositor to obtain encrypted data of the certificate depositor;
acquiring account checking data of an operator;
splicing and encrypting the account reconciliation data of the operator to obtain encrypted data of the operator;
and uploading the encrypted data of the certificate depositor and the encrypted data of the operator to a block chain for carrying out account checking content consistency judgment.
Optionally, the splicing encryption processing is performed on the account checking data of the certificate depositor to obtain encrypted data of the certificate depositor, and the splicing encryption processing specifically includes:
converting the account checking data of the certificate depositor into certificate depositor data in a character string format;
and encrypting the certificate storage party data in the character string format by adopting a Hash algorithm to obtain the encrypted data of the certificate storage party.
Optionally, the splicing encryption processing is performed on the account checking data of the operator to obtain the encrypted data of the operator, and the splicing encryption processing specifically includes:
converting the account checking data of the operator into operator data in a character string format;
and encrypting the operator data in the character string format by adopting a Hash algorithm to obtain the operator encrypted data.
Optionally, the method for determining consistency of account checking content specifically includes:
decrypting the certificate depositor encrypted data and the operator encrypted data respectively to obtain certificate depositor decrypted data and operator decrypted data;
carrying out character comparison on the certificate storing party decryption data and the operator decryption data one by one to obtain a character comparison result;
and carrying out account checking content consistency judgment according to the character comparison result.
The invention also provides an encryption reconciliation system based on the block chain, which comprises the following steps:
the evidence depositor account checking data acquisition module is used for acquiring account checking data of the evidence depositor;
the first encryption module is used for splicing and encrypting the account checking data of the certificate depositor to obtain encrypted data of the certificate depositor;
the operator account checking data acquisition module is used for acquiring account checking data of an operator;
the second encryption module is used for splicing and encrypting the account checking data of the operator to obtain encrypted data of the operator;
and the account checking module is used for uploading the encrypted data of the certificate depositor and the encrypted data of the operator to a block chain for carrying out account checking content consistency judgment.
Optionally, the first encryption module specifically includes:
the first character string format conversion unit is used for converting the account checking data of the certificate depositor into certificate depositor data in a character string format;
and the first encryption unit is used for encrypting the certificate storing party data in the character string format by adopting a Hash algorithm to obtain the encrypted certificate storing party data.
Optionally, the second encryption module specifically includes:
the second character string format conversion unit is used for converting the account checking data of the operator into operator data in a character string format;
and the second encryption unit is used for encrypting the operator data in the character string format by adopting a Hash algorithm to obtain the operator encrypted data.
Optionally, the reconciliation module specifically includes:
the decryption unit is used for respectively decrypting the certificate storing party encrypted data and the operator encrypted data to obtain certificate storing party decrypted data and operator decrypted data;
the comparison unit is used for carrying out character comparison on the certificate depositor decrypted data and the operator decrypted data one by one to obtain a character comparison result;
and the account checking unit is used for judging the consistency of account checking contents according to the character comparison result.
Compared with the prior art, the invention has the beneficial effects that:
the invention provides an encryption reconciliation method and system based on a block chain, which are used for acquiring reconciliation data of a certificate depositor; splicing and encrypting account data of the certificate depositor to obtain encrypted data of the certificate depositor; acquiring account checking data of an operator; splicing and encrypting account data of an operator to obtain encrypted data of the operator; and uploading the encrypted data of the certificate depositor and the encrypted data of the operator to a block chain for carrying out account checking content consistency judgment. According to the invention, account checking data is spliced and encrypted by the account checking preposition and then uploaded to the block chain, so that a certificate depositor and an operator can verify the correctness and consistency of the data and can ensure the privacy of the data.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
FIG. 1 is a flow chart of an encryption reconciliation method based on a block chain according to an embodiment of the present invention;
fig. 2 is a schematic diagram of an encryption reconciliation flow based on a blockchain in an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention aims to provide an encryption reconciliation method and system based on a block chain, which can ensure that a depositor and an operator can verify the correctness and consistency of data and can ensure the privacy of the data.
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
Examples
Fig. 1 is a flowchart of an encryption reconciliation method based on a block chain in an embodiment of the present invention, and as shown in fig. 1, an encryption reconciliation method based on a block chain includes:
step 101: and acquiring reconciliation data of the depositor.
Step 102: and splicing and encrypting the account data of the certificate depositor to obtain encrypted data of the certificate depositor.
Step 102, specifically comprising:
and converting account checking data of the certificate depositor into certificate depositor data in a character string format. The character string format is a json data format.
And encrypting the certificate storing party data in the character string format by adopting a Hash algorithm to obtain the encrypted data of the certificate storing party.
Step 103: and acquiring account checking data of the operator.
Step 104: and splicing and encrypting the account data of the operator to obtain the encrypted data of the operator.
Step 104, specifically comprising:
and converting the account checking data of the operator into the operator data in a character string format.
And encrypting the operator data in the character string format by adopting a Hash algorithm to obtain the operator encrypted data.
Step 105: and uploading the encrypted data of the certificate depositor and the encrypted data of the operator to a block chain for carrying out account checking content consistency judgment.
The method for judging the consistency of the account checking content specifically comprises the following steps:
and respectively carrying out decryption processing on the encrypted data of the certificate storing party and the encrypted data of the operator to obtain decrypted data of the certificate storing party and decrypted data of the operator.
And comparing the characters of the decrypted data of the certificate storing party and the decrypted data of the operator one by one to obtain a character comparison result.
And carrying out account checking content consistency judgment according to the character comparison result.
Therefore, after whether the account checking contents are consistent or not is judged, the account checking information can be inquired by calling the inquiry interface.
Specifically, as shown in fig. 2, for the privacy reconciliation service, both the operator and the external evidence depositor have a full account book, and the reconciliation is performed on the blockchain service through encrypted information. An external evidence storing party reads the account checking data of the external evidence storing party, assembles and encrypts the whole data by the account checking preposition, and links the data; and the operator reads the account checking data stored by the external evidence storing party, assembles and encrypts the whole data by the account checking preposition, chains up the data, and finally calls a contract query method to check the account checking result. By adopting the technical scheme of the invention, privacy reconciliation can be carried out on the alliance chain, only the relevant party can verify the reconciliation information, and the non-relevant party cannot acquire the data content.
The invention also provides an encryption reconciliation system based on the block chain, which comprises the following steps:
and the evidence depositor account checking data acquisition module is used for acquiring account checking data of the evidence depositor.
And the first encryption module is used for splicing and encrypting the account checking data of the certificate depositor to obtain the encrypted data of the certificate depositor.
The first encryption module specifically comprises:
the first character string format conversion unit is used for converting account checking data of the certificate depositor into certificate depositor data in a character string format;
and the first encryption unit is used for encrypting the certificate storing party data in the character string format by adopting a Hash algorithm to obtain the encrypted data of the certificate storing party.
And the operator account checking data acquisition module is used for acquiring account checking data of the operator.
And the second encryption module is used for splicing and encrypting the account checking data of the operator to obtain the encrypted data of the operator.
The second encryption module specifically includes:
the second character string format conversion unit is used for converting account checking data of the operator into operator data in a character string format;
and the second encryption unit is used for encrypting the operator data in the character string format by adopting a Hash algorithm to obtain the operator encrypted data.
And the account checking module is used for uploading the encrypted data of the certificate depositor and the encrypted data of the operator to the block chain to judge the consistency of the account checking content.
The account checking module specifically comprises:
the decryption unit is used for respectively decrypting the certificate storing party encrypted data and the operator encrypted data to obtain certificate storing party decrypted data and operator decrypted data;
the comparison unit is used for carrying out character comparison on the certificate storing party decryption data and the operator decryption data one by one to obtain a character comparison result;
and the account checking unit is used for judging the consistency of account checking contents according to the character comparison result.
The principles and embodiments of the present invention have been described herein using specific examples, which are provided only to help understand the method and the core concept of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, the specific embodiments and the application range may be changed. In summary, this summary should not be construed to limit the present invention.

Claims (8)

1. An encryption reconciliation method based on a block chain is characterized by comprising the following steps:
acquiring account checking data of a depositor;
splicing and encrypting the account checking data of the certificate depositor to obtain encrypted data of the certificate depositor;
acquiring account checking data of an operator;
splicing and encrypting the account reconciliation data of the operator to obtain encrypted data of the operator;
and uploading the encrypted data of the certificate depositor and the encrypted data of the operator to a block chain for carrying out account checking content consistency judgment.
2. The block chain-based encrypted account reconciliation method according to claim 1, wherein the splicing encryption processing is performed on the account reconciliation data of the evidence depositor to obtain encrypted data of the evidence depositor, and specifically comprises:
converting the account checking data of the certificate depositor into certificate depositor data in a character string format;
and encrypting the certificate storage party data in the character string format by adopting a Hash algorithm to obtain the encrypted data of the certificate storage party.
3. The block chain-based encrypted reconciliation method according to claim 2, wherein the splicing encryption processing of the reconciliation data of the operator to obtain the encrypted data of the operator specifically comprises:
converting the account checking data of the operator into operator data in a character string format;
and encrypting the operator data in the character string format by adopting a Hash algorithm to obtain the operator encrypted data.
4. The encryption reconciliation method based on the block chain according to claim 3, wherein the method for judging the consistency of the reconciliation content specifically comprises the following steps:
decrypting the certificate depositor encrypted data and the operator encrypted data respectively to obtain certificate depositor decrypted data and operator decrypted data;
carrying out character comparison on the certificate storing party decryption data and the operator decryption data one by one to obtain a character comparison result;
and carrying out account checking content consistency judgment according to the character comparison result.
5. A blockchain-based cryptographic reconciliation system, comprising:
the evidence depositor account checking data acquisition module is used for acquiring account checking data of the evidence depositor;
the first encryption module is used for splicing and encrypting the account checking data of the certificate depositor to obtain encrypted data of the certificate depositor;
the operator account checking data acquisition module is used for acquiring account checking data of an operator;
the second encryption module is used for splicing and encrypting the account checking data of the operator to obtain encrypted data of the operator;
and the account checking module is used for uploading the encrypted data of the certificate depositor and the encrypted data of the operator to a block chain for carrying out account checking content consistency judgment.
6. The system according to claim 5, wherein the first encryption module specifically includes:
the first character string format conversion unit is used for converting the account checking data of the certificate depositor into certificate depositor data in a character string format;
and the first encryption unit is used for encrypting the certificate storing party data in the character string format by adopting a Hash algorithm to obtain the encrypted certificate storing party data.
7. The block chain-based encrypted reconciliation system of claim 6, wherein the second encryption module specifically comprises:
the second character string format conversion unit is used for converting the account checking data of the operator into operator data in a character string format;
and the second encryption unit is used for encrypting the operator data in the character string format by adopting a Hash algorithm to obtain the operator encrypted data.
8. The block chain-based encrypted reconciliation system of claim 7, wherein the reconciliation module specifically comprises:
the decryption unit is used for respectively decrypting the certificate storing party encrypted data and the operator encrypted data to obtain certificate storing party decrypted data and operator decrypted data;
the comparison unit is used for carrying out character comparison on the certificate depositor decrypted data and the operator decrypted data one by one to obtain a character comparison result;
and the account checking unit is used for judging the consistency of account checking contents according to the character comparison result.
CN202011247067.7A 2020-11-10 2020-11-10 Encryption reconciliation method and system based on block chain Pending CN112347494A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011247067.7A CN112347494A (en) 2020-11-10 2020-11-10 Encryption reconciliation method and system based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011247067.7A CN112347494A (en) 2020-11-10 2020-11-10 Encryption reconciliation method and system based on block chain

Publications (1)

Publication Number Publication Date
CN112347494A true CN112347494A (en) 2021-02-09

Family

ID=74362365

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011247067.7A Pending CN112347494A (en) 2020-11-10 2020-11-10 Encryption reconciliation method and system based on block chain

Country Status (1)

Country Link
CN (1) CN112347494A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113360935A (en) * 2021-07-26 2021-09-07 永旗(北京)科技有限公司 Account checking method and system based on block chain technology
CN115774885A (en) * 2023-01-29 2023-03-10 成方金融科技有限公司 Account checking method and device based on homomorphic encryption, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109003175A (en) * 2018-07-06 2018-12-14 国网汇通金财(北京)信息科技有限公司 A kind of account checking method and system based on block chain
CN110163751A (en) * 2019-04-15 2019-08-23 广州致链科技有限公司 Block chain access system and its implementation towards alliance's chain
US20200065298A1 (en) * 2016-06-16 2020-02-27 The Bank Of New York Mellon Ensuring data integrity of executed transactions
CN111161041A (en) * 2019-12-31 2020-05-15 中国银行股份有限公司 Account checking method and device based on block chain
CN111861482A (en) * 2020-09-22 2020-10-30 支付宝(杭州)信息技术有限公司 Block chain account checking method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200065298A1 (en) * 2016-06-16 2020-02-27 The Bank Of New York Mellon Ensuring data integrity of executed transactions
CN109003175A (en) * 2018-07-06 2018-12-14 国网汇通金财(北京)信息科技有限公司 A kind of account checking method and system based on block chain
CN110163751A (en) * 2019-04-15 2019-08-23 广州致链科技有限公司 Block chain access system and its implementation towards alliance's chain
CN111161041A (en) * 2019-12-31 2020-05-15 中国银行股份有限公司 Account checking method and device based on block chain
CN111861482A (en) * 2020-09-22 2020-10-30 支付宝(杭州)信息技术有限公司 Block chain account checking method and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113360935A (en) * 2021-07-26 2021-09-07 永旗(北京)科技有限公司 Account checking method and system based on block chain technology
CN115774885A (en) * 2023-01-29 2023-03-10 成方金融科技有限公司 Account checking method and device based on homomorphic encryption, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109063426A (en) A kind of copyright based on alliance's block chain deposits card sharing method and system
US20160277923A1 (en) Method and apparatus for performing secure bluetooth communication
CN106341493A (en) Entity rights oriented digitalized electronic contract signing method
CN109509099B (en) Data transaction method and device, computing equipment and storage medium
CN107920081A (en) Login authentication method and device
CN111294203B (en) Information transmission method
CN111464315B (en) Digital signature processing method, device, computer equipment and storage medium
CN107196761B (en) A kind of method of core function in protection application program
CN112347494A (en) Encryption reconciliation method and system based on block chain
CN109905371A (en) Two-way encrypted authentication system and its application method
CN110019075A (en) Log encryption method and decryption method and device
WO2021036511A1 (en) Method for data encryption, storage and reading, terminal device, and storage medium
CN102264068B (en) Shared key consultation method, system, network platform and terminal
CN109978543B (en) Contract signing method and device, electronic equipment and storage medium
CN115964728A (en) File encryption method and device based on consensus algorithm
CN115225672A (en) End-to-end data transmission method, device and medium
CN113360935A (en) Account checking method and system based on block chain technology
CN116455572A (en) Data encryption method, device and equipment
KR101329789B1 (en) Encryption Method of Database of Mobile Communication Device
CN114611129A (en) Data privacy protection method and system
CN102045709B (en) Mobile terminal application data downloading method, system and mobile terminal
CN105763506A (en) Grain information management method and system
CN108600180A (en) A kind of image verification method and device based on block chain
CN111291412B (en) Block chain-based on-chain data storage and reading method and system
CN113901140A (en) Industrial control equipment data chaining method based on block chain

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: 20210209