Financial data security storage method and device based on quantum encryption algorithm

By combining quantum encryption algorithms with data padding and integrity verification, the security risks of traditional encryption methods in financial data storage are resolved, ensuring data confidentiality and integrity, and enabling efficient and secure financial data storage and access.

CN118981779AInactive Publication Date: 2024-11-19CHINA LIFE INSURANCE CO LTD SHANGHAI DATA CENT
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411002192.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2024-11-19
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Traditional encryption methods pose security risks in the financial data storage process, leading to data leakage risks and affecting enterprise production and operation.

Method used

A data security storage method based on quantum encryption algorithm is adopted. By combining data padding with quantum encryption, data confidentiality is ensured. A shared quantum key string is established between the data storage party and the access party through a quantum key distribution protocol. Long and short byte data are encrypted separately, and integrity verification is performed regularly.

Benefits of technology

Effectively prevent data leakage and unauthorized access, ensure the confidentiality and integrity of financial data, and achieve efficient and secure data storage and access.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118981779A_ABST
    Figure CN118981779A_ABST
Patent Text Reader

Abstract

The invention provides a financial data security storage method and device based on a quantum encryption algorithm, and belongs to the technical field of data security. A quantum encryption algorithm library is preset, and storage identifiers and data identifiers in mapping relation with various quantum encryption algorithms are defined; a shared quantum key string is established between the data storage party and the data access party based on the quantum key distribution protocol; obtaining financial data to be encrypted according to a financial data storage request sent by a data storage party, performing encrypted storage by using the quantum key string and the selected quantum encryption algorithm, judging whether the financial data to be encrypted is long-byte data or short-byte data according to the length of the financial data to be encrypted, and storing the financial data to be encrypted according to the long-byte data or the short-byte data. And data filling measures are adopted for short byte data, so that the confidentiality of the data is ensured through a mode of combining data filling and quantum encryption, and integrity verification is performed regularly to ensure that the stored financial data are kept complete and available in the transmission and storage process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data security monitoring technology, and specifically, to a method and device for secure storage of financial data based on a quantum encryption algorithm. Background Art

[0002] As the scale of enterprises continues to expand, the financial activities between the group and its member units are also increasing, and relevant stakeholders are often required to participate in the filling, verification, and submission of financial information. In the process of handling financial information, relevant personnel inevitably cause information security problems due to frequent communications, which poses a major challenge to the company's data security. Traditional encryption methods still have security risks in the financial data storage process, which makes financial data at risk of leakage and affects the production and operation of enterprises. Summary of the invention

[0003] In view of this, the purpose of this application is to provide a method and device for secure storage of financial data based on a quantum encryption algorithm, which can ensure the confidentiality of data by combining data padding with quantum encryption.

[0004] In a first aspect, the present application provides a method for securely storing financial data based on a quantum encryption algorithm, the method comprising the following steps:

[0005] Presetting a quantum encryption algorithm library, defining storage identifiers and data identifiers that are mapped to various quantum encryption algorithms in the quantum encryption algorithm library, and establishing a shared quantum key string between a data storage party and a data access party based on a quantum key distribution protocol;

[0006] Acquire the financial data to be encrypted according to the financial data storage request sent by the data storage party, and determine whether the financial data to be encrypted is long byte data or short byte data according to the length of the financial data to be encrypted;

[0007] If it is long-byte data, after the selected storage identifier is added to the header of the financial data to be encrypted, the data is encrypted using a shared quantum key string and a quantum encryption algorithm corresponding to the storage identifier to generate ciphertext data and store it for access by the data access party;

[0008] If it is short byte data, first select a quantum encryption algorithm from the quantum encryption algorithm library to fill the financial data to be encrypted until the set storage length is reached to form pseudo financial data; then, after adding a data identifier corresponding to the quantum encryption algorithm to the header of the pseudo financial data, encrypt it using a shared quantum key string and the quantum encryption algorithm to generate ciphertext data and store it for access by the data access party.

[0009] In a possible implementation manner, providing access to the data by the data access party in the following manner includes the following steps:

