Anti-tampering communication method, device, server, smart home and terminal equipment

By using biometric encryption and HMAC algorithms in the communication between large-screen refrigerators and mobile phones, the problem of user information being easily tampered with is solved, safe and reliable information transmission is achieved, and the user experience is improved.

CN116132149BActive Publication Date: 2025-08-22GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310022007.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-06
Publication Date
2025-08-22
Estimated Expiration
2043-01-06

AI Technical Summary

Technical Problem

In the prior art, when the large-screen refrigerator is interconnected with a mobile phone, user information is easily tampered with, especially in financial transaction scenarios, information such as password input and verification code reception are insufficient.

Method used

Biometric values ​​are used as encryption factor, combined with HMAC algorithm for encryption and splicing, and tampering is carried out between terminal devices, smart home devices and servers to ensure the security of information transmission through encryption and splicing of biometric values.

Benefits of technology

It improves the security and reliability of information transmission, ensures that user information is not tampered with, and the user experience is unaware of it, and realizes the integrity and correctness of information transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116132149B_ABST
    Figure CN116132149B_ABST
Patent Text Reader

Abstract

This application proposes a tamper-proof communication method, apparatus, server, smart home, and terminal device, belonging to the field of smart home. The method transmits a biometric value and an encrypted scenario instruction via a terminal device. The smart home device concatenates and encrypts a target tamper-proof message and the biometric value, obtaining a first data block encryption result and sending it to the server. The encrypted biometric value sent by the server terminal device and the target tamper-proof message sent by the smart home device are then concatenated and encrypted again according to the same rules to obtain a second data block encryption result. By comparing the first data block encryption result with the second data block encryption result, a conclusion is obtained as to whether the target tamper-proof message has been tampered with. This application solves the security problem of communication between smart home devices, terminal devices, and servers, ensuring the integrity, correctness, and consistency of message transmission while securely transmitting messages.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of smart home, and specifically to an anti-tampering communication method, device, server, smart home and terminal equipment. Background Art

[0002] With the widespread use of smart refrigerators, large-screen refrigerators are often connected to mobile phones. Important information on the phone is displayed on the large-screen refrigerator screen. Therefore, the communication methods of large-screen refrigerators need to be secure to prevent the leakage of users' personal information. Among them, the tamper-proof data category of personal information includes all screen data distributed from mobile phones, such as password input and verification code reception in financial transaction scenarios. Summary of the Invention

[0003] Based on the above technical problems, this application proposes an anti-tampering communication method, device, server, smart home and terminal equipment.

[0004] In a first aspect, the present application proposes an anti-tampering communication method, which is applied to a terminal device, comprising:

[0005] Get the biometric password information entered by the user;

[0006] Extracting a biometric value of the biometric password information;

[0007] Encrypting the biometric value using a first encryption algorithm to obtain an encrypted biometric value;

[0008] Sending the encrypted biometric value to a server, and sending the biometric value to a smart home device;

[0009] In scenarios where anti-tampering is required, encrypted scene instructions are sent to smart home devices.

[0010] The biometric password information includes any one of voice information, fingerprint information, iris information, and face information.

[0011] The first encryption algorithm is the HMAC algorithm.

[0012] The scenarios requiring anti-tampering processing include: scenarios specified by the operating system and scenarios that actively initiate anti-tampering processing. The scenarios specified by the operating system include any scenario of obtaining user photos, user text messages, and user address books.

[0013] In a second aspect, the present application proposes an anti-tampering communication method, which is applied to smart home devices, comprising:

[0014] Receive biometric values ​​and encrypted scenario instructions sent by the terminal device;

[0015] Sending an anti-tampering request to a server based on the encrypted scenario instruction;

[0016] Receive the random number generated and sent by the server based on the anti-tampering request;

[0017] splicing the target anti-tampering message and the biometric characteristic value using a preset splicing mode to obtain a first data block;

[0018] Encrypting the first data block using a second encryption algorithm to generate an encryption result of the first data block;

[0019] The target tamper-proof message and the encryption result of the first data block are sent to the server.

[0020] The second encryption algorithm is the HMAC algorithm.

[0021] The HMAC algorithm is the HMAC-SM3 algorithm.

[0022] The preset splicing mode is chain splicing.

[0023] In a third aspect, the present application proposes a tamper-proof communication method, which is applied to a server and includes:

