A data writing method, a data reading method and a system
By generating and storing data fingerprints in the software system, and using private salt values and calculation order for verification, the problem of data tampering that cannot be detected in existing technologies is solved, and real-time data integrity and security detection is achieved.
Patent Information
- Application Number
- CN202611388735.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-08
- Publication Date
- 2026-11-27
AI Technical Summary
Existing technologies cannot effectively detect data tampering without relying on database-side security mechanisms, resulting in weak data integrity and security.
Data fingerprints are generated in the software system and associated with business data in the database. The data integrity is ensured by verifying the data using the software system's built-in private salt value and the data fingerprint calculation order.
It enables real-time detection and proactive protection against data tampering, improving data integrity and security, and preventing tampering from being detected and blocked immediately when the data is first read.
Smart Images

Figure CN123179476A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of database management technology, specifically to a data writing method, a data reading method, and a system. Background Technology
[0002] In modern software systems, databases are critical components for storing core business data. Typically, legitimate data operations are performed through supporting software application systems (such as web servers and app backends), which implement security measures such as business logic verification and access control. However, in actual operation and attack scenarios, a common and high-risk security risk exists: attackers or high-privilege internal users may bypass the supporting software systems and directly add, delete, or modify data in the database using database client management tools (such as MySQL Workbench, Navicat, etc.) or by exploiting database vulnerabilities. This direct tampering is highly covert and destructive because it bypasses all application-layer security logic, potentially leading to business logic errors, financial losses, or the leakage of sensitive information.
[0003] To address the aforementioned risks, several database security protection solutions have been proposed in existing technologies: Solution 1: Database Access Control. This involves restricting the source and scope of database access through methods such as username and password authentication, IP address whitelisting, and hierarchical database account permissions. However, this solution cannot prevent malicious data tampering by individuals with legitimate database access credentials. Solution 2: Database Operation Auditing. This involves recording all CRUD operations on the database by enabling database audit logs or using a third-party database auditing system. However, this solution is a post-event traceability mechanism and cannot be detected by the business system immediately after data tampering; furthermore, the audit logs themselves are stored at the database or operating system level, and are also vulnerable to deletion or tampering by attackers. Solution 3: Database Field Encryption. This involves encrypting sensitive data fields to prevent plaintext data leakage. This solution can prevent plaintext data leakage, but if an attacker obtains the encryption key, they can still decrypt, tamper with the data, and re-encrypt it, making the tampering difficult to detect.
[0004] The three solutions described above share a common fundamental flaw: they place the security capabilities for data integrity verification within the same security boundary as the protected data itself—that is, within the database system. This allows attackers with high-privilege database credentials to simultaneously bypass, disable, or forge these security mechanisms while committing data tampering. Therefore, existing technologies cannot detect data tampering without relying on database-side security mechanisms, resulting in weak data integrity and security.
[0005] Therefore, there is an urgent need for a data writing method, a data reading method, and a system, which can independently and reliably verify data integrity without relying on the verification capability of the database side, so as to improve data integrity and security. Summary of the Invention
[0006] In view of this, it is necessary to provide a data writing method, a data reading method, and a system to solve the technical problem in the prior art that data tampering cannot be detected without relying on the security mechanism of the database side, resulting in weak data integrity and security.
[0007] To solve the above technical problems, in a first aspect, the present invention provides a data writing method applied to a software system supporting a database, and the method includes: Obtaining business data to be stored; Generating a data fingerprint of the business data based on predefined parameters, wherein the predefined parameters include business fields for generating the data fingerprint, a private salt built into the software system, and a data fingerprint calculation order; Storing the data fingerprint and the business data in the database in an associated manner.
[0008] In a possible implementation, the business fields include a name field and a date field.
[0009] In a possible implementation, the generating a data fingerprint of the business data based on predefined parameters includes: Concatenating the private salt and the business fields into an original string according to the data fingerprint calculation order, and performing a hash operation on the original string to obtain the data fingerprint.
[0010] In a possible implementation, the storing the data fingerprint and the business data in the database in an associated manner includes: Persistently storing the data fingerprint and the business data in the same data table in the database.
[0011] In a possible implementation, the persistently storing the data fingerprint and the business data in the same data table in the database includes: Storing the business data in the data table according to fields, adding a new column to the data table, and storing the data fingerprint in the new column.
[0012] In a possible implementation, before the generating a data fingerprint of the business data based on predefined parameters, the method further includes: Extracting the business fields from the business data based on a preset field extraction rule.
[0013] In a second aspect, the present invention further provides a data reading method applied to a software system paired with a database, the method comprising: in response to a data reading operation issued by a user to the software system, reading to-be-read data from the database and a data fingerprint corresponding to the to-be-read data; generating a data verification fingerprint based on predefined parameters and the to-be-read data, wherein the predefined parameters comprise a service field used for generating the data fingerprint, a private salt value built into the software system, and a data fingerprint calculation order; returning the to-be-read data when the data fingerprint is consistent with the data verification fingerprint; determining that the to-be-read data has been illegally tampered with when the data fingerprint is inconsistent with the data verification fingerprint.
[0014] In a possible implementation, when the data fingerprint is inconsistent with the data verification fingerprint, the method further comprises: triggering a security response mechanism; wherein the security response mechanism is at least one of alerting an administrator, recording a security log, refusing to execute subsequent service logic, and returning error information to the user.
[0015] In a third aspect, the present invention further provides a data writing system applied to a software system paired with a database, the data writing system comprising: a service data acquisition module configured to acquire to-be-stored service data; a data fingerprint generation module configured to generate a data fingerprint of the service data based on predefined parameters, wherein the predefined parameters comprise a service field used for generating the data fingerprint, a private salt value built into the software system, and a data fingerprint calculation order; a storage module configured to store the data fingerprint and the service data in the database in an associated manner.
[0016] In a fourth aspect, the present invention further provides a data reading system applied to a software system paired with a database, the data reading system comprising: a fingerprint reading module configured to, in response to a data reading operation issued by a user to the software system, read to-be-read data from the database and a data fingerprint corresponding to the to-be-read data; a verification fingerprint generation module configured to generate a data verification fingerprint based on predefined parameters and the to-be-read data, wherein the predefined parameters comprise a service field used for generating the data fingerprint, a private salt value built into the software system, and a data fingerprint calculation order; A verification module, configured to return or use the data to be read when the data fingerprint is consistent with the data verification fingerprint, and determine that the data to be read has been illegally tampered with when the data fingerprint is inconsistent with the data verification fingerprint.
[0017] The beneficial effects of the present invention are: according to the data writing method provided by the present invention, the private salt value used in the data fingerprint generation process and the data fingerprint calculation order are completely built in the software system supporting the database, and the database only serves as a passive storage container for the data fingerprint. Thus, the fingerprint generation capability is physically separated from the data storage layer. Even if an attacker obtains the highest authority of the database and directly tampers with the data, since the private salt value and calculation order required for generating a legal fingerprint only exist in the software system, the attacker cannot independently generate a legal fingerprint matching the tampered data on the database side, which establishes an unforgeable data foundation for subsequent integrity verification and improves data integrity and security. Description of the Drawings
[0018] To illustrate the technical solutions in the embodiments of the present invention more clearly, the drawings required for describing the embodiments are briefly introduced below. Apparently, the drawings in the following description are only some embodiments of the present invention, and those skilled in the art can obtain other drawings based on these drawings without creative efforts.
[0019] Figure 1 is a schematic flowchart of an embodiment of a data writing method provided by the present invention; Figure 2 is a schematic overall flowchart of a data reading method provided by the present invention; Figure 3 is a schematic structural diagram of an embodiment of a data writing system provided by the present invention; Figure 4 is a schematic structural diagram of an embodiment of a data reading system provided by the present invention. Detailed Embodiments
[0020] The technical solutions in the embodiments of the present invention will be described clearly and completely below with reference to the accompanying drawings in the embodiments of the present invention. Apparently, the described embodiments are only part of the embodiments of the present invention, rather than all of them. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts shall fall within the protection scope of the present invention.
[0021] It should be understood that the illustrative drawings are not drawn to scale. The flowcharts used in this invention illustrate operations implemented according to some embodiments of the invention. It should be understood that the operations in the flowcharts may be implemented out of order, and steps without logical contextual relationships may be reversed or performed simultaneously. Furthermore, those skilled in the art, guided by the content of this invention, may add one or more other operations to the flowcharts, or remove one or more operations from the flowcharts. Some block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities may be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor systems and / or microcontroller systems.
[0022] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of the invention. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a mutually exclusive, independent, or alternative embodiment. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0023] This invention provides a data writing method, a data reading method, and a system, which are described below.
[0024] Figure 1 A schematic flowchart of an embodiment of the data writing method provided by the present invention is shown below. Figure 1 As shown, the data writing methods include: S101. Obtain the business data to be stored.
[0025] The business data to be stored includes new data to be added to the database, or updated data to update existing data in the database.
[0026] Business data refers to the specific business content generated by the software system in response to user operations and that needs to be persisted to the database.
[0027] S102. Generate a data fingerprint of business data based on predefined parameters, wherein the predefined parameters include business fields used to generate the data fingerprint, private salt values built into the software system, and the data fingerprint calculation order.
[0028] In this context, "business fields" refers to one or more fields selected from business data and used to participate in data fingerprint calculation. Business fields are the core business attribute fields of the business data, such as the name and date fields in a user information table.
[0029] The private salt value refers to a fixed string built into the software system, which is combined with the value of the business field during the data fingerprint calculation process. Specifically, the private salt value is a non-public security parameter known only to the software system, which is used to prevent rainbow table attacks and external tools from forging data fingerprints.
[0030] The data fingerprint calculation order refers to the sequential arrangement rule built into the software system when concatenating business fields and private salt values, which at least includes the concatenation order of each business field, as well as the insertion position or concatenation position of the private salt value relative to the business fields.
[0031] In a specific embodiment of the present invention, step S102 is:[ According to the data fingerprint calculation order, the private salt value and business fields are concatenated into an original string, and a hash operation is performed on the original string to obtain the data fingerprint.
[0032] The hash algorithm used in the hash operation can be any existing hash algorithm, which will not be described in detail here.
[0033] By setting predefined parameters including business fields, private salt values built into the software system, and data fingerprint calculation order, the embodiments of the present invention make the generation of data fingerprints dependent on the unique private salt values and data fingerprint calculation order inside the software system. External tools cannot generate legal fingerprints because they cannot obtain the above parameters, thus ensuring the unforgeability and uniqueness of data fingerprints, and providing a reliable basis independent of the database storage layer for subsequent data integrity verification.
[0034] S103: Store the data fingerprint and business data in the database in an associated manner.
[0035] Compared with the prior art, the data writing method provided by the embodiment of the present invention completely builds the private salt value and data fingerprint calculation order used in the data fingerprint generation process into the software system supporting the database, and the database only serves as a passive storage container for data fingerprints. As a result, the fingerprint generation capability is physically separated from the data storage layer. Even if an attacker obtains the highest privilege of the database and directly tampers with the data, since the private salt value and calculation order required to generate a legal fingerprint only exist in the software system, the attacker cannot independently generate a legal fingerprint matching the tampered data on the database side, which establishes an unforgeable data basis for subsequent integrity verification and improves data integrity and security.
[0036] In some embodiments of the present invention, step S103 is: Store the business data in the data table by field, add a new column in the data table, and store the data fingerprint in the new column.
[0037] For example, the database contains a user information table (user_info), whose original fields include "User ID" (user_id), "Name" (user_name), and "Registration Date" (reg_date). In this embodiment, when the software system obtains a piece of business data to be stored (e.g., user ID is 1001, name is "Zhang San", registration date is "2026-08-25"), it first executes step S101 to obtain this business data, and then executes step S102 to generate the corresponding data fingerprint based on "Name" and "Registration Date" as business fields participating in fingerprint calculation, combined with the private salt value built into the software system and the data fingerprint calculation order (e.g., "private salt value + name + date"). In step S103, the software system performs a database write operation: the values of each field of the business data (user_id=1001, user_name="Zhang San", reg_date="2026-08-25") are stored in the corresponding field columns of the user_info table. At the same time, a new column hash_value is added to the user_info table, and the data fingerprint calculated in step S102 is stored in the corresponding record of the newly added column.
[0038] It should be noted that the data type of the newly added column matches the format of the data fingerprint.
[0039] This invention stores data fingerprints in ordinary data columns of a database. The association between the fingerprint and business data is actively established by the software system during write operations, without relying on database foreign key constraints, triggers, or stored procedures. When the software system subsequently reads this record, it only needs to extract the business field value and the hash_value column value from the row of data to recalculate the fingerprint and perform comparison verification. This storage method ensures that the binding relationship between the fingerprint and business data is entirely controlled by the application layer. The database acts only as a passive storage medium. Even if the database's own security mechanisms are bypassed or disabled by attackers, the fingerprint data remains in the data table and will not be lost when audit logs are deleted. This provides a reliable data foundation for integrity verification that is independent of the database's native security system.
[0040] Since the business field is the core business attribute field of the business data, in some embodiments of the present invention, before step S102, the following steps are also included: Extract business fields from business data based on preset field extraction rules.
[0041] Specifically, the preset field extraction rules are predefined field filtering logics built into the software system, used to determine one or more target fields that participate in data fingerprint calculation from complete business data.
[0042] By predefining field extraction rules, the embodiment of the present invention can flexibly configure the business fields involved in fingerprint calculation, avoid interference from non-core fields or frequently changed fields on fingerprint stability, and improve the adaptability and maintainability of the fingerprint generation mechanism.
[0043] Correspondingly, the embodiment of the present invention further provides a data reading method, which is applied to a software system supporting a database, as shown in Figure 2 , the data reading process includes: S201: In response to a data reading operation initiated by a user to the software system, read the data to be read from the database and the data fingerprint corresponding to the data to be read.
[0044] The data reading operation may carry query conditions or a data identifier, based on which the data to be read in the database can be determined, and the data fingerprint can be read according to the association relationship between the data fingerprint and the data to be read.
[0045] S202: Generate a data verification fingerprint based on predefined parameters and the data to be read. The predefined parameters include the business fields used for generating the data fingerprint, a private salt built into the software system, and the data fingerprint calculation order.
[0046] Specifically, according to the data fingerprint calculation order, the private salt and the business fields of the data to be read are concatenated into a string, and a hash operation is performed on the string to obtain the data verification fingerprint.
[0047] S203: Return the data to be read when the data fingerprint is consistent with the data verification fingerprint.
[0048] When the data fingerprint is consistent with the data verification fingerprint, it indicates that the data to be read has not been tampered with.
[0049] S204: Determine that the data to be read has been illegally tampered with when the data fingerprint is inconsistent with the data verification fingerprint.
[0050] The data reading method provided in this invention simultaneously retrieves the data to be read and its corresponding data fingerprint from the database in response to the user's read operation. It then generates a data verification fingerprint in real time using predefined parameters identical to those used in the data writing stage. When the stored fingerprint matches the real-time calculated verification fingerprint, the data is deemed complete and the business data is returned normally. If they do not match, the data is immediately determined to have been illegally tampered with. This embeds integrity verification into the business data read and consumption lifecycle, ensuring that any attempt to tamper with data directly on the database side, bypassing the supporting software system, will be detected immediately when the tampered data is first read by legitimate business operations due to fingerprint comparison failure. Compared to the post-audit mechanism in existing technologies, this method achieves real-time detection and proactive blocking of tampering behavior before business consumption, effectively preventing tampered and untrusted data from entering subsequent business processes and significantly improving data integrity and business security.
[0051] In some embodiments of the present invention, when the data fingerprint and the data verification fingerprint are inconsistent, the method further includes: Trigger the security response mechanism; The security response mechanism includes at least one of the following: alerting the administrator, logging security information, refusing to execute subsequent business logic, and returning an error message to the user.
[0052] This invention, through a security response mechanism that triggers at least one of alarms, log recording, business interruption, and error return when the data fingerprint and data verification fingerprint are inconsistent, can prevent untrusted data from entering subsequent business processes the moment it is confirmed as illegally tampered. This cuts off the impact of tampered data on the business system at the source. At the same time, it provides security managers with immediate intrusion detection and tracing evidence through real-time alarms and log recording. Compared with the passive defense mode of the prior art that only relies on post-event audit logs, this invention achieves real-time detection and proactive response to tampering behavior, effectively improving the timeliness of security protection and risk handling capabilities of the software system.
[0053] The data writing method and data reading method proposed in this invention have the following beneficial effects: 1. Proactive Real-Time Detection, Shifting from Passive Auditing to Active Verification: Unlike existing database auditing solutions that rely on post-event tracing mechanisms, this invention integrates data integrity verification into the data reading lifecycle of the software system. Any unauthorized tampering that bypasses the software system, regardless of when it occurs, will be detected immediately when the tampered data is first read by legitimate business operations. The verification timing is shifted from after tampering occurs to before the tampered data is consumed, enabling the business system to trigger alarms or block untrusted data before it enters the business process, significantly shortening the detection and response time window for data security incidents.
[0054] 2. Difficult to Bypass: Private Algorithms Construct an Unforgeable Security Barrier: This invention does not rely on database-side access control, audit logs, or encryption mechanisms. Instead, it fully integrates the generation and verification capabilities of data fingerprints into the software system. The private salt value required for fingerprint generation and the data fingerprint calculation order exist only in the software system's code or configuration, completely invisible to the outside world. Even if an attacker gains the highest administrative privileges of the database through vulnerability exploitation or internal privileges and directly performs CRUD operations on the data tables, they cannot calculate a legitimate fingerprint matching the tampered data because they cannot know the specific content of the private salt value, the set of business fields involved in the fingerprint calculation, or the order in which the fields are concatenated. Even if an attacker simultaneously tampers with both business data and fingerprint fields, the forged fingerprint they write will inevitably be inconsistent with the result calculated in real time by the accompanying software system based on the private algorithm. This fundamentally eliminates the possibility of attackers forging legitimate fingerprints through database-side operations, achieving physical decoupling between security protection capabilities and data storage media.
[0055] 3. Fine-grained, precisely locating each tampered record: This invention generates a data fingerprint for each independent record in the database, corresponding one-to-one with its business data, and stores the fingerprint and business data record in the same data row. This fingerprint binding mechanism allows the software system to perform independent fingerprint verification for each record when performing batch data queries or loading data record by record, precisely locating which specific record has been tampered with and which field has undergone abnormal changes. Compared to existing technologies that only provide overall database operation logs or table-level change tracking, this invention provides security managers with more accurate tamper location information, effectively reducing the cost of investigating and tracing security incidents.
[0056] 4. Excellent Compatibility: This invention is entirely application-layer based. Data fingerprint generation, storage, and verification are all completed within the accompanying software system. The database serves only as a passive storage medium for business data and fingerprint data. No modifications to the database kernel are required, and it does not rely on database triggers, stored procedures, auditing plugins, encryption functions, or any proprietary features of commercial versions. It can be seamlessly adapted to any relational or non-relational database that supports standard SQL read / write operations. For existing business systems, simply adding a fingerprint storage column to the existing data table and embedding fingerprint generation and verification code into the data write and read logic of the accompanying software system completes the transformation and deployment. The implementation cost is low, the risk is controllable, and it possesses good engineering feasibility and promotional value.
[0057] 5. Deterrent effect to curb unauthorized tampering intentions at the source: The tamper-proof detection mechanism constructed by the present invention exerts a strong technical deterrent on potential attackers or internal violating operators. Since any tampering behavior that directly manipulates the database cannot obtain the private salt value and calculation order unique to the supporting software system, the tamperer cannot cover up its operation traces at the data level. The existence of this mechanism itself effectively raises the technical threshold and detection probability of unauthorized tampering behaviors, prompting potential attackers to bear extremely high exposure risks before implementing data tampering, reducing the possibility of internal data violating operations from the source, and has significant security governance value.
[0058] On the other hand, the embodiment of the present invention further provides a data writing system, applied to a software system supporting a database, as Figure 3 shown, the data writing system 300 includes: a service data acquisition module 301, configured to acquire service data to be stored; a data fingerprint generation module 302, configured to generate a data fingerprint of the service data based on predefined parameters, wherein the predefined parameters include service fields for generating the data fingerprint, a private salt value built into the software system, and a data fingerprint calculation order; a storage module 303, configured to store the data fingerprint and the service data in an associated manner into the database.
[0059] The data writing system 300 provided in the above embodiment can implement the technical solutions described in the above data writing method embodiments. For the specific implementation principles of the above modules or units, reference may be made to the corresponding content in the above data writing method embodiments, and details are not described herein again.
[0060] On the other hand, the embodiment of the present invention further provides a data reading system, applied to a software system supporting a database, as Figure 4 shown, the data reading system 400 includes: a fingerprint reading module 401, configured to respond to a data reading operation initiated by a user to the software system, and read data to be read and a data fingerprint corresponding to the data to be read from the database; a verification fingerprint generation module 402, configured to generate a data verification fingerprint based on predefined parameters and the data to be read, wherein the predefined parameters include service fields for generating the data fingerprint, a private salt value built into the software system, and a data fingerprint calculation order; a verification module 403, configured to return or use the data to be read when the data fingerprint is consistent with the data verification fingerprint; and determine that the data to be read has been illegally tampered with when the data fingerprint is inconsistent with the data verification fingerprint.
[0061] The data reading system 400 provided in the above embodiments can implement the technical solutions described in the above data reading method embodiments. The specific implementation principles of each module or unit can be found in the corresponding content in the above data writing method embodiments, and will not be repeated here.
[0062] The above provides a detailed description of the data writing method, data reading method, and system provided by the present invention. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.
Claims
1. A data writing method, characterized in that, Applied to a software system supporting a database, the method includes: Obtaining business data to be stored; Generating a data fingerprint of the business data based on predefined parameters, wherein the predefined parameters include business fields for generating the data fingerprint, a private salt built into the software system, and a data fingerprint calculation order; Storing the data fingerprint and the business data in the database in association with each other.
2. The data writing method according to claim 1, characterized in that, The business fields include a name field and a date field.
3. The data writing method according to claim 1, characterized in that, The generating a data fingerprint of the business data based on predefined parameters includes: Concatenating the private salt and the business fields into an original string according to the data fingerprint calculation order, and performing a hash operation on the original string to obtain the data fingerprint.
4. The data writing method according to claim 1, characterized in that, The storing the data fingerprint and the business data in the database in association with each other includes: Persistently storing the data fingerprint and the business data in the same data table in the database.
5. The data writing method according to claim 4, characterized in that, The persistently storing the data fingerprint and the business data in the same data table in the database includes: Storing the business data in the data table according to fields, adding a new column to the data table, and storing the data fingerprint in the new column.
6. The data writing method according to claim 1, characterized in that, Before the generating a data fingerprint of the business data based on predefined parameters, the method further includes: Extracting the business fields from the business data based on a preset field extraction rule.
7. A data reading method, characterized in that, Applied to a software system supporting a database, the method includes: In response to a data reading operation issued by a user to the software system, reading to-be-read data from the database and a data fingerprint corresponding to the to-be-read data; Generating a data verification fingerprint based on predefined parameters and the to-be-read data, wherein the predefined parameters include business fields for generating the data fingerprint, a private salt built into the software system, and a data fingerprint calculation order; Returning the to-be-read data when the data fingerprint is consistent with the data verification fingerprint; Determining that the to-be-read data has been illegally tampered with when the data fingerprint is inconsistent with the data verification fingerprint.
8. The data reading method according to claim 7, characterized in that, When the data fingerprint is inconsistent with the data verification fingerprint, the method further includes: Triggering a security response mechanism; The security response mechanism is at least one of alerting an administrator, recording a security log, refusing to execute subsequent business logic, and returning an error message to the user.
9. A data writing system, characterized in that, Applied to a software system supporting a database, the data writing system includes: A business data obtaining module, configured to obtain business data to be stored; A data fingerprint generation module, configured to generate a data fingerprint of the business data based on predefined parameters, wherein the predefined parameters include business fields for generating the data fingerprint, a private salt built into the software system, and a data fingerprint calculation order; A storage module, configured to store the data fingerprint and the business data in the database in association with each other.
10. A data reading system, characterized in that, Applied to a software system supporting a database, the data reading system includes: The fingerprint reading module is used to respond to the data reading operation sent by the user to the software system, and to read the data to be read and the data fingerprint corresponding to the data to be read from the database. The verification fingerprint generation module is used to generate a data verification fingerprint based on predefined parameters and the data to be read. The predefined parameters include business fields used to generate the data fingerprint, a private salt value built into the software system, and the data fingerprint calculation order. The verification module is used to return or use the data to be read when the data fingerprint and the data verification fingerprint are consistent; and to determine that the data to be read has been illegally tampered with when the data fingerprint and the data verification fingerprint are inconsistent.
