Treadmill user side data secure storage method, electronic equipment and storage medium

By generating a unique key to encrypt treadmill data and decrypting and transmitting it in the cloud, the problems of large storage space and privacy leakage in existing technologies are solved, achieving secure and efficient data storage and interaction.

CN121940132APending Publication Date: 2026-04-28浙江畅跑体育用品有限公司
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
浙江畅跑体育用品有限公司
Filing Date
2026-02-10
Publication Date
2026-04-28

AI Technical Summary

Technical Problem

Existing local data security storage technologies suffer from problems such as large encrypted storage space requirements and an inability to balance user privacy with manufacturer data requests, leading to wasted storage space and leakage of user privacy.

Method used

By obtaining the treadmill's device code and the user's characteristic data to generate a unique key, the data is securely encrypted. When requested from the cloud, the data is decrypted and transmitted securely, achieving secure data storage and privacy protection.

Benefits of technology

It effectively reduces the storage space requirements for encrypted data, protects user privacy, provides data support for manufacturers, and improves the security and effectiveness of data interaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121940132A_ABST
    Figure CN121940132A_ABST
Patent Text Reader

Abstract

The invention discloses a treadmill user side data secure storage method, electronic equipment and a storage medium, and relates to the technical field of local data secure storage, and the method comprises the following steps: obtaining an equipment code of a treadmill and feature data of a user side; generating a unique key for the user side based on the device code and the feature data; performing security encryption on data of a user side of the treadmill through the unique key, and outputting a security ciphertext; when the cloud requests the data of the user side, calling and decrypting the security ciphertext based on the request information, and transmitting the corresponding data of the user side to the cloud; the method and the device are used for solving the problems that the storage space is wasted and local data cannot be provided for a manufacturer on the premise of ensuring the privacy of the user due to the fact that the storage space occupied by encrypted storage is relatively large and the user privacy and the request of the manufacturer for the local data cannot be balanced in the existing local data security storage technology.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of local data security storage technology, specifically to a method, electronic device, and storage medium for secure data storage on a treadmill user terminal. Background Technology

[0002] Local data security storage technology refers to a solution system that stores data on physical devices directly controlled by the user, such as mobile phones, computers, and IoT devices, and uses comprehensive technical means to ensure the confidentiality, integrity, and availability of data in a static storage state.

[0003] Local data security storage technology typically requires encrypting local data. During encryption, the primary consideration is the security of the encryption method. Secondly, when storing ciphertext, the storage space occupied by the ciphertext should be reduced to save storage space. However, existing local data security storage technologies often only consider the security of the encryption method, neglecting the storage space occupied by the ciphertext. Furthermore, many product manufacturers often request local data from users for statistical purposes. Uploading local data to the cloud may expose user privacy, while not uploading local data prevents manufacturers from statistically analyzing product usage. Subsequent research and development can provide decision-making references. For example, in the patent application with publication number CN121167759A, a "local data security storage method for non-networked vehicles" is disclosed. The local data of this solution cannot be uploaded to the manufacturer. However, most vehicles currently need to interact with the manufacturer. If the data is not uploaded to the manufacturer, the manufacturer cannot provide references for subsequent research and development based on the vehicle's usage. Existing local data security storage technologies also have problems such as the large storage space occupied by encrypted storage and the inability to balance user privacy and the manufacturer's request for local data, resulting in wasted storage space and the inability to provide local data to the manufacturer while ensuring user privacy. Summary of the Invention

[0004] This invention aims to at least partially solve one of the technical problems in the prior art. By acquiring the device code of the treadmill and the characteristic data of the user terminal, a unique key is generated for the user terminal based on the device code and characteristic data. Then, the user terminal data of the treadmill is securely encrypted using the unique key, and a secure ciphertext is output. When the cloud requests data from the user terminal, the secure ciphertext is retrieved based on the request information. Finally, the secure ciphertext is decrypted and a comprehensive privacy calculation is performed to obtain secure interactive data, which is then transmitted to the cloud. This solves the problems of existing local data security storage technologies, such as the large storage space occupied by encrypted storage, the inability to balance user privacy and manufacturers' requests for local data, resulting in wasted storage space, and the inability to provide local data to manufacturers while ensuring user privacy.