[0010] Acquire the financial data to be decrypted according to the financial data access request sent by the data access party, and decrypt the financial data to be decrypted using the shared quantum key string to obtain the decrypted financial data;

[0011] Identify whether the header of the decrypted financial data is a storage identifier or a data identifier;

[0012] If it is a storage identifier, after removing the storage identifier from the decrypted financial data, reverse decryption is performed using the quantum encryption algorithm corresponding to the storage identifier to obtain the original financial data;

[0013] If it is a data identifier, after removing the data identifier from the decrypted financial data, the data identifier is reversely filled using the quantum encryption algorithm corresponding to the data identifier to obtain the original financial data.

[0014] In a possible implementation, the quantum encryption algorithm includes one or more of a quantum key distribution encryption algorithm, a quantum hash encryption algorithm, and a quantum signature encryption algorithm.

[0015] In a possible implementation, the method further includes the following steps:

[0016] Regularly verify the integrity of stored ciphertext data.

[0017] In a possible implementation, the periodic integrity verification of the stored ciphertext data includes the following steps:

[0018] Calculating a first hash value for each piece of ciphertext data using a selected hash function, and storing the calculated first hash value and an identifier corresponding to the ciphertext data in a hash table; wherein the ciphertext data and the hash table are stored separately;

[0019] According to the set verification cycle, recalculate the second hash value of each stored ciphertext data;

[0020] The recalculated second hash value is compared with the first hash value stored in the hash table. If the two are consistent, the verification is successful; if the two are inconsistent, the verification fails.

[0021] In a possible implementation, the method further includes the following steps:

[0022] The stored ciphertext data is backed up, and the ciphertext data that fails verification is restored using the backup.

[0023] In a possible implementation manner, before obtaining the financial data to be decrypted according to the financial data access request sent by the data access party, the following steps are also included:

[0024] The data accessing party is authenticated to determine that it has the authorized financial data access request rights.

[0025] In a second aspect, the present application provides a financial data security storage device based on a quantum encryption algorithm, the device comprising:

[0026] An initialization module is used to preset a quantum encryption algorithm library, define storage identifiers and data identifiers that are mapped to various quantum encryption algorithms in the quantum encryption algorithm library, and establish a shared quantum key string between a data storage party and a data access party based on a quantum key distribution protocol;

[0027] A length judgment module, used for obtaining the financial data to be encrypted according to the financial data storage request sent by the data storage party, and judging whether the financial data to be encrypted is long byte data or short byte data according to the length of the financial data to be encrypted;

[0028] The encryption storage module is used for, if the data is long byte data, after the selected storage identifier is added to the header of the financial data to be encrypted, encrypting the data using a shared quantum key string and a quantum encryption algorithm corresponding to the storage identifier, generating ciphertext data and storing the data for access by the data access party; if the data is short byte data, first selecting a quantum encryption algorithm from the quantum encryption algorithm library to fill the financial data to be encrypted until the set storage length is reached to form pseudo financial data; and then after the data identifier corresponding to the quantum encryption algorithm is added to the header of the pseudo financial data, encrypting the data using a shared quantum key string and the quantum encryption algorithm, generating ciphertext data and storing the data for access by the data access party.

[0029] In a third aspect, the present application provides an electronic device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and when the machine-readable instructions are executed by the processor, the steps of the method for secure storage of financial data based on the quantum encryption algorithm as described in the first aspect are performed.

[0030] In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for secure storage of financial data based on a quantum encryption algorithm as described in the first aspect are executed.

