Date data encryption storage method and system and electronic equipment

By obtaining the difference between the date data and the preset date data and generating multi-layered encrypted data using random encrypted data, the problem of software license expiration date data being easily cracked is solved, achieving effective data hiding and confidentiality, and enhancing data security.

CN120850255APending Publication Date: 2025-10-28WING TECH(SUZHOU) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510761855.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-09
Publication Date
2025-10-28

AI Technical Summary

Technical Problem

Existing technologies are vulnerable to cracking when storing software license expiration date data, especially since plaintext storage of txt and ini files and DES key standard encryption methods are difficult to balance between ease of use and security.

Method used

By obtaining the difference between the date data to be encrypted and the preset date data, and combining it with random encrypted data, the encrypted text is written in single-precision floating-point form to generate multi-layered encrypted data, including first encrypted data, second encrypted data and third encrypted data, increasing the difficulty of cracking.

Benefits of technology

It achieves an effective hiding and confidentiality mechanism for date data, increases the difficulty of parsing, and only slightly increases the complexity and amount of code, which is easy to accept. Compared with storing binary plaintext, it further enhances the security of data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120850255A_ABST
    Figure CN120850255A_ABST
Patent Text Reader

Abstract

The invention discloses an encrypted storage method and system for date data and electronic equipment. The encryption storage method comprises the following steps: acquiring date data to be encrypted; obtaining first to-be-encrypted data based on a difference value between the date data and preset date data; obtaining random encrypted data, obtaining second to-be-encrypted data based on the sum of the random encrypted data and the first to-be-encrypted data, writing the second to-be-encrypted data and the random encrypted data into the encrypted text in the form of a single-precision floating-point number, and obtaining the first encrypted data and the second encrypted data; and based on the sum of the first encrypted data and the second encrypted data, performing conversion to obtain third to-be-encrypted data, and writing the third to-be-encrypted data into the encrypted text in the form of a single-precision floating-point number to obtain third encrypted data. Compared with the prior art, the method has the advantages that an effective hidden secrecy mechanism of the date data is really realized, and meanwhile, the use complexity and the code quantity are slightly increased, so that the method is easy to accept.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to a method, system, and electronic device for encrypting and storing date data, belonging to the field of information encryption. Background Technology

[0002] In the field of software distribution and licensing management, providing free trial versions for a certain period or authorizing a copy to be valid for a specific time are common software copyright control models. Among these, critical licensing data, such as the expiration date of the software's legal usability, requires special methods to store and retrieve to prevent the imposed restrictions from being easily circumvented.

[0003] In practice, the methods for saving date authorization data and their corresponding drawbacks are mainly as follows:

[0004] Save it in plaintext in a txt file. This is the most primitive, simplest, and most direct method, which is to directly output the key date data to a txt text file. Although this method is extremely easy to crack, it is also extremely convenient, so even today, many developers still use this method to save non-sensitive authorization data, especially login account passwords for many industrial software programs.

[0005] Saved in plaintext in an INI file. This method references the way software settings configuration data is saved as an INI file, and also saves the authorization data in the configuration file. It's essentially the same as saving in plaintext as a TXT file; it's simple to use, but extremely easy to crack.

[0006] Storing plaintext data fragments in binary files prevents critical date data from being directly opened and displayed, achieving a degree of concealment. However, by browsing and translating the ASCII code of the original data using binary data editing software, and adding or deleting only a few bits if necessary, the date data can be re-parsed and translated back into text.

[0007] Use symmetric key standards such as DES to encrypt date data. The use of DES keys allows the actual data content to be hidden within the stored data. However, the internal implementation mechanism of the key algorithm and its external invocation are both complex. Moreover, as a public standard, DES keys can be cracked in a short time using specific hardware.

[0008] These methods are either simple and easy to use but don't actually encrypt data—they simply replace or rearrange the original date data word by word; or they are complex enough but have become standardized encryption methods. Software developers can easily choose between these two extremes because there aren't many readily available methods that strike a good balance between ease of encryption and effectiveness. Summary of the Invention

[0009] To address the aforementioned technical problems, this invention provides an encrypted storage method for date data, which effectively hides and protects the date data. Furthermore, it only slightly increases the complexity and amount of code required, making it easily acceptable.

[0010] The technical solution of the present invention is:

[0011] A method for encrypted storage of date data, comprising:

[0012] Retrieve the date data to be encrypted;