[0005] To achieve the above objectives, in a first aspect, this application provides a method for securely storing user data on a treadmill, comprising the following steps: Obtain the treadmill's device code and the user's characteristic data; Generate a unique key for the user terminal based on the device code and feature data; The user-side data of the treadmill is securely encrypted using a unique key, and the secure ciphertext is output. When the cloud requests data from the user's device, it retrieves and decrypts the secure encrypted data based on the request information, and then transmits the corresponding data from the user's device to the cloud.

[0006] Furthermore, obtaining the treadmill's device code and the user's characteristic data includes the following sub-steps: Obtain the device code of the treadmill, which is a unique code assigned by the manufacturer to each treadmill; Obtain the user's characteristic data, which is the IP address of the network to which the treadmill is connected.

[0007] Furthermore, generating a unique key for the user terminal based on the device code and feature data includes the following sub-steps: Obtain the hexadecimal ASCII encoding of the device code and feature data, and name them as the initial device encoding and the initial feature encoding, respectively. Extract the letters from the initial device code in left-to-right order and name it the device letter code, represented by the symbol EL. Name the remaining numbers in the initial device code the device number code, represented by the symbol EN. Extract the letters from the initial feature encoding in order from left to right, name them the feature letter encoding, and represent them with the symbol FL. Name the remaining numbers in the initial feature encoding the feature number encoding, and represent them with the symbol FN. Calculate (EN+FN) / (EL+FL), take the integer result, and name it as a unique key.

[0008] Furthermore, the user-side data on the treadmill is securely encrypted using a unique key, and the output of secure ciphertext includes the following sub-steps: Get the user data from the treadmill and name it "local data". Get the corresponding UTF-8 encoding in decimal format for the local data and name it "local encoding". The numbers in the local encoding and the numbers in the unique key are encoded in left-to-right order, respectively, using LE. n and UK m This indicates that n and m are both non-zero natural numbers, with n being the ordinal number of LE and m being the ordinal number of UK; For any value of n, mark the decimal places of the result of n / max(m) as HP, represent HP as a fraction with the denominator of the fraction fixed as max(m), and obtain the numerator of the fraction as WP, where max() is the maximum value operator; Set the symbol to be determined, represented by the symbol #, starting with n=1, and determine UK. WP The parity of UK WP If it is an odd number, then set the sign to be determined to -; if UK WP If the number is even, set the sign to be determined to + and calculate LE. n #|5-UK WP | Mark the calculation result as LF n Add one to n and recalculate LF. n ; Based on unique key pair LF n Further encryption is performed, and secure ciphertext is output.

[0009] Furthermore, based on the unique key pair LF n Further encryption and outputting secure ciphertext includes the following sub-steps: Starting with n=1, determine: LF n Is it 0? If so, then set LF. n Converting from decimal format to 8-bit binary format is denoted as R. n If not, output a compressed signal; If the output is a compressed signal, then LF n LF n+1 and LF n+2 The three-digit number formed is labeled Q. n Determine Q n Is it greater than 255? If so, then set LF. n With LF n+1 The resulting two-digit number is labeled Q. n Q n Converting from decimal format to 8-bit binary format is denoted as R. n Get Q n The number of bits, labeled YQ, is used to calculate n+YQ and analyze R again. n ; Some values ​​of n do not have a corresponding R. n Arrange R in ascending order of n n By combining the data, the final encrypted data is obtained. Obtain the timestamp corresponding to the encrypted data in the treadmill, convert the timestamp from decimal format to binary format, and name it a time code. The time code has a fixed length. The time code is concatenated to the data ciphertext to obtain the final secure ciphertext, which is then output.