[0031] The present embodiment provides a method and device for secure storage of financial data based on a quantum encryption algorithm. A quantum encryption algorithm library is pre-set, and storage identifiers and data identifiers that are mapped to various quantum encryption algorithms in the quantum encryption algorithm library are defined. A shared quantum key string is established between a data storage party and a data access party based on a quantum key distribution protocol. Financial data to be encrypted is obtained according to a financial data storage request sent by the data storage party, and whether the financial data to be encrypted is long byte data or short byte data is determined according to the length of the financial data to be encrypted. If it is long byte data, a selected storage identifier is added to the header of the financial data to be encrypted. After the storage identifier is added, the shared quantum key string and the quantum encryption algorithm corresponding to the storage identifier are used to encrypt the data, generate ciphertext data and store it for access by the data access party; if it is short byte data, first select a quantum encryption algorithm from the quantum encryption algorithm library to fill the financial data to be encrypted until the set storage length is reached to form pseudo financial data; then, after the data identifier corresponding to the quantum encryption algorithm is added to the header of the pseudo financial data, the shared quantum key string and the quantum encryption algorithm are used to encrypt it, generate ciphertext data and store it for access by the data access party. Thus, by combining data filling with quantum encryption, the problem that short byte data is easily identified by association after encryption is solved, and the confidentiality of the data is ensured. In some embodiments, the integrity of the stored ciphertext data is also regularly verified to ensure that the stored financial data remains intact and available during transmission and storage. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0033] Figure 1 This is a flow chart of a method for securely storing financial data based on a quantum encryption algorithm in one embodiment of the present application;

[0034] Figure 2 A schematic diagram of a process flow for access by the data access party in one embodiment of the present application;

[0035] Figure 3 This is a schematic diagram of a process for periodically performing integrity verification on stored ciphertext data as described in an embodiment of the present application;

[0036] Figure 4 This is a structural block diagram of a financial data security storage device based on a quantum encryption algorithm described in an embodiment of the present application;

[0037] Figure 5 It is a structural block diagram of an electronic device described in an embodiment of the present application. DETAILED DESCRIPTION

[0038] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of the present application, or remove one or more operations from the flowchart.

[0039] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application usually described and marked in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0040] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.

[0041] Based on the technical problems raised by the background technology, the present application provides a method and device for secure storage of financial data based on a quantum encryption algorithm, which can ensure the confidentiality of data by combining data filling with quantum encryption.

[0042] See the instruction manual Figure 1 In one embodiment, the present application provides a method for securely storing financial data based on a quantum encryption algorithm, the method comprising the following steps:

[0043] S1. Preset a quantum encryption algorithm library, define storage identifiers and data identifiers that are mapped to various quantum encryption algorithms in the quantum encryption algorithm library, and establish a shared quantum key string between a data storage party and a data access party based on a quantum key distribution protocol;

[0044] S2. acquiring the financial data to be encrypted according to the financial data storage request sent by the data storage party, and determining whether the financial data to be encrypted is long byte data or short byte data according to the length of the financial data to be encrypted;

[0045] S3. If it is long-byte data, after the selected storage identifier is added to the header of the financial data to be encrypted, the data is encrypted using a shared quantum key string and a quantum encryption algorithm corresponding to the storage identifier to generate ciphertext data and store it for access by the data access party; if it is short-byte data, first select a quantum encryption algorithm from the quantum encryption algorithm library to fill the financial data to be encrypted until the set storage length is reached to form pseudo-financial data; then, after the data identifier corresponding to the quantum encryption algorithm is added to the header of the pseudo-financial data, the data is encrypted using a shared quantum key string and the quantum encryption algorithm to generate ciphertext data and store it for access by the data access party.

[0046] In order to clearly explain the technical solution of the present application, the quantum encryption algorithm adopted in the present application can be explained first. The quantum encryption algorithm uses quantum technology to transmit secret keys to achieve more secure encrypted communication. Its innovation lies in the key distribution technology, which can well solve the problem of key generation in the one-time pad algorithm; it can effectively prevent the information from being stolen or tampered with during the transmission process. In the quantum cryptography system, the sender of the information sends a series of quantum states in a certain way (such as letting photons pass through polarizers). These quantum states represent the quantum bits that constitute the password "key" and can encrypt or decrypt the message. The receiver randomly selects the measurement mode to receive these quantum bits; according to Heisenberg's uncertainty principle, the eavesdropper will disturb the quantum state when peeking at the photon beam, which will cause the sender or receiver to detect it, so theoretically, this process of distributing keys is unconditionally secure.