[0024] Receive the encrypted biometric value sent by the terminal device and the anti-tampering request sent by the smart home device;

[0025] generating a random number based on the anti-tampering request, and sending the random number to the smart home device;

[0026] receiving a target anti-tampering message and an encryption result of the first data block sent by the smart home device, and splicing the target anti-tampering message and the corresponding biometric feature value using a preset splicing mode to obtain a second data block;

[0027] Encrypting the second data block using a second encryption algorithm to generate a second data block encryption result;

[0028] comparing the encryption result of the first data block with the encryption result of the second data block;

[0029] If the first data encryption result is the same as the second data encryption result, the target tamper-proof message has not been tampered with;

[0030] If the first data encryption result is different from the second data encryption result, the target tamper-proof message has been tampered with and the target tamper-proof message is invalid.

[0031] In a fourth aspect, the present application proposes an anti-tampering communication device, which is applied to a terminal device, comprising:

[0032] An information acquisition module is used to obtain the biometric password information input by the user;

[0033] A feature extraction module, configured to extract a biometric feature value of the biometric password information;

[0034] a first encryption module, configured to encrypt the biometric value using a first encryption algorithm to obtain an encrypted biometric value;

[0035] A feature sending module, configured to send the encrypted biometric feature value to a server and send the biometric feature value to a smart home device;

[0036] The instruction sending module is used to send encrypted scene instructions to smart home devices in scenarios that require anti-tampering processing.

[0037] In a fifth aspect, the present application proposes an anti-tampering communication device, which is applied to smart home devices, including:

[0038] A first feature receiving module, configured to receive a biometric feature value and an encrypted scenario instruction sent by a terminal device;

[0039] A request sending module, configured to send an anti-tampering request to a server based on the encrypted scenario instruction;

[0040] A random number receiving module, configured to receive a random number generated and sent by a server based on an anti-tampering request;

[0041] A first data splicing module is used to splice the target anti-tampering message and the biometric feature value using a preset splicing mode to obtain a first data block;

[0042] a second encryption module, encrypting the first data block using a second encryption algorithm to generate an encryption result of the first data block;

[0043] The encryption result sending module is used to send the target anti-tampering message and the encryption result of the first data block to the server.

[0044] In a sixth aspect, the present application proposes an anti-tampering communication device, applied to a server, comprising:

[0045] A second feature receiving module is used to receive the encrypted biometric feature value sent by the terminal device and the anti-tampering request sent by the smart home device;

[0046] A random number sending module, configured to generate a random number based on the anti-tampering request and send the random number to a smart home device;

[0047] a second data splicing module, configured to receive the target anti-tampering message and the encryption result of the first data block sent by the smart home device, and splice the target anti-tampering message and the corresponding biometric feature value using a preset splicing mode to obtain a second data block;

[0048] a third encryption module, configured to encrypt the second data block using a second encryption algorithm to generate an encryption result of the second data block;

[0049] A comparison module is used to compare the encryption result of the first data block with the encryption result of the second data block; if the first data encryption result is the same as the second data encryption result, the target anti-tampering message has not been tampered with; if the first data encryption result is different from the second data encryption result, the target anti-tampering message has been tampered with and the target anti-tampering message is invalid.

[0050] In the seventh aspect, the present application proposes a terminal device comprising: one or more processors, and a memory, wherein the memory stores instructions, and when the instructions are executed by the one or more processors, the one or more processors execute the tamper-proof communication method described in the first aspect.

[0051] In an eighth aspect, the present application proposes a smart home device comprising: one or more processors, and a memory, wherein the memory stores instructions, and when the instructions are executed by the one or more processors, the one or more processors execute the tamper-proof communication method as described in the second aspect above.

[0052] The smart home device includes a smart refrigerator.

[0053] In a ninth aspect, the present application provides a server, characterized by comprising: one or more processors; and a memory, wherein the memory stores instructions that, when executed by the one or more processors, cause the one or more processors to execute the tamper-proof communication method described in the third aspect.

[0054] In the tenth aspect, the present application proposes a computer-readable storage medium, which is applied to a client, and a computer program is stored on the computer-readable storage medium. When the computer program is executed by one or more processors, the tamper-proof communication method described in the first to third aspects is implemented.

[0055] Beneficial effects:

[0056] This application proposes a tamper-proof communication method, device, server, smart home, and terminal device. By combining biometrics as encryption factors and utilizing the HMAC algorithm for basic tamper-proofing, the tamper-proofing process is upgraded for security and improved practicality. Furthermore, the user is unaware of the setup and tamper-proofing process, ensuring a superior user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] Figure 1 This is a flow chart of the anti-tampering communication method according to Example 1 of the present application;

[0058] Figure 2 This is a flow chart of the anti-tampering communication method according to Example 2 of the present application;

[0059] Figure 3 This is a flow chart of the anti-tampering communication method according to Example 3 of the present application;

[0060] Figure 4 This is a principle block diagram of the tamper-proof communication device according to Example 4 of the present application;

[0061] Figure 5 This is a principle block diagram of the anti-tampering communication device of Example 5 of the present application;

[0062] Figure 6 This is a principle block diagram of the anti-tampering communication device of Example 6 of the present application. DETAILED DESCRIPTION

[0063] The present disclosure will be further described below with reference to the embodiments shown in the accompanying drawings.

[0064] With the widespread use of smart refrigerators, large-screen refrigerators are often connected to mobile phones. Important information on the phone is displayed on the large-screen refrigerator screen. Therefore, the communication methods of large-screen refrigerators need to be secure to prevent the leakage of users' personal information. Among them, the tamper-proof data category of personal information includes all screen data distributed from mobile phones, such as password input and verification code reception in financial transaction scenarios.

[0065] The present application proposes a tamper-proof communication method, device, server, smart home and terminal device, which utilizes the characteristic of terminal devices, such as mobile phones, which are convenient for collecting biometric features, combines biometric features into the anti-tampering process, and uses biometric features as anti-tampering splicing factors to solve the security issues of communication between smart home devices, such as large-screen refrigerators, terminal devices and servers, and provides an anti-tampering device to ensure the integrity, correctness and consistency of message transmission while securely transmitting messages.

[0066] Example 1:

[0067] This embodiment proposes an anti-tampering communication method, which is applied to terminal devices, such as Figure 1 As shown, including:

[0068] Step S11: Obtaining biometric password information input by the user;

[0069] Step S12: extracting the biometric value of the biometric password information;

[0070] Step S13: Encrypting the biometric value using a first encryption algorithm to obtain an encrypted biometric value;

[0071] Step S14: sending the encrypted biometric value to the server, and sending the biometric value to the smart home device;

[0072] Step S15: In a scenario where anti-tampering processing is required, an encrypted scenario instruction is sent to the smart home device.

[0073] In this embodiment, a tamper-proof communication method involves three devices: a terminal device, a smart home device, and a server. Each device can send information to the other two devices. The tamper-proof communication method first acquires biometric password information entered by a user on the terminal device. Voiceprint recognition, iris recognition, or facial recognition modules are configured in the terminal device, such as a mobile phone, to acquire the biometric password information, including any of voice, fingerprint, iris, or facial information. A biometric characteristic value, or hash value, is then extracted from the biometric password information. This biometric characteristic value or hash value ensures that there is no risk of leaking sensitive user information if intercepted. The method for extracting the characteristic is a commonly used technique and is not limited in this embodiment. The biometric characteristic value or hash value must be encrypted and uploaded to the server for storage. When a user performs fingerprint / face authentication to update the local device, the biometric characteristic value on the server must also be updated promptly. The biometric characteristic value or characteristic hash value is also stored in the terminal device. The first encryption algorithm is the HMAC algorithm. HMAC Algorithm: HMAC stands for Keyed-Hashing for Message Authentication, a keyed hashing algorithm used for message authentication. HMAC's MAC algorithm is a hash algorithm, which can be MD5, SHA-1, or SHA-256. They are respectively called HMAC-MD5 (MD5, Message-Digest Algorithm), HMAC-SHA1 (SHA1, Secure Hash Algorithm 1), and HMAC-SHA256 (SHA256, Secure Hash Algorithm 256, where 256 is the hash value length).

[0074] At this point, the terminal device monitors the occurrence of anti-tampering scenarios in real time. These scenarios include those specified by the operating system and those initiated proactively. These scenarios include obtaining user photos, text messages, or any of the user's address book. In scenarios requiring anti-tampering, an encrypted scenario instruction is sent to the smart home device. Communication between the smart home and the server then occurs, ensuring that the target anti-tampering message is securely and accurately sent to the server.