[0013] Based on the difference between the date data and the preset date data, the first data to be encrypted is obtained;

[0014] Obtain random encrypted data, and based on the sum of the random encrypted data and the first data to be encrypted, obtain the second data to be encrypted. Write the second data to be encrypted and the random encrypted data into the encrypted text in the form of single-precision floating-point numbers, and obtain the first encrypted data corresponding to the second data to be encrypted and the second encrypted data corresponding to the random encrypted data.

[0015] Based on the sum of the first encrypted data and the second encrypted data, the third data to be encrypted is calculated, and the third data to be encrypted is written into the encrypted text in the form of a single-precision floating-point number to obtain the third encrypted data corresponding to the third data to be encrypted.

[0016] As a further improvement of the present invention, obtaining the first data to be encrypted based on the difference between the date data and the preset date data includes: configuring preset parameters containing the preset date data, and after obtaining the first data to be encrypted, writing the first data to be encrypted into the encrypted text in the form of a single-precision floating-point number to obtain initial encrypted data, wherein the initial encrypted data may be selectively overwritten by the first encrypted data.

[0017] As a further improvement of the present invention, the preset parameters also include at least one preset additional data. Based on the additional data or the sum of the random encrypted data and the additional data, additional data to be encrypted is obtained. The additional data to be encrypted is written into the encrypted text in the form of a single-precision floating-point number to obtain additional encrypted data.

[0018] As a further improvement of the present invention, the encrypted text is binary encrypted text, and the second data to be encrypted, the random encrypted data, and the third data to be encrypted are all written into the binary encrypted text in the form of a 32-bit float single-precision floating-point number.

[0019] As a further improvement of the present invention, the method of converting the third data to be encrypted based on the sum of the first encrypted data and the second encrypted data includes: summing each byte of the first encrypted data and the second encrypted data, and converting the summation result into decimal to obtain the third data to be encrypted.

[0020] As a further improvement of the present invention, obtaining random encrypted data includes: while obtaining the date data to be encrypted, accessing and intercepting the millisecond value of the current system object, and using the intercepted millisecond value as the random encrypted data.

[0021] As a further improvement of the present invention, obtaining random encrypted data includes: constructing a random model based on the Random function, accessing and obtaining the random value generated by the random model, and using the random value as the random encrypted data.

[0022] This invention also provides an encrypted storage system for date data, which truly achieves an effective mechanism for hiding and protecting date data. At the same time, it only slightly increases the complexity of use and the amount of code, making it easily acceptable.

[0023] The technical solution of the present invention is:

[0024] A date data encryption storage system, used to implement the aforementioned date data encryption storage method, characterized in that it includes:

[0025] The information acquisition module is used to acquire the date data to be encrypted and the randomly encrypted data;

[0026] An encryption module is used to obtain first data to be encrypted based on the difference between the date data and the preset date data, and to obtain second data to be encrypted based on the sum of the random encrypted data and the first data to be encrypted. The second data to be encrypted and the random encrypted data are written into the encrypted text in the form of single-precision floating-point numbers, and a first encrypted data corresponding to the second data to be encrypted and a second encrypted data corresponding to the random encrypted data are obtained.

[0027] The encryption module is also configured to calculate a third data to be encrypted based on the sum of the first encrypted data and the second encrypted data, and write the third data to be encrypted into the encrypted text in the form of a single-precision floating-point number to obtain the third encrypted data corresponding to the third data to be encrypted.

[0028] The present invention also provides an electronic device comprising:

[0029] One or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions that, when executed by the device, cause the device to perform the steps of the aforementioned encrypted storage method for date data.

[0030] The present invention also provides a computer-readable storage medium storing a computer program that, when run on a computer, causes the computer to perform the steps of the aforementioned encrypted storage method for date data.