[0047] Specifically, in step S1, the preset quantum encryption algorithm library includes an encryption algorithm based on quantum key distribution, a quantum hash encryption algorithm, a quantum signature encryption algorithm, etc.; at the same time, a mapping table of the relationship between various quantum encryption algorithms and storage identifiers and data identifiers in the quantum encryption algorithm library is established to ensure a one-to-one correspondence between the storage identifier and the data identifier and the quantum encryption algorithm. For example, the quantum encryption algorithm library includes a first quantum encryption algorithm library, a second quantum encryption algorithm library, and a third quantum encryption algorithm library. The storage identifier corresponding to the first quantum encryption algorithm is A and the data identifier is a; the storage identifier corresponding to the second quantum encryption algorithm is B and the data identifier is b; the storage identifier corresponding to the third quantum encryption algorithm is C and the data identifier is c.

[0048] It should be noted that the reason why both storage identification and data identification are set in this application is that when the financial data is encrypted later, two types of data (long byte data and short byte data) will be involved, and different encryption processes are used for the two types of data. By setting the storage identification and data identification, it is possible to quickly distinguish whether the encrypted financial data is long byte data or short byte data. The reason for distinguishing long byte data / short byte data is mainly to distinguish the categories of property data. For example, for business names such as insurance policies of financial data, such as China Life Kangning Companion Major Disease Insurance and other data types are usually longer; but for the annual report content of financial data, such as operating income, insurance business income, the names are usually shorter. Therefore, this can also prevent the financial data from being more easily identified or guessed after being stolen.

[0049] In step S2, when the data storage party stores financial data, it first determines whether the length of the financial data to be encrypted meets the preset storage length requirement. If it does, it is regarded as long-byte data, and if it does not, it is regarded as short-byte data. For example, let the data length threshold that meets the storage requirement be L, and when the financial data to be encrypted is obtained according to the financial data storage request sent by the data storage party, and it is determined that the length of the financial data to be encrypted is L0, the size between L and L0 is compared. If L0≥L, the financial data to be encrypted is determined to be long-byte data, and if L0<L, the financial data to be encrypted is determined to be short-byte data.

[0050] In step S3, when encrypting the long byte data, a preset storage identifier is directly added to the head of the data, and the quantum encryption algorithm corresponding to the storage identifier and the shared quantum key string are used to encrypt the data, and the ciphertext data is generated and stored in the data storage medium. For example, if the selected quantum encryption algorithm is the first quantum encryption algorithm, the storage identifier A is directly added to the head of the long byte data according to the mutual relationship mapping table, and then the first quantum encryption algorithm and the shared quantum key string are used to encrypt the data, and the ciphertext data is generated and stored in the data storage medium for access by the data access party;

[0051] When encrypting short byte data, data length compensation measures are adopted. Specifically, a quantum encryption algorithm is randomly selected from the quantum encryption algorithm library to fill the short byte data until the data length threshold L that meets the storage requirements is reached to form pseudo financial data; then the data identifier corresponding to the selected quantum encryption algorithm is added to the header of the pseudo financial data, and the shared quantum key string is used to encrypt it, and the generated ciphertext data is stored in the data storage medium. For example, if the selected quantum encryption algorithm is the first quantum encryption algorithm, the first quantum encryption algorithm is first used to fill the short byte data to form pseudo financial data, and then the data identifier a corresponding to the first quantum encryption algorithm is added to the header of the pseudo financial data according to the mutual relationship mapping table, and finally the pseudo financial data with the additional data identifier a is encrypted using the first quantum encryption algorithm and the shared quantum key string, and the ciphertext data is generated and stored in the data storage medium for access by the data access party.

[0052] For further information, see the attached manual. Figure 2 , providing access to the data access party in the following manner, including the following steps:

[0053] P1. Obtaining the financial data to be decrypted according to the financial data access request sent by the data access party, and decrypting the financial data to be decrypted using the shared quantum key string to obtain the decrypted financial data;

[0054] P2. Identify whether the header of the decrypted financial data is a storage identifier or a data identifier;