[0075] Example 2:

[0076] This embodiment proposes an anti-tampering communication method, which is applied to smart home devices, such as Figure 2 As shown, including:

[0077] Step S21: receiving the biometric value and encryption scenario instruction sent by the terminal device;

[0078] Step S22: sending an anti-tampering request to the server based on the encrypted scenario instruction;

[0079] Step S23: receiving a random number generated and sent by the server based on the anti-tampering request;

[0080] Step S24: splicing the target anti-tampering message and the biometric feature value using a preset splicing mode to obtain a first data block;

[0081] Step S25: Encrypting the first data block using a second encryption algorithm to generate an encryption result of the first data block;

[0082] Step S26: Send the target tamper-proof message and the encryption result of the first data block to the server.

[0083] In this embodiment, an anti-tampering communication method is applied to smart home devices. The smart home device shown can be a large-screen refrigerator. First, the large-screen refrigerator receives the biometric value or the hash value of the biometric sent by the terminal device. When the terminal device sends an encrypted scene instruction, the large-screen refrigerator receives the encrypted scene instruction and abandons the anti-tampering request sent to the server based on the encrypted scene instruction; the server generates a random number based on the anti-tampering request, and the large-screen refrigerator receives the random number generated and sent by the server based on the anti-tampering request. The target anti-tampering message and the biometric value are spliced ​​together using a preset splicing mode to obtain a first data block; the first data block is encrypted using a second encryption algorithm to generate an encrypted result of the first data block; the generated encrypted result of the first data block is an HMAC summary value. Among them, the second encryption algorithm is the HMAC-SM3 algorithm (SM3, SM3 cryptographic algorithm is a domestic cryptographic hash function standard). The preset splicing mode is ordinary chain splicing.

[0084] Compared to the common HMAC algorithm, the method in this embodiment adds a biometric concatenation process on the large-screen refrigerator side, based on the random number sent by the server. Both communicating parties have self-generated trust factors, adding two-factor authentication to the anti-tampering process, improving security and reliability. Leveraging the biometric values ​​of the large-screen refrigerator provides a security upgrade for the anti-tampering process, enhancing practicality. The user is unaware of the setup and anti-tampering processes, ensuring a superior user experience.

[0085] Example 3:

[0086] This embodiment proposes an anti-tampering communication method, which is applied to a server, such as Figure 3 As shown, including:

[0087] Step S31: receiving the encrypted biometric value sent by the terminal device and the anti-tampering request sent by the smart home device;

[0088] Step S32: Generate a random number based on the anti-tampering request, and send the random number to the smart home device;

[0089] Step S33: receiving the target anti-tampering message and the encryption result of the first data block sent by the smart home device, and splicing the target anti-tampering message and the corresponding biometric feature value using a preset splicing mode to obtain a second data block;

[0090] Step S34: Encrypting the second data block using a second encryption algorithm to generate a second data block encryption result;

[0091] Step S35: comparing the encryption result of the first data block with the encryption result of the second data block;

[0092] Step S36: If the first data encryption result is the same as the second data encryption result, the target tamper-proof message has not been tampered with;

[0093] Step S37: If the first data encryption result is different from the second data encryption result, the target tamper-proof message has been tampered with and the target tamper-proof message is invalid.

[0094] In this embodiment, based on the encrypted biometric value sent by the terminal device and the anti-tampering request sent by the smart home device, the server independently calculates the HMAC digest value of the target anti-tampering message again. The server then compares the HMAC digest value of the target anti-tampering message generated in the large-screen refrigerator with the HMAC digest value of the target anti-tampering message generated in the server to determine whether the target anti-tampering message has been tampered with. If the two are the same, it indicates that the target anti-tampering message has not been tampered with; if they are different, it indicates that the target anti-tampering message has been tampered with. In this embodiment, although the server has received the target anti-tampering message sent by the smart home device and the encryption result of the first data block (i.e., the HMAC digest value of the target anti-tampering message calculated in the large-screen refrigerator), it is not sure whether the received target anti-tampering message has been tampered with. Therefore, it is necessary to apply the same splicing method and the same encryption method as the large-screen refrigerator. In this embodiment, the same splicing method is ordinary chain splicing, and the same encryption method is the second encryption algorithm, which is the HMAC-SM3 algorithm. In this way, it is possible to test whether the target anti-tampering message has been tampered with, thereby improving the security and reliability of communication between the large-screen refrigerator and the terminal device and server. In addition, the user is unaware of the anti-tampering process, ensuring the user experience.