[0010] Furthermore, when the cloud requests data from the user's device, retrieving and decrypting the secure ciphertext based on the request information, and then transmitting the corresponding user data to the cloud includes the following sub-steps: When the cloud requests data from the user's client, it retrieves secure encrypted data based on the request information. The secure ciphertext is decrypted and comprehensive privacy calculations are performed to obtain secure interactive data, which is then transmitted to the cloud.

[0011] Furthermore, when the cloud requests data from the user's end, retrieving secure encrypted data based on the request information includes the following sub-steps: When the cloud requests data from the user, it obtains request information, which includes the requested data item and the time range. Obtain the start and end times of the time range, convert the start and end times from decimal to binary, and name them the start code and end code respectively; Extract the time code from the secure ciphertext, and name the secure ciphertext whose time code is between the start code and the end code as the target ciphertext.

[0012] Furthermore, the process of decrypting the secure ciphertext, performing comprehensive privacy calculations, obtaining secure interactive data, and transmitting it to the cloud includes the following sub-steps: Obtain the decryption program corresponding to the encryption program, decrypt the target ciphertext using the decryption program to obtain the local data to be shared, and obtain the corresponding request data item in the local data to be shared, and name it the target data to be shared. Retrieve the data values ​​of the target data to be shared, number them according to their timestamps, and use the symbol DV. i This indicates that i is a non-zero natural number and i is the index of DV; With i as the X-axis, DV i Establish a two-dimensional coordinate system for the Y-axis, name it the Security Interaction Analysis Diagram, and set up the DV... i Enter the security interaction analysis diagram according to i; Perform function fitting on the security interaction analysis graph to obtain the fitted curve, and obtain the Y-axis value corresponding to each integer value of i in the fitted curve, labeled as GS. i ; DV in the target data to be analyzed i Replace with GS i And upload it to the cloud.

[0013] Secondly, this application provides an electronic device including a processor and a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps in the method described above are performed.

[0014] Thirdly, this application provides a storage medium on which a computer program is stored, which, when executed by a processor, performs the steps of the method described above.

[0015] The beneficial effects of this invention are as follows: By obtaining the device code of the treadmill and the characteristic data of the user terminal, a unique key is generated for the user terminal based on the device code and characteristic data. Then, the data of the user terminal of the treadmill is securely encrypted using the unique key, and a secure ciphertext is output. The advantage is that a unique key is generated for the user terminal by combining the device code and characteristic data. The unique key is not stored in any form or location. If the IP address connected to the treadmill changes, the unique key is automatically changed. At the same time, during the secure encryption process, the ciphertext is compressed while encrypting, so that the ciphertext occupies less storage space, which improves the security of local data secure storage and saves storage resources. When requesting data from the user's end in the cloud, this invention retrieves secure ciphertext based on the request information, decrypts the ciphertext, performs comprehensive privacy calculations, obtains secure interactive data, and transmits it to the cloud. The advantage is that secure interactive data is generated from corresponding local data and uploaded to the cloud. The secure interactive data is similar to but not identical to the actual data on the user's end, protecting the user's privacy and providing data support for manufacturers. Meanwhile, the local data never leaves the user's end, improving the security of local data storage and the effectiveness of data interaction. Attached Figure Description

[0016] Figure 1 This is a flowchart illustrating the steps of the method of the present invention; Figure 2 This is a schematic diagram of the security interaction analysis diagram of the present invention; Figure 3 This is a schematic diagram of the fitting curve of the present invention; Figure 4 This is a schematic diagram of the electronic device of the present invention. Detailed Implementation

[0017] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0018] Example 1, please refer to Figure 1 As shown, this application provides a method for securely storing user data on a treadmill, including the following steps: Step S1: Obtain the treadmill's device code and the user's feature data; Step S1 includes the following sub-steps: Step S101: Obtain the device code of the treadmill. The device code is a unique code set by the manufacturer for each treadmill. Step S102: Obtain the user's feature data, which is the IP address of the network to which the treadmill is connected; In the specific implementation, the device code obtained is "DC-A-123456" and the IP address is "192.168.00.001". All quotation marks in this embodiment are only used to limit the start and end positions of the data or code, and do not belong to the data or code itself.