[0031] The beneficial technical effects of this invention are as follows: The encrypted storage method for date data of this invention obtains the date data to be encrypted and, based on the difference between the date data and preset date data, obtains the first data to be encrypted; obtains random encrypted data and, based on the sum of the random encrypted data and the first data to be encrypted, obtains the second data to be encrypted; writes the second data to be encrypted and the random encrypted data into an encrypted text file in the form of single-precision floating-point numbers, obtaining the first encrypted data corresponding to the second data to be encrypted and the second encrypted data corresponding to the random encrypted data; based on the sum of the first and second encrypted data, a third data to be encrypted is calculated and written into the encrypted text file in the form of single-precision floating-point numbers, obtaining the third encrypted data corresponding to the third data to be encrypted. Thus, by encrypting the date using the first, second, and third encrypted data, compared to the plaintext storage method in txt / ini files, a truly effective hiding and confidentiality mechanism for date data is achieved. At the same time, the increase in complexity and code size is only slight, making it easily acceptable. Compared to binary plaintext storage, in addition to basic date data hiding performance, the data is also rearranged in order, further increasing the difficulty of parsing. In terms of complexity and code volume, the two methods are roughly equivalent. Compared to symmetric-key encryption methods, they do not require calling or relying on external DLL files or standards, making them relatively transparent and simple to use. Although the encryption complexity is far less than that of symmetric-key encryption methods, it is sufficient to meet the confidentiality requirements in most applications. Attached Figure Description

[0032] Figure 1 This is a structural block diagram of a date data encryption storage system conforming to a preferred embodiment of the present invention.

[0033] Figure 2 It is not applied Figure 1 The diagram shows the result of an embodiment of the encrypted storage system for date data.

[0034] Figure 3 It is an application Figure 1 The diagram shows the result of writing date data and the difference between the preset date in an embodiment of the encrypted storage system for date data.

[0035] Figure 4 It is an application Figure 1 The diagram shows the result of writing the second data to be encrypted in an embodiment of the encrypted storage system for date data.

[0036] Figure 5 It is an application Figure 1 The diagram shows the result of writing random encrypted data in an embodiment of the encrypted storage system for date data.

[0037] Figure 6 It is an application Figure 1 The diagram shows the result of an embodiment two of the encrypted storage system for date data.

[0038] Figure 7 It is an application Figure 1 The diagram shows the result of adjusting the order of the first encrypted data, the second encrypted data, and the third encrypted data in Embodiment 2 of the encrypted storage system for date data.

[0039] Figure 8 It is an application Figure 1 The diagram shows the result of adding additional encrypted data to the second embodiment of the encrypted storage system for date data.

[0040] Figure 9 This is a flowchart of a method for encrypting and storing date data according to a preferred embodiment of the present invention. Detailed Implementation

[0041] In order to better understand the technical means of the present invention and to implement it in accordance with the contents of the specification, the specific embodiments of the present invention will be further described in detail below with reference to the accompanying drawings and examples. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.

[0042] Please see Figure 1 As shown, this invention provides an encrypted storage system 100 for date data, including an information acquisition module 1 and an encryption module 2. The information acquisition module 1 is used to acquire the date data to be encrypted and randomly encrypted data. Typically, the date data is the information to be encrypted, specifically the start time of the free trial period given to the user after activation when a free trial version is offered for a certain period. The randomly encrypted data is an additional variable used to change this start time, increasing the difficulty of decryption and providing a certain level of protection for the encrypted date data.

[0043] Preferably, the random encrypted data can be system parameters captured by the information acquisition module 1 at the time of activation, such as obtaining a random number between 0 and 999 by capturing the millisecond value of the system object Now.Millisecond(). Alternatively, a Random model can be established, which is a pseudo-random model, and a random value within the Random model can be captured by the information acquisition module 1. Of course, other information can also be captured as random encrypted data, as long as the data source is random and does not contain any pattern.

[0044] The encryption module 2 is used to obtain a first data to be encrypted based on the difference between the date data and the preset date data, and to obtain a second data to be encrypted based on the sum of the random encrypted data and the first data to be encrypted. The second data to be encrypted and the random encrypted data are written into the encrypted text in the form of single-precision floating-point numbers, and a first encrypted data corresponding to the second data to be encrypted and a second encrypted data corresponding to the random encrypted data are obtained.

[0045] The encryption module 2 is further configured to calculate the third data to be encrypted based on the sum of the first encrypted data and the second encrypted data, and write the third data to be encrypted into the encrypted text in the form of a single-precision floating-point number to obtain the third encrypted data corresponding to the third data to be encrypted.

[0046] Specifically, the encryption module 2 can be divided into the following steps:

[0047] First, the initial encrypted data is obtained by calculating the difference between the date data and the total number of days from the system's electronic timestamp start date (January 1, 1970). This encrypted data is then written into a binary file as a 32-bit float single-precision floating-point number, instead of writing characters as ASCII characters of the String type. This ensures that no existing file editing software can directly parse the float type date value, thus achieving the first layer of numerical hiding for sensitive data.