[0055] P3. If it is a storage identifier, after removing the storage identifier from the decrypted financial data, reverse decrypt it using the quantum encryption algorithm corresponding to the storage identifier to obtain the original financial data; if it is a data identifier, after removing the data identifier from the decrypted financial data, reverse fill it using the quantum encryption algorithm corresponding to the data identifier to obtain the original financial data.

[0056] In step P1-step P3, when the data access party needs to access financial data, it first obtains the ciphertext data (the financial data to be decrypted) from the data storage medium, and decrypts it using the shared quantum key string to obtain the decrypted financial data; then identifies the identification information of the financial data header, and if the identification information is a preset storage identifier, it determines that the financial data to be decrypted is long-byte data, directly removes the storage identifier, and reversely decrypts it according to the quantum encryption algorithm corresponding to the storage identifier to obtain the original financial data. For example, if the identification information is a preset storage identifier A, the storage identifier A of the decrypted financial data header is removed, and then the corresponding first quantum encryption algorithm is used to reversely decrypt it to obtain the original financial data;

[0057] If the identifier is a preset data identifier, the financial data to be decrypted is determined to be short-byte data, and the data identifier is first removed from the header of the financial data to be decrypted, and then the quantum encryption algorithm corresponding to the data identifier is searched according to the mutual relationship mapping table, and the financial data to be decrypted with the data identifier removed is reversely filled using the quantum encryption algorithm to obtain the original financial data. For example, if the identification information is a preset data identifier a, the data identifier a is first removed from the header of the financial data to be decrypted, and then the first quantum encryption algorithm corresponding to the data identifier a is used to reversely fill the decrypted financial data with the data identifier a removed to restore the original financial data.

[0058] In addition, see the instructions for Figure 3 ,In order to ensure that the financial data is not tampered with or damaged during storage, the integrity of the stored ciphertext data is verified regularly, including the following steps:

[0059] Q1. Calculate the first hash value of each ciphertext data using the selected hash function, and store the calculated first hash value and the identifier corresponding to the ciphertext data in a hash table; wherein the ciphertext data and the hash table are stored separately;

[0060] Q2. Recalculate the second hash value of each stored ciphertext data according to the set verification cycle;

[0061] Q3. Compare the recalculated second hash value with the first hash value stored in the hash table. If the two are consistent, verification is successful; if the two are inconsistent, verification fails.

[0062] That is, in this application, a hash function is used to perform periodic integrity verification on the stored ciphertext data. Specifically, in step Q1, when the ciphertext data is stored for the first time, a secure hash function (such as SHA-256, SHA-3, etc.) is randomly selected for each ciphertext data, and its hash value is calculated using the selected hash function. This hash value will be the unique digital fingerprint of the ciphertext data, and even a slight change in the data will result in a significantly different hash value; the calculated hash value is stored in a hash table together with the corresponding ciphertext data identifier (such as file name, data block number, etc.); preferably, the ciphertext data is stored in the main data storage area, and the hash table can be stored in another secure location, and can even be backed up off-site, Ensure that the storage of the hash table is physically and logically separated from the main data storage area to increase security; in step Q2, set a regular verification plan, such as daily, weekly or monthly integrity verification; in step Q3, during verification, recalculate the hash value of each ciphertext data in the main data storage area, and compare the recalculated hash value with the original hash value stored in the hash table. If the recalculated hash value is consistent with the value in the hash table, it means that the data has not been tampered with or damaged during the storage process and remains intact; if inconsistency is found, it means that the data may have been tampered with or damaged during the storage process. At this time, an alarm should be triggered to notify the administrator to conduct further inspection and processing, or take data recovery measures according to the actual situation.

[0063] It should be noted that if the ciphertext data is updated or replaced, the hash value of the new data should be recalculated and the hash table should be updated.

[0064] In other embodiments, for data security, the data access party is also authenticated and authorized to ensure that only the authorized data access party can obtain and decrypt the stored financial data. This process is based on system login identity authentication confirmation, which is not the focus of this application and will not be described here.