[0019] Step S2: Generate a unique key for the user terminal based on the device code and feature data; Step S2 includes the following sub-steps: Step S201: Obtain the hexadecimal ASCII encoding corresponding to the device code and feature data, and name them as the device initial encoding and feature initial encoding, respectively. Step S202: Extract the letters from the initial device code in order from left to right, name them as the device letter code, and represent them with the symbol EL. Name the remaining numbers in the initial device code as the device number code, and represent them with the symbol EN. Step S203: Extract the letters from the initial feature encoding in order from left to right, name them as feature letter encoding, and represent them with the symbol FL. Name the remaining numbers in the initial feature encoding as feature number encoding, and represent them with the symbol FN. Step S204: Calculate (EN+FN) / (EL+FL), take the integer result, and name it as the unique key; In practice, the initial device code corresponding to "DC-A-123456" is obtained as "44432D412D313233343536", and the initial feature code corresponding to "192.168.00.001" is "3139322E3136382E30302E303031". Extracting these codes, EL is "DD", EN is "44432412313233343536", and FL is "EEE". FN is “3139322313638230302303031”. During calculation, EN and FN are treated as decimal, and EL and FL are converted from hexadecimal to decimal, resulting in EL being 221 and FL being 3822. The calculated unique key is 776494372013490857196.77640366065, which, when taken as the integer part, is “776494372013490857196”.

[0020] Step S3: Securely encrypt the data on the treadmill's user end using a unique key and output secure ciphertext; Step S3 includes the following sub-steps: Step S301: Obtain the data from the user end of the treadmill, name it "local data", and obtain the UTF-8 encoding in decimal format corresponding to the local data, name it "local encoding". Step S302: Encode the numbers in the local encoding and the numbers in the unique key in a left-to-right order, respectively, through LE n and UK m This indicates that n and m are both non-zero natural numbers, with n being the ordinal number of LE and m being the ordinal number of UK; Step S303: For any value of n, mark the decimal places of the calculation result of n / max(m) as HP, represent HP as a fraction, and fix the denominator of the fraction as max(m), obtain the numerator of the fraction and mark it as WP, where max() is the maximum value operator; Step S304: Set the symbol to be determined, represented by the symbol #, starting with n=1, and determine UK. WP The parity of UK WP If it is an odd number, then set the sign to be determined to -; if UK WP If the number is even, set the sign to be determined to + and calculate LE. n #|5-UK WP | Mark the calculation result as LF n Add one to n and recalculate LF. n ; In practice, assuming the obtained local data is "training duration: 30min", the hexadecimal UTF-8 encoding of "training duration: 30min" is "e8aeade7bb83e697b6e995bfefbc9a33306d696e". Converting this to decimal gives the local encoding "1328381337775618554382688889469846384715330578798", and the unique key is "776494372013490857196". The resulting number is LE. n and UK m Where 1≤n≤49, 1≤m≤21, that is, m is at most 21, max(m)=21. Taking n=1 as an example, HP=1 / 21, the integer part is 0, the decimal part is 1 / 21, and the fraction is also 1 / 21. Extracting the numerator, we can get WP=1. Determine UK. WP The parity determination is actually based on the parity of UK1. Since UK1 is 7, which is odd, the undetermined discarded number is set to -. The calculation LE1 - |5 - UK1| = 1 - |5 - 7| = -1 is performed. Because the result is negative, it is increased by 10 to make it positive. Finally, LF1 = 9, and the remaining LF values ​​are... n Similarly, and the decryption process is the same: if the calculation result is less than 0, add 10 to the result; if the calculation result is greater than or equal to 10, subtract 10 from the result. Calculate all LF1 to LF2 in the same way. 49 The numbers are 9, 1, 3, 9, 9, 9, 9, 1, 6, 2, 3, 5, 6, 2, 6, 1, 5, 3, 0, 9, 9, 0, 4, 9, 9, 4, 9, 7, 2, 9, 4, 4, 2, 7, 9, 3, 7, 7, 9, 1, 9, 4, 2, 3, 8, 9, 3, 0, and 6.