[0048] Second: The randomly encrypted data is added to the total number of days from the first step, and then the accumulated day value is written into a binary file as a 32-bit float, resulting in the first encrypted data. Simultaneously, the random value is also written into the binary file as a float, resulting in the second encrypted data, which is placed in the second 32-bit space immediately following the day value. This inserts a real random value into the stored data of the target date, achieving obfuscation. Even if a cracker accidentally attempts to parse the 32-bit date data segment as a float, they will obtain a random value. This achieves the second layer of numerical hiding for sensitive data. Of course, in this step, the first encrypted data can be used to overwrite the initial encrypted data obtained in the first step. In this case, the binary file only contains the first and second encrypted data, further increasing the data complexity and thus increasing the difficulty of decryption.

[0049] Third: After the 32-bit date data segment and the 32-bit millisecond random value, a 64-bit (8 bytes) sum of byte values ​​is generated and written to the binary file as a float number, resulting in the third encrypted data, used for verifying all data. This ensures the integrity of all data and prevents attackers from brute-forcing data modifications to deduce the encryption algorithm.

[0050] Example 1: Please refer to Figures 2 to 5 As shown, the example is to save the critical date May 19, 2025 into the expire.bin file.

[0051] If you simply use the method of saving the binary file in plaintext, the eight characters "20250519" will be saved as ASCII characters in the file expire.bin. Viewing this file with binary data editing software will display it as follows: Figure 2 The information shown demonstrates that binary plaintext dates can be automatically parsed by software.

[0052] In the first step of the method of this invention, the total difference in days between the target date and the system's electronic timestamp start date (January 1, 1970), i.e., 20227, is written into the binary file expire.bin as a 32-bit float single-precision floating-point number. Then, browsing this file with binary data editing software will display... Figure 3 The information shown.

[0053] Following the second step of this invention, extract the millisecond value of a system object Now.Millisecond(), for example, 638. Add this value to the total number of days from the previous step, resulting in a total of 20227 + 638 = 20865 days. Then, write both the values ​​20865 and 638 into the binary file expire.bin as 32-bit float single-precision floating-point numbers. Browse this file using binary data editing software; it will then display as shown below. Figure 4 The information shown.

[0054] Finally, sum the above 8 bytes of hexadecimal numbers: 0 + 2 + A3 + 46 + 0 + 80 + 1F + 44 = 01CE, which is converted to decimal 462. Then, write 462 as a 32-bit float single-precision floating-point number into the binary file expire.bin. Browse this file with binary data editing software, and you will see the following display... Figure 5 The information shown.

[0055] After the above operations, a piece of date data is randomly converted into a binary encrypted file, and the data integrity can be verified and it can be identified whether it has been tampered with.

[0056] Example 2: Please refer to Figures 6-8 As shown. If the starting point of the day difference is changed from the system's electronic timestamp to a specific date, such as January 1, 2000, then the difference in the total number of days from May 19, 2025, is 9270. If the random value for milliseconds remains 638, then the original data in the expire.bin file generated by the algorithm is... Figure 6 As shown, the format and generation method of the above data remain basically unchanged.

[0057] Instead of using the true random value generated from the system time in milliseconds, we replaced it with a pseudo-random number generated using a Random object. Although Random, as a pseudo-random number generator, is theoretically less faithful to the true randomness of the example method, it is sufficient for this purpose. Similarly, the basic data format remains the same as in the example.

[0058] You can also rearrange the order of the date, random number, and checksum segments. For example, placing the checksum segment in the first 32 bits of the binary file will result in the original data of the generated file in the example. Figure 7 As shown. In this way, placing the checksum at the beginning of the data will also increase the difficulty of manually deciphering and analyzing the data format to some extent.

[0059] like Figure 8As shown, more custom values ​​for 32-bit segments can be added to enhance the complexity of the data structure or implement certain functionalities. For example, software licensing mechanisms often require verification of the license serial number of the copy. Taking the serial number 123456 (less than 6 digits) as an example, adding the random value 638 to it equals 124094. 124094 is also written to the binary file as a 32-bit float single-precision floating-point number, placed between the total number of days and the random value. Next, the random value and checksum segment are written.

[0060] Please see Figure 9 As shown, the present invention also discloses a method for encrypting and storing date data, comprising:

[0061] Retrieve the date data to be encrypted;

[0062] Based on the difference between the date data and the preset date data, the first data to be encrypted is obtained;