[0095] Example 4:

[0096] This embodiment provides an anti-tampering communication device, which is applied to a terminal device, such as Figure 4 As shown, including:

[0097] An information acquisition module is used to obtain the biometric password information input by the user;

[0098] A feature extraction module, configured to extract a biometric feature value of the biometric password information;

[0099] a first encryption module, configured to encrypt the biometric value using a first encryption algorithm to obtain an encrypted biometric value;

[0100] A feature sending module, configured to send the encrypted biometric feature value to a server and send the biometric feature value to a smart home device;

[0101] The instruction sending module is used to send encrypted scene instructions to smart home devices in scenarios that require anti-tampering processing.

[0102] The information acquisition module, feature extraction module, first encryption module, feature sending module and instruction sending module are connected in sequence.

[0103] The anti-tampering communication device proposed in this embodiment is applied to terminal equipment, can obtain biometric password information, can extract biometric characteristic values ​​of biometric password information, can encrypt biometric characteristic values, can also send biometric characteristic values, and can detect anti-tampering processing scenarios. In scenarios where anti-tampering processing is required, encrypted scenario instructions are sent to smart home devices, and then communication is carried out between the smart home and the server, so that the target anti-tampering message is sent to the server safely and accurately.

[0104] Example 5:

[0105] This embodiment provides an anti-tampering communication device, which is applied to smart home devices, such as Figure 5 As shown, including:

[0106] A first feature receiving module, configured to receive a biometric feature value and an encrypted scenario instruction sent by a terminal device;

[0107] A request sending module, configured to send an anti-tampering request to a server based on the encrypted scenario instruction;

[0108] A random number receiving module, configured to receive a random number generated and sent by a server based on an anti-tampering request;

[0109] A first data splicing module is used to splice the target anti-tampering message and the biometric feature value using a preset splicing mode to obtain a first data block;

[0110] a second encryption module, encrypting the first data block using a second encryption algorithm to generate an encryption result of the first data block;

[0111] The encryption result sending module is used to send the target anti-tampering message and the encryption result of the first data block to the server.

[0112] The first feature receiving module, the request sending module, the random number receiving module, the first data splicing module, the second encryption module and the encryption result sending module are connected in sequence.

[0113] The tamper-proof communication device proposed in this embodiment, when applied to smart home devices, can receive biometric values ​​and encrypted scenario instructions from a terminal device, send an anti-tampering request to a server based on the encrypted scenario instruction, and then, through a first data concatenation module and a second encryption module, concatenate and encrypt the target tamper-proof message and the biometric value, and send the encrypted result to the server. This embodiment improves the security and reliability between smart home devices and servers. By utilizing the biometric values ​​of smart home devices, the anti-tampering process is upgraded for security and practicality. Furthermore, the user is unaware of the setup and anti-tampering processes, ensuring a high-quality user experience.

[0114] Example 6:

[0115] This embodiment proposes an anti-tampering communication device, which is applied to a server, such as Figure 6 As shown, including:

[0116] A second feature receiving module is used to receive the encrypted biometric feature value sent by the terminal device and the anti-tampering request sent by the smart home device;

[0117] A random number sending module, configured to generate a random number based on the anti-tampering request and send the random number to a smart home device;

[0118] a second data splicing module, configured to receive the target anti-tampering message and the encryption result of the first data block sent by the smart home device, and splice the target anti-tampering message and the corresponding biometric feature value using a preset splicing mode to obtain a second data block;

[0119] a third encryption module, configured to encrypt the second data block using a second encryption algorithm to generate an encryption result of the second data block;

[0120] A comparison module is used to compare the encryption result of the first data block with the encryption result of the second data block; if the first data encryption result is the same as the second data encryption result, the target anti-tampering message has not been tampered with; if the first data encryption result is different from the second data encryption result, the target anti-tampering message has been tampered with and the target anti-tampering message is invalid.

[0121] The second feature receiving module, the random number sending module, the second data splicing module, the third encryption module and the comparison module are connected in sequence.