[0021] Step S305, based on the unique key pair LF n Perform further encryption and output secure ciphertext; Step S305 includes the following sub-steps: Step S3051, starting with n=1, determine: LF n Is it 0? If so, then set LF. n Converting from decimal format to 8-bit binary format is denoted as R. n If not, output a compressed signal; Step S3052, if a compression signal is output, then LF n LF n+1 and LF n+2 The three-digit number formed is labeled Q. n Determine Q n Is it greater than 255? If so, then set LF.n With LF n+1 The resulting two-digit number is labeled Q. n Q n Converting from decimal format to 8-bit binary format is denoted as R. n Get Q n The number of bits, labeled YQ, is used to calculate n+YQ and analyze R again. n ; Step S3053, some values ​​of n do not have a corresponding R. n Arrange R in ascending order of n n By combining the data, the final encrypted data is obtained. In specific implementation, taking n=1 as an example, LF1 is 9, not 0, so a compressed signal is output. The three-digit number formed by LF1, LF2, and LF3 is marked as Q1, resulting in Q1 being 913. Since 913 is greater than 255, the two-digit number formed by LF1 and LF2 is marked as Q1, i.e., Q1 is changed to 91. 91 is converted from decimal format to eight-bit binary format, resulting in R1 being 01011011. Since Q1 is a two-digit number, YQ is obtained as 2. n+2 is then used to analyze R again. n At this point, n=3, LF3 is 3 (not 0), therefore a compressed signal is output. The above steps are repeated until all R signals are obtained. n Through the above analysis steps, R1, R3, R5, R7, R9, and R are finally obtained. 11 R 13 R 15 R 17 R 19 R 20 R 22 R 23 R 25 R 27 R 29 R 31 R 33 R 35 R 37 R 39 R 41 R 43 R 46 R 48 and R 49The final encrypted data obtained by combining the data is "0101101100100111011000110101101100111110001000110011111000111101001101010000000001100011000000000011000101011110011000010001110101100000110110101110101010110110101101 The ciphertext "10101111011101110010111010000000000000110" is a high-security encryption of local data. The length of the ciphertext is only slightly different from the length of the original local data in binary format, which will not cause a surge in data length. In addition, the time encoding is shorter than the original storage method. With the mutual cancellation, the difference between the length of the secure ciphertext and the original local data and the storage space of the timestamp is further reduced, and no waste of storage space is caused.

[0022] Step S3054: Obtain the timestamp corresponding to the encrypted data in the treadmill, convert the timestamp from decimal format to binary format, and name it time code. The time code has a fixed length. Step S3055: Concatenate the time code to the data ciphertext to obtain the secure ciphertext, and output the secure ciphertext. In specific implementation, for example, the timestamp generated by the local data listed in this embodiment is "1737964059", which is converted to a time code of "1100111100101110011101000011011". The time code is fixed at 32 bits, so the actual time code should be "01100111100101110011101000011011". The resulting secure ciphertext is "010110110010011101100011010110110011111000100". 01100111110001111010011010100000000011000110000000000011000101011110011000010001110100101100000110110101110101001101010110111011101110101011101001011101000000000000011001100111100101110100001101101000011011".