[0063] A random encrypted data is obtained, and based on the sum of the random encrypted data and the first data to be encrypted, a second data to be encrypted is obtained. The second data to be encrypted and the random encrypted data are written into an encrypted text in the form of single-precision floating-point numbers, resulting in a first encrypted data corresponding to the second data to be encrypted and a second encrypted data corresponding to the random encrypted data. Obtaining the random encrypted data includes: simultaneously obtaining the date data to be encrypted, accessing and extracting the millisecond value of the current system object, and using the extracted millisecond value as the random encrypted data. Alternatively, obtaining the random encrypted data includes: constructing a random model based on the Random function, accessing and obtaining the random value generated by the random model, and using the random value as the random encrypted data.

[0064] Based on the sum of the first encrypted data and the second encrypted data, a third data to be encrypted is obtained, and the third data to be encrypted is written into the encrypted text in the form of a single-precision floating-point number to obtain the third encrypted data corresponding to the third data to be encrypted. Specifically, obtaining the third data to be encrypted based on the sum of the first encrypted data and the second encrypted data includes: summing each byte of the first encrypted data and the second encrypted data, and converting the sum to decimal to obtain the third data to be encrypted.

[0065] Preferably, the encrypted text is binary encrypted text, and the second data to be encrypted, the random encrypted data, and the third data to be encrypted are all written into the binary encrypted text in the form of 32-bit float single-precision floating-point numbers.

[0066] In this way, by obtaining the date data to be encrypted and calculating the difference between the date data and a preset date data, the first data to be encrypted is obtained. Random encrypted data is obtained, and the sum of the random encrypted data and the first data to be encrypted is obtained, resulting in the second data to be encrypted. The second data to be encrypted and the random encrypted data are written into an encrypted text file as single-precision floating-point numbers, yielding the first encrypted data corresponding to the second data to be encrypted, and the second encrypted data corresponding to the random encrypted data. Based on the sum of the first and second encrypted data, the third data to be encrypted is calculated and written into the encrypted text file as a single-precision floating-point number, yielding the third encrypted data corresponding to the third data to be encrypted. Thus, by encrypting the date using the first, second, and third encrypted data, compared to the plaintext method of saving in txt / ini files, a truly effective mechanism for hiding and protecting date data is achieved. At the same time, the increase in complexity and code size is only slight, making it easily acceptable. Compared to binary plaintext storage, in addition to basic date data hiding performance, the data is also shuffled, further increasing the parsing difficulty. However, in terms of complexity and code size, the two methods are roughly equivalent. Compared to symmetric-key encryption methods, it does not require calling or relying on external DLL files or standards, making it relatively transparent and simple to use. Although its encryption complexity is far less than that of symmetric-key encryption methods, it is sufficient to meet the confidentiality requirements in most applications.

[0067] Furthermore, obtaining the first data to be encrypted based on the difference between the date data and the preset date data includes: configuring preset parameters containing the preset date data, and after obtaining the first data to be encrypted, writing the first data to be encrypted into the encrypted text in the form of a single-precision floating-point number to obtain initial encrypted data, wherein the initial encrypted data may be selectively overwritten by the first encrypted data.

[0068] The preset parameters also include at least one preset additional data. Based on the additional data or the sum of the random encrypted data and the additional data, additional data to be encrypted is obtained. The additional data to be encrypted is written into the encrypted text in the form of a single-precision floating-point number to obtain additional encrypted data. In this way, the complexity of the content within the encrypted text can be increased, and a certain degree of misleading can be added.

[0069] The present invention also discloses an electronic device, comprising: one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions that, when executed by the device, cause the device to perform the steps of the aforementioned encrypted storage method for date data.

[0070] The present invention also discloses a computer-readable storage medium storing a computer program that, when run on a computer, causes the computer to perform the steps of the aforementioned encrypted storage method for date data.