[0065] The present application provides a method for secure storage of financial data based on a quantum encryption algorithm. The method utilizes a quantum encryption algorithm to encrypt and store financial data, which can effectively prevent data leakage and illegal access, and improve the security of financial data storage. By combining data padding with quantum encryption, the problem that short-byte data is easily identified by association after encryption can be solved, thereby ensuring the confidentiality of the data. Through an integrity verification mechanism, the stored financial data can be ensured to remain intact and available during transmission and storage, thereby achieving efficient and secure storage and access to financial data.

[0066] Based on the same inventive concept, an embodiment of the present application also provides a financial data security storage device based on a quantum encryption algorithm. Since the principle of solving the problem by the device in the embodiment of the present application is similar to the above-mentioned financial data security storage method based on a quantum encryption algorithm in the embodiment of the present application, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.

[0067] As the instruction manual Figure 4 As shown, the present application also provides a financial data security storage device based on a quantum encryption algorithm, the device comprising:

[0068] Initialization module 401 is used to preset a quantum encryption algorithm library, define storage identifiers and data identifiers that are mapped to various quantum encryption algorithms in the quantum encryption algorithm library, and establish a shared quantum key string between a data storage party and a data access party based on a quantum key distribution protocol;

[0069] A length determination module 402, configured to obtain the financial data to be encrypted according to the financial data storage request sent by the data storage party, and determine whether the financial data to be encrypted is long byte data or short byte data according to the length of the financial data to be encrypted;

[0070] The encryption storage module 403 is used to, if the data is long byte data, after the selected storage identifier is added to the header of the financial data to be encrypted, encrypt the data using a shared quantum key string and a quantum encryption algorithm corresponding to the storage identifier, generate ciphertext data and store it for access by the data access party; if the data is short byte data, first select a quantum encryption algorithm from the quantum encryption algorithm library to fill the financial data to be encrypted until the set storage length is reached to form pseudo financial data; then, after the data identifier corresponding to the quantum encryption algorithm is added to the header of the pseudo financial data, encrypt the data using a shared quantum key string and the quantum encryption algorithm, generate ciphertext data and store it for access by the data access party.

[0071] In some embodiments, the device further comprises:

[0072] A data access module is used to obtain the financial data to be decrypted according to the financial data access request sent by the data access party, and decrypt the financial data to be decrypted using the shared quantum key string to obtain the decrypted financial data; identify whether the header of the decrypted financial data is a storage identifier or a data identifier; if it is a storage identifier, remove the storage identifier from the decrypted financial data, and reversely decrypt it using the quantum encryption algorithm corresponding to the storage identifier to obtain the original financial data; if it is a data identifier, remove the data identifier from the decrypted financial data, and reversely fill it using the quantum encryption algorithm corresponding to the data identifier to obtain the original financial data.

[0073] In some embodiments, the device further comprises:

[0074] A verification module is used to periodically perform integrity verification on stored ciphertext data, including calculating a first hash value for each ciphertext data using a selected hash function, and storing the calculated first hash value and an identifier corresponding to the ciphertext data in a hash table; wherein the ciphertext data and the hash table are stored separately; according to a set verification cycle, a second hash value is recalculated for each stored ciphertext data; the recalculated second hash value is compared with the first hash value stored in the hash table, and if the two are consistent, the verification is successful; if the two are inconsistent, the verification fails, the stored ciphertext data is backed up, and the ciphertext data that failed the verification is restored using the backup.