[0122] The tamper-proof communication device proposed in this embodiment, when applied to a server, enables the server to independently recalculate the encryption result of the corresponding data block of the target tamper-proof message and compare it with the received encryption result to determine whether the target tamper-proof message has been tampered with. If the two are the same, it indicates that the target tamper-proof message has not been tampered with; if they are different, it indicates that the target tamper-proof message has been tampered with. This embodiment can test whether the target tamper-proof message has been tampered with, improving the security and reliability of communication between large-screen refrigerators, terminal devices, and servers. In addition, users are unaware of the tamper-proof process, ensuring a high user experience.

[0123] Example 7:

[0124] This embodiment proposes a terminal device, including: one or more processors, and a memory, wherein the memory stores instructions, and when the instructions are executed by the one or more processors, the one or more processors execute the anti-tampering communication method described in Example 1.

[0125] The processor is used to execute all or part of the steps in the tamper-proof communication method in the above embodiment. The memory is used to store various types of data, such as instructions of any application or method in the electronic device, and data related to the application.

[0126] The processor can be an application specific integrated circuit (ASIC), a digital signal processor (DSP), a programmable logic device (PLD), a field programmable gate array (FPGA), a controller, a microcontroller, a microprocessor or other electronic components, and is used to execute the anti-tampering communication method described in the above embodiments.

[0127] Example 8:

[0128] This embodiment proposes a smart home device, including: one or more processors, and a memory, wherein the memory stores instructions, and when the instructions are executed by the one or more processors, the one or more processors execute the anti-tampering communication method as described in Example 2.

[0129] The smart home device includes a smart refrigerator.

[0130] The processor is used to execute all or part of the steps in the tamper-proof communication method in the above embodiment. The memory is used to store various types of data, such as instructions of any application or method in the electronic device, and data related to the application.

[0131] The processor can be an application specific integrated circuit (ASIC), a digital signal processor (DSP), a programmable logic device (PLD), a field programmable gate array (FPGA), a controller, a microcontroller, a microprocessor or other electronic components, and is used to execute the anti-tampering communication method described in the above embodiments.

[0132] Example 9:

[0133] This embodiment proposes a server, comprising: one or more processors, and a memory, wherein the memory stores instructions, and when the instructions are executed by the one or more processors, the one or more processors execute the tamper-proof communication method described in Example 3.

[0134] The processor is used to execute all or part of the steps in the tamper-proof communication method in the above embodiment. The memory is used to store various types of data, such as instructions of any application or method in the electronic device, and data related to the application.

[0135] The processor can be an application specific integrated circuit (ASIC), a digital signal processor (DSP), a programmable logic device (PLD), a field programmable gate array (FPGA), a controller, a microcontroller, a microprocessor or other electronic components, and is used to execute the anti-tampering communication method described in the above embodiments.

[0136] Example 10:

[0137] The present application proposes a computer-readable storage medium, which is applied to a client. The computer-readable storage medium stores a computer program. When the computer program is executed by one or more processors, it implements the tamper-proof communication method described in Examples 1 to 3.

[0138] The functional units in the various embodiments of the present application may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. If the functions are implemented in the form of software functional units and sold or used as independent products, they may be stored in a computer-readable storage medium.

[0139] Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the anti-tampering communication method described in each embodiment of the present application.