[0023] Step S4: When the cloud requests data from the user terminal, it retrieves and decrypts the secure ciphertext based on the request information, and then transmits the corresponding user terminal data to the cloud. Step S4 includes the following sub-steps: Step S401: When the cloud requests data from the user, retrieve the secure encrypted text based on the request information; Step S401 includes the following sub-steps: Step S4011: When the cloud requests data from the user, obtain the request information, which includes the requested data item and the time range. Step S4012: Obtain the start time and end time of the time range, convert the start time and end time from decimal to binary, and name them as start code and end code respectively. Step S4013: Extract the time code from the secure ciphertext, and name the secure ciphertext whose time code is between the start code and the end code as the target ciphertext; In practice, the requested information is "Get the user's daily training duration over the past 10 days." The requested information is "training duration," and the current time is January 30, 2025. The past 10 days are from January 19, 2025 to January 29, 2025, corresponding to timestamps 1737216000 and 1738080000 respectively. This results in a start code of "01100111100010111101000000000000" and an end code of "011001111001". "10001111111100000000", which means the time range is [0110011110001011110100000000000,0110011110011000111111100000000], and the secure ciphertext corresponding to the time code that is greater than or equal to 01100111100010111101000000000000 and less than or equal to 01100111100110001111111000000000 is named the target ciphertext.

[0024] Step S402: Decrypt the secure ciphertext and perform comprehensive privacy calculations to obtain secure interactive data and transmit it to the cloud; Step S402 includes the following sub-steps: Step S4021: Obtain the decryption program corresponding to the encryption program, decrypt the target ciphertext through the decryption program to obtain the local data to be shared, obtain the corresponding request data item in the local data to be shared, and name it the target data to be shared. Step S4022: Obtain the data values ​​of the target data to be shared, and number the data values ​​of the target data to be shared according to the order of timestamps, using the symbol DV. i This indicates that i is a non-zero natural number and i is the index of DV; Please see Figures 2 to 3 As shown, in step S4023, with i as the X-axis, DVi Establish a two-dimensional coordinate system for the Y-axis, name it the Security Interaction Analysis Diagram, and set up the DV... i Enter the security interaction analysis diagram according to i; Step S4024: Perform function fitting on the security interaction analysis graph to obtain the fitting curve, and obtain the Y-axis value corresponding to each integer value of i in the fitting curve, labeled as GS. i ; Step S4025, extract the DV data from the target data to be analyzed. i Replace with GS i And upload it to the cloud; In practice, the decryption procedure is the reverse logical derivation of the encryption procedure. If the encryption process is logically reversible, then a corresponding decryption process must exist. This embodiment will not elaborate further. The decryption procedure decrypts the data ciphertext in the target ciphertext to obtain the local data to be shared. The training duration is extracted from the local data to be shared and sorted and numbered according to the timestamp order to obtain DV1 to DV2. 10 The security interaction analysis graph is constructed as follows: Figure 2 As shown, DV1 to DV 10 The specific data values ​​will not be shown in this embodiment, but will only be provided by Figure 2 A simple example will suffice; the fitted curve obtained through function fitting is as follows: Figure 3 As shown, the Y-axis values ​​corresponding to i=1, 2, 3, 4, 5, 6, 7, 8, 9, and 10 in the fitted curve are obtained to obtain GS1 to GS2. 10 The time intervals were 39.8 min, 36.2 min, 25.5 min, 20.6 min, 20 min, 19.8 min, 20 min, 21 min, 25.4 min, and 30.1 min, respectively, to determine the DV value in the target data to be analyzed. i Replace with GS i The data is then uploaded to the cloud, thus ensuring that the user's actual privacy is not compromised while also meeting the manufacturer's need to collect usage information.

[0025] Example 2, please refer to Figure 4 As shown, Figure 4A schematic diagram of an electronic device is provided, which may include a processor, a communication interface, a memory, and a communication bus. The processor, communication interface, and memory communicate with each other via the communication bus. The memory stores computer-readable instructions, and the processor can call these instructions. When the processor executes a computer-readable instruction, it performs steps such as those in the treadmill user terminal data secure storage method to achieve the following functions: obtaining the treadmill's device code and the user terminal's characteristic data; generating a unique key for the user terminal based on the device code and characteristic data; securely encrypting the treadmill's user terminal data using the unique key and outputting secure ciphertext; and when the cloud requests user terminal data, retrieving and decrypting the secure ciphertext based on the request information and transmitting the corresponding user terminal data to the cloud.