[0075] The present application provides a financial data security storage device based on a quantum encryption algorithm. The device presets a quantum encryption algorithm library through an initialization module, defines storage identifiers and data identifiers that are mapped to various quantum encryption algorithms in the quantum encryption algorithm library, and establishes a shared quantum key string between a data storage party and a data access party based on a quantum key distribution protocol; obtains financial data to be encrypted according to a financial data storage request sent by the data storage party through a length judgment module, and judges whether the financial data to be encrypted is long byte data or short byte data according to the length of the financial data to be encrypted; if it is long byte data, the encryption storage module is used to store the encrypted data in the header of the financial data to be encrypted. After adding the selected storage identifier, the shared quantum key string and the quantum encryption algorithm corresponding to the storage identifier are used to encrypt the row, generate ciphertext data and store it for access by the data access party; if it is short byte data, a quantum encryption algorithm is first selected from the quantum encryption algorithm library through the encryption storage module to fill the financial data to be encrypted until the set storage length is reached to form pseudo financial data; and then after adding the data identifier corresponding to the quantum encryption algorithm to the head of the pseudo financial data, the shared quantum key string and the quantum encryption algorithm are used to encrypt it, generate ciphertext data and store it for access by the data access party. Thus, by combining data filling with quantum encryption, the problem that short byte data is easily identified by association after encryption is solved, and the confidentiality of the data is ensured.

[0076] Based on the same concept of the present invention, the specification is attached Figure 5 As shown, the structure of an electronic device 500 provided in an embodiment of the present application includes: at least one processor 501, at least one network interface 504 or other user interface 503, a memory 505, and at least one communication bus 502. The communication bus 502 is used to realize the connection and communication between these components. The electronic device 500 optionally includes a user interface 503, including a display (for example, a touch screen, LCD, CRT, holographic imaging (Holographic) or projection (Projector), etc.), a keyboard or a pointing device (for example, a mouse, a trackball (trackball), a touch pad or a touch screen, etc.).

[0077] The memory 505 may include a read-only memory and a random access memory, and provides instructions and data to the processor 501. A portion of the memory 505 may also include a non-volatile random access memory (NVRAM).

[0078] In some implementations, the memory 505 stores the following elements, executable modules or data structures, or a subset thereof, or an extended set thereof:

[0079] Operating system 5051, including various system programs, used to implement various basic services and process hardware-based tasks;

[0080] The application module 5052 includes various application programs, such as a launcher, a media player, a browser, etc., which are used to implement various application services.

[0081] In an embodiment of the present application, by calling the program or instructions stored in the memory 505, the processor 501 is used to execute steps in a method for secure storage of financial data based on a quantum encryption algorithm, and can ensure the confidentiality of the data by combining data padding with quantum encryption.

[0082] The present application also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps in the method for secure storage of financial data based on a quantum encryption algorithm are executed.

[0083] Specifically, the storage medium can be a general storage medium, such as a mobile disk, a hard disk, etc. When the computer program on the storage medium is run, the above-mentioned financial data security storage method based on the quantum encryption algorithm can be executed.

[0084] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

[0085] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0086] In addition, each functional unit in the embodiments provided in the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0087] If the function is implemented in the form of a business function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0088] Finally, it should be noted that the above embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the aforementioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the aforementioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application. They should all be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A method for secure storage of financial data based on quantum encryption algorithm, characterized in that: The method comprises the following steps: Presetting a quantum encryption algorithm library, defining storage identifiers and data identifiers that are mapped to various quantum encryption algorithms in the quantum encryption algorithm library, and establishing a shared quantum key string between a data storage party and a data access party based on a quantum key distribution protocol; Acquire the financial data to be encrypted according to the financial data storage request sent by the data storage party, and determine whether the financial data to be encrypted is long byte data or short byte data according to the length of the financial data to be encrypted; If it is long-byte data, after the selected storage identifier is added to the header of the financial data to be encrypted, the data is encrypted using a shared quantum key string and a quantum encryption algorithm corresponding to the storage identifier to generate ciphertext data and store it for access by the data access party; If it is short byte data, first select a quantum encryption algorithm from the quantum encryption algorithm library to fill the financial data to be encrypted until the set storage length is reached to form pseudo financial data; then, after adding a data identifier corresponding to the quantum encryption algorithm to the header of the pseudo financial data, encrypt it using a shared quantum key string and the quantum encryption algorithm to generate ciphertext data and store it for access by the data access party.