[0140] The aforementioned storage media include: flash memory, hard disk, multimedia card, card-type memory (for example, SD (Secure Digital Memory Card) or DX (Memory Data Register, MDR abbreviation, memory data register) memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, CD, server, APP (Application, abbreviation of application software) application store, etc. Various media that can store program verification codes, on which a computer program is stored, and when the computer program is executed by the processor, it can implement the various steps of the anti-tampering communication method.

[0141] The various embodiments in the present disclosure are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments.

[0142] The scope of protection of the present disclosure is not limited to the above-described embodiments. Obviously, those skilled in the art may make various modifications and variations to the present disclosure without departing from the scope and spirit of the present disclosure. If such modifications and variations fall within the scope of the claims of the present disclosure and their equivalents, the present disclosure is intended to include such modifications and variations.

Claims

1. A tamper-proof communication method, applied to smart home devices, characterized in that: include: Receiving a biometric value sent by a terminal device and an encrypted scenario instruction sent by the terminal device when the terminal device monitors the occurrence of an anti-tampering processing scenario; Sending an anti-tampering request to a server based on the encrypted scenario instruction; Receive the random number generated and sent by the server based on the anti-tampering request; splicing the target anti-tampering message and the biometric characteristic value using a preset splicing mode to obtain a first data block; Encrypting the first data block using a second encryption algorithm to generate an encryption result of the first data block; The target tamper-proof message and the encryption result of the first data block are sent to the server.

2. The tamper-proof communication method according to claim 1, wherein: The second encryption algorithm is the HMAC algorithm.

3. The tamper-proof communication method according to claim 2, wherein: The HMAC algorithm is the HMAC-SM3 algorithm.

4. The tamper-proof communication method according to claim 1, wherein: The preset splicing mode is chain splicing.

5. A tamper-proof communication method, applied to a server, characterized in that: include: Receive the encrypted biometric value sent by the terminal device and the anti-tampering request sent by the smart home device when the anti-tampering processing scenario occurs; generating a random number based on the anti-tampering request, and sending the random number to the smart home device; receiving a target anti-tampering message and a first data block encryption result sent by a smart home device, wherein the first data block encryption result is obtained by splicing the target anti-tampering message and the biometric feature value using a preset splicing mode to obtain a first data block; and encrypting the first data block using a second encryption algorithm to generate the first data block encryption result; splicing the target tamper-proof message and the biometric value using a preset splicing mode to obtain a second data block; Encrypting the second data block using a second encryption algorithm to generate a second data block encryption result; comparing the encryption result of the first data block with the encryption result of the second data block; If the encryption result of the first data block is the same as the encryption result of the second data block, the target tamper-proof message has not been tampered with; If the encryption result of the first data block is different from the encryption result of the second data block, the target tamper-proof message has been tampered with and the target tamper-proof message is invalid.

6. A tamper-proof communication device, applied to smart home devices, characterized in that: include: A first feature receiving module is configured to receive a biometric feature value sent by a terminal device and an encrypted scenario instruction sent by the terminal device when the terminal device monitors the occurrence of an anti-tampering processing scenario; A request sending module, configured to send an anti-tampering request to a server based on the encrypted scenario instruction; A random number receiving module, configured to receive a random number generated and sent by a server based on an anti-tampering request; A first data splicing module is used to splice the target anti-tampering message and the biometric feature value using a preset splicing mode to obtain a first data block; a second encryption module, encrypting the first data block using a second encryption algorithm to generate an encryption result of the first data block; The encryption result sending module is used to send the target anti-tampering message and the encryption result of the first data block to the server.

7. A tamper-proof communication device, applied to a server, characterized in that: include: A second feature receiving module is used to receive the encrypted biometric feature value sent by the terminal device and the anti-tampering request sent by the smart home device when the anti-tampering processing scenario occurs; A random number sending module, configured to generate a random number based on the anti-tampering request and send the random number to a smart home device; a second data concatenation module configured to receive a target anti-tampering message and an encryption result of the first data block sent by the smart home device, and concatenate the target anti-tampering message and the biometric value using a preset concatenation mode to obtain a second data block; wherein the encryption result of the first data block is the first data block obtained by concatenating the target anti-tampering message and the biometric value using the preset concatenation mode; and encrypt the first data block using a second encryption algorithm to generate an encryption result of the first data block; a third encryption module, configured to encrypt the second data block using a second encryption algorithm to generate an encryption result of the second data block; A comparison module is used to compare the encryption result of the first data block with the encryption result of the second data block; if the encryption result of the first data block is the same as the encryption result of the second data block, the target anti-tampering message has not been tampered with; if the encryption result of the first data block is different from the encryption result of the second data block, the target anti-tampering message has been tampered with and the target anti-tampering message is invalid.

8. A smart home device, characterized in that: include: One or more processors, and a memory, wherein the memory stores instructions, and when the instructions are executed by the one or more processors, the one or more processors execute the tamper-proof communication method as described in any one of claims 1 to 4 above.

9. The smart home device according to claim 8, characterized in that: The smart home device includes a smart refrigerator.

10. A server, characterized in that: include: One or more processors, and a memory, wherein the memory stores instructions, and when the instructions are executed by the one or more processors, the one or more processors execute the tamper-proof communication method according to claim 5.

11. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by one or more processors, the anti-tampering communication method according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Privacy protection face recognition system and method for smart home

    CN112733114A