[0026] Furthermore, when the logical instructions in the aforementioned memory can be implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0027] Example 3: This application also provides a computer program product, which includes a computer program stored on a computer-readable storage medium. The computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the treadmill user terminal data security storage method provided by the above methods. The method includes: obtaining the treadmill's device code and the user terminal's feature data; generating a unique key for the user terminal based on the device code and feature data; securely encrypting the treadmill's user terminal data using the unique key and outputting secure ciphertext; when the cloud requests user terminal data, retrieving and decrypting the secure ciphertext based on the request information, and transmitting the corresponding user terminal data to the cloud.

[0028] Example 4: This application also provides a computer-readable storage medium. This application provides a storage medium storing a computer program thereon. When the computer program is executed by a processor, it runs the steps of the above-described treadmill user terminal data secure storage method to achieve the following functions: obtaining the treadmill's device code and the user terminal's feature data; generating a unique key for the user terminal based on the device code and feature data; securely encrypting the treadmill's user terminal data using the unique key and outputting secure ciphertext; when the cloud requests user terminal data, retrieving and decrypting the secure ciphertext based on the request information, and transmitting the corresponding user terminal data to the cloud.

[0029] Based on the above description of the embodiments, the embodiments of the present invention can be provided as methods, systems, or computer program products. Based on this understanding, the above technical solutions, in essence or in terms of their contribution to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or certain parts of the embodiments.

[0030] In the embodiments provided in this application, it should be understood that the disclosed system or method can be implemented in other ways. The embodiments described above are merely illustrative. For example, the division of modules or units is only a logical functional division, and there may be other division methods in actual implementation. Furthermore, multiple modules or units may be combined or integrated into another system, or some features may be ignored or not executed. Additionally, the coupling or direct coupling or communication connection shown or discussed may be through some communication interfaces. The indirect coupling or communication connection between systems, modules, and units may be electrical, mechanical, or other forms.

[0031] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.

Claims

1. A method for securely storing user-end data on a treadmill, characterized in that, Includes the following steps: Obtain the treadmill's device code and the user's characteristic data; Generate a unique key for the user terminal based on the device code and feature data; The user-side data of the treadmill is securely encrypted using a unique key, and the secure ciphertext is output. When the cloud requests data from the user's device, it retrieves and decrypts the secure encrypted data based on the request information, and then transmits the corresponding data from the user's device to the cloud.

2. The method for securely storing user-end data on a treadmill according to claim 1, characterized in that, Obtaining the treadmill's device code and the user's feature data includes the following sub-steps: Obtain the device code of the treadmill, which is a unique code assigned by the manufacturer to each treadmill; Obtain the user's characteristic data, which is the IP address of the network to which the treadmill is connected.

3. The method for securely storing user-end data on a treadmill according to claim 2, characterized in that, Generating a unique key for the user terminal based on the device code and feature data includes the following sub-steps: Obtain the hexadecimal ASCII encoding of the device code and feature data, and name them as the initial device encoding and the initial feature encoding, respectively. Extract the letters from the initial device code in left-to-right order and name it the device letter code, represented by the symbol EL. Name the remaining numbers in the initial device code the device number code, represented by the symbol EN. Extract the letters from the initial feature encoding in order from left to right, name them the feature letter encoding, and represent them with the symbol FL. Name the remaining numbers in the initial feature encoding the feature number encoding, and represent them with the symbol FN. Calculate (EN+FN) / (EL+FL), take the integer result, and name it as a unique key.

4. The method for securely storing user-end data on a treadmill according to claim 3, characterized in that, The data on the treadmill's user end is securely encrypted using a unique key, and the output of secure ciphertext includes the following sub-steps: Get the user data from the treadmill and name it "local data". Get the corresponding UTF-8 encoding in decimal format for the local data and name it "local encoding". The numbers in the local encoding and the numbers in the unique key are encoded in left-to-right order, respectively, using LE. n and UK m This indicates that n and m are both non-zero natural numbers, with n being the ordinal number of LE and m being the ordinal number of UK; For any value of n, mark the decimal places of the result of n / max(m) as HP, represent HP as a fraction with the denominator of the fraction fixed as max(m), and obtain the numerator of the fraction as WP, where max() is the maximum value operator; Set the symbol to be determined, represented by the symbol #, starting with n=1, and determine UK. WP The parity of UK WP If it is an odd number, then set the sign to be determined to -; if UK WP If the number is even, set the sign to be determined to + and calculate LE. n #|5-UK WP | Mark the calculation result as LF n Add one to n and recalculate LF. n ; Based on unique key pair LF n Further encryption is performed, and secure ciphertext is output.