[0071] In summary, the date data encryption storage method, system, and electronic device of the present invention obtains the date data to be encrypted and, based on the difference between the date data and preset date data, obtains the first data to be encrypted; obtains random encrypted data and, based on the sum of the random encrypted data and the first data to be encrypted, obtains the second data to be encrypted; writes the second data to be encrypted and the random encrypted data into an encrypted text file in the form of single-precision floating-point numbers, thus obtaining the first encrypted data corresponding to the second data to be encrypted and the second encrypted data corresponding to the random encrypted data; based on the sum of the first and second encrypted data, a third data to be encrypted is calculated and written into the encrypted text file in the form of single-precision floating-point numbers, thus obtaining the third encrypted data corresponding to the third data to be encrypted. Thus, by encrypting the date using the first, second, and third encrypted data, compared to the plaintext storage method of txt / ini, a truly effective date data hiding and confidentiality mechanism is achieved. At the same time, the increase in usage complexity and code volume is only slight, making it easily acceptable. Compared to binary plaintext storage, in addition to possessing basic date data hiding performance, the data is also scrambled, further increasing the parsing difficulty. In terms of complexity and code volume, the two methods are roughly equivalent. Compared to symmetric-key encryption methods, they do not require calling or relying on external DLL files or standards, making them relatively transparent and simple to use. Although their encryption complexity is far less than that of symmetric-key encryption methods, they are sufficient to meet confidentiality requirements in most applications.

[0072] The above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the technical principles of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.

Claims

1. A method for encrypting and storing date data, characterized in that, include: Retrieve the date data to be encrypted; Based on the difference between the date data and the preset date data, the first data to be encrypted is obtained; Obtain random encrypted data, and based on the sum of the random encrypted data and the first data to be encrypted, obtain the second data to be encrypted. Write the second data to be encrypted and the random encrypted data into the encrypted text in the form of single-precision floating-point numbers, and obtain the first encrypted data corresponding to the second data to be encrypted and the second encrypted data corresponding to the random encrypted data. Based on the sum of the first encrypted data and the second encrypted data, the third data to be encrypted is calculated, and the third data to be encrypted is written into the encrypted text in the form of a single-precision floating-point number to obtain the third encrypted data corresponding to the third data to be encrypted.

2. The encrypted storage method for date data according to claim 1, characterized in that, The process of obtaining the first data to be encrypted based on the difference between the date data and the preset date data includes: configuring preset parameters containing the preset date data, and after obtaining the first data to be encrypted, writing the first data to be encrypted into the encrypted text in the form of a single-precision floating-point number to obtain initial encrypted data, wherein the initial encrypted data may be selectively overwritten by the first encrypted data.

3. The encrypted storage method for date data according to claim 2, characterized in that, The preset parameters also include at least one preset additional data. Based on the additional data or the sum of the random encrypted data and the additional data, additional data to be encrypted is obtained. The additional data to be encrypted is written into the encrypted text in the form of a single-precision floating-point number to obtain additional encrypted data.

4. The encrypted storage method for date data according to claim 1, characterized in that, The encrypted text is binary encrypted text. The second data to be encrypted, the random encrypted data, and the third data to be encrypted are all written into the binary encrypted text in the form of 32-bit float single-precision floating-point numbers.

5. The encrypted storage method for date data according to claim 4, characterized in that, The process of converting the first encrypted data and the second encrypted data to obtain the third encrypted data involves: summing each byte of the first encrypted data and the second encrypted data, and converting the summation result into decimal to obtain the third encrypted data.

6. The encrypted storage method for date data according to claim 1, characterized in that, Obtaining random encrypted data includes: obtaining the date data to be encrypted, accessing and extracting the millisecond value of the current system object, and using the extracted millisecond value as the random encrypted data.

7. The encrypted storage method for date data according to claim 1, characterized in that, Obtaining random encrypted data includes: constructing a random model based on the Random function, accessing and obtaining the random value generated by the random model, and using the random value as the random encrypted data.

8. A date data encryption storage system, used to implement the date data encryption storage method according to any one of claims 1-7, characterized in that, include: The information acquisition module is used to acquire the date data to be encrypted and the randomly encrypted data; An encryption module is used to obtain first data to be encrypted based on the difference between the date data and the preset date data, and to obtain second data to be encrypted based on the sum of the random encrypted data and the first data to be encrypted. The second data to be encrypted and the random encrypted data are written into the encrypted text in the form of single-precision floating-point numbers, and a first encrypted data corresponding to the second data to be encrypted and a second encrypted data corresponding to the random encrypted data are obtained. The encryption module is also configured to calculate a third data to be encrypted based on the sum of the first encrypted data and the second encrypted data, and write the third data to be encrypted into the encrypted text in the form of a single-precision floating-point number to obtain the third encrypted data corresponding to the third data to be encrypted.

9. An electronic device, characterized in that, include: one or more processors; Memory; And one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs including instructions that, when executed by the device, cause the device to perform the steps of the encrypted storage method for date data as claimed in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when run on a computer, causes the computer to perform the steps of the encrypted storage method for date data as described in any one of claims 1 to 7.