2. According to claim 1, a method for secure storage of financial data based on quantum encryption algorithm is characterized in that: Providing access to the data by the data access party in the following manner, including the following steps: Acquire the financial data to be decrypted according to the financial data access request sent by the data access party, and decrypt the financial data to be decrypted using the shared quantum key string to obtain the decrypted financial data; Identify whether the header of the decrypted financial data is a storage identifier or a data identifier; If it is a storage identifier, after removing the storage identifier from the decrypted financial data, reverse decryption is performed using the quantum encryption algorithm corresponding to the storage identifier to obtain the original financial data; If it is a data identifier, after removing the data identifier from the decrypted financial data, the data identifier is reversely filled using the quantum encryption algorithm corresponding to the data identifier to obtain the original financial data.

3. According to claim 2, a method for secure storage of financial data based on quantum encryption algorithm is characterized in that: in, The quantum encryption algorithm includes one or more of a quantum key distribution encryption algorithm, a quantum hash encryption algorithm, and a quantum signature encryption algorithm.

4. According to claim 2, a method for secure storage of financial data based on quantum encryption algorithm, characterized in that: The method further comprises the following steps: Regularly verify the integrity of stored ciphertext data.

5. According to claim 4, a method for secure storage of financial data based on quantum encryption algorithm is characterized in that: The periodic integrity verification of the stored ciphertext data includes the following steps: Calculating a first hash value for each piece of ciphertext data using a selected hash function, and storing the calculated first hash value and an identifier corresponding to the ciphertext data in a hash table; wherein the ciphertext data and the hash table are stored separately; Recalculate the second hash value of each stored encrypted data according to the set verification cycle; The recalculated second hash value is compared with the first hash value stored in the hash table. If the two are consistent, the verification is successful; if the two are inconsistent, the verification fails.

6. According to claim 5, a method for secure storage of financial data based on quantum encryption algorithm is characterized in that: The method further comprises the following steps: The stored ciphertext data is backed up, and the ciphertext data that fails verification is restored using the backup.

7. According to claim 2, a method for secure storage of financial data based on quantum encryption algorithm, characterized in that: Before obtaining the financial data to be decrypted according to the financial data access request sent by the data access party, the following steps are also included: The data accessing party is authenticated to determine that it has the authorized financial data access request rights.

8. A financial data security storage device based on quantum encryption algorithm, characterized in that: The device comprises: An initialization module is used to preset a quantum encryption algorithm library, define storage identifiers and data identifiers that are mapped to various quantum encryption algorithms in the quantum encryption algorithm library, and establish a shared quantum key string between a data storage party and a data access party based on a quantum key distribution protocol; A length judgment module, used for obtaining the financial data to be encrypted according to the financial data storage request sent by the data storage party, and judging whether the financial data to be encrypted is long byte data or short byte data according to the length of the financial data to be encrypted; The encryption storage module is used for, if the data is long byte data, after the selected storage identifier is added to the header of the financial data to be encrypted, encrypting the data using a shared quantum key string and a quantum encryption algorithm corresponding to the storage identifier, generating ciphertext data and storing the data for access by the data access party; if the data is short byte data, first selecting a quantum encryption algorithm from the quantum encryption algorithm library to fill the financial data to be encrypted until the set storage length is reached to form pseudo financial data; and then after the data identifier corresponding to the quantum encryption algorithm is added to the header of the pseudo financial data, encrypting the data using a shared quantum key string and the quantum encryption algorithm, generating ciphertext data and storing the data for access by the data access party.

9. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor. When the electronic device is running, the processor and the memory communicate via the bus. When the machine-readable instructions are executed by the processor, the steps of the method for secure storage of financial data based on a quantum encryption algorithm as described in any one of claims 1 to 7 are performed.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed by a processor, executes the steps of the method for secure storage of financial data based on a quantum encryption algorithm as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Data transmission system and method

    CN102412967A

  • Data sharing method and system based on quantum encryption

    CN113609087A

  • Intelligent sharing financial platform and system based on Hash encryption algorithm and quantum key

    CN114491610A

  • Short byte message security encryption method based on quantum encryption

    CN115001758A

  • Financial data security management method and device, electronic equipment and storage medium

    CN116204903A