5. The method for securely storing user-end data on a treadmill according to claim 4, characterized in that, Based on unique key pair LF n Further encryption and outputting secure ciphertext includes the following sub-steps: Starting with n=1, determine: LF n Is it 0? If so, then set LF. n Converting from decimal format to 8-bit binary format is denoted as R. n If not, output a compressed signal; If the output is a compressed signal, then LF n LF n+1 and LF n+2 The three-digit number formed is labeled Q. n Determine Q n Is it greater than 255? If so, then set LF. n With LF n+1 The resulting two-digit number is labeled Q. n Q n Converting from decimal format to 8-bit binary format is denoted as R. n Get Q n The number of bits, labeled YQ, is used to calculate n+YQ and analyze R again. n ; Some values ​​of n do not have a corresponding R. n Arrange R in ascending order of n n By combining the data, the final encrypted data is obtained. Obtain the timestamp corresponding to the encrypted data in the treadmill, convert the timestamp from decimal format to binary format, and name it a time code. The time code has a fixed length. The time code is concatenated to the data ciphertext to obtain the final secure ciphertext, which is then output.

6. The method for securely storing user-end data on a treadmill according to claim 5, characterized in that, When the cloud requests data from the user's device, the process of retrieving and decrypting the secure ciphertext based on the request information and then transmitting the corresponding user data to the cloud includes the following sub-steps: When the cloud requests data from the user's client, it retrieves secure encrypted data based on the request information. The secure ciphertext is decrypted and comprehensive privacy calculations are performed to obtain secure interactive data, which is then transmitted to the cloud.

7. The method for securely storing user-end data on a treadmill according to claim 6, characterized in that, When the cloud requests data from the user's client, retrieving secure encrypted data based on the request information includes the following sub-steps: When the cloud requests data from the user, it obtains request information, which includes the requested data item and the time range. Obtain the start and end times of the time range, convert the start and end times from decimal to binary, and name them the start code and end code respectively; Extract the time code from the secure ciphertext, and name the secure ciphertext whose time code is between the start code and the end code as the target ciphertext.

8. The method for securely storing user-end data on a treadmill according to claim 7, characterized in that, The process of decrypting secure ciphertext, performing comprehensive privacy calculations, obtaining secure interactive data, and transmitting it to the cloud includes the following sub-steps: Obtain the decryption program corresponding to the encryption program, decrypt the target ciphertext using the decryption program to obtain the local data to be shared, and obtain the corresponding request data item in the local data to be shared, and name it the target data to be shared. Retrieve the data values ​​of the target data to be shared, number them according to their timestamps, and use the symbol DV. i This indicates that i is a non-zero natural number and i is the index of DV; With i as the X-axis, DV i Establish a two-dimensional coordinate system for the Y-axis, name it the Security Interaction Analysis Diagram, and set up the DV... i Enter the security interaction analysis diagram according to i; Perform function fitting on the security interaction analysis graph to obtain the fitted curve, and obtain the Y-axis value corresponding to each integer value of i in the fitted curve, labeled as GS. i ; DV in the target data to be analyzed i Replace with GS i And upload it to the cloud.

9. An electronic device, characterized in that, It includes a processor and a memory, the memory storing computer-readable instructions that, when executed by the processor, perform the steps of the method as described in any one of claims 1-8.

10. A storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it performs the steps of the method as described in any one of claims 1-8.

Citation Information

Patent Citations

  • Local data security storage method for non-networked vehicles

    CN121167759A