Automatic information clearing method and device, equipment and storage medium

By using the receiving device MAC address to encrypt information in the instant messaging tool and automatically clear it after decryption, the problem of privacy and security risks during the information transmission process is solved, and the high security and automatic deletion function of information transmission are achieved.

CN119995941APending Publication Date: 2025-05-13SHENZHEN COOCAA NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510004404.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-02
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

The existing instant messaging tools lack effective encryption measures in the process of information transmission, resulting in the leakage and abuse of personal information, making it difficult for users to effectively delete after falsely sending information, increasing privacy and security risks.

Method used

The information to be sent is encrypted through the MAC address of the receiving device, and the timer is triggered when the decrypted information is turned on. The decrypted information is automatically cleared after the timing is completed, ensuring that the information is only decrypted by the specific receiving device during transmission, and automatically deleted at the appropriate time, reducing the risk of data leakage.

Benefits of technology

Effectively prevent information from being stolen or tampered in the middle during transmission, improve the security of information transmission, ensure that false information is automatically cleared at the appropriate time, and reduce the risk of data leakage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119995941A_ABST
    Figure CN119995941A_ABST
Patent Text Reader

Abstract

The invention relates to an information automatic clearing method and device, equipment and a storage medium, the method comprises the following steps: receiving an encrypted data packet sent by target equipment, the target equipment encrypting to-be-sent information based on a receiving equipment MAC address, and packaging the obtained encrypted to-be-sent information to obtain the encrypted data packet; decrypting the encrypted data packet, triggering a timer to start timing when decrypted information is obtained and the decrypted information is opened, and automatically clearing the decrypted information when the timer finishes timing; compared with the prior art, the technical scheme of the invention can reduce the risk of data leakage and improve the security of information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of communications, and in particular to an automatic information clearing method, device, equipment and storage medium. Background Art

[0002] With the rapid development of modern information technology, the transmission channels of personal information are becoming increasingly diverse. Especially with the popularization of instant messaging software, information exchange has become an indispensable part of people's daily life. Despite this, many instant messaging tools currently do not take effective encryption measures during information transmission, which makes the privacy security of the transmission process face great risks and easily lead to the leakage and abuse of personal information.

[0003] Currently, most chat software only provides limited recall functions. If a user sends a message by mistake, he or she can only recall the message within a short period of time. Once the time window is exceeded, the message cannot be modified or deleted.

[0004] In this context, more and more news reports have reported the serious consequences of personal information leaks. Especially in cases where private information is sent by mistake or sensitive data is leaked, individuals often face extremely serious consequences, such as reputation damage, property loss, and even threats to personal safety. Therefore, how to effectively protect personal privacy information during the information transmission process has become a technical problem that urgently needs to be solved today. Summary of the invention

[0005] The present application provides a method, device, equipment and storage medium for automatic information clearing, which can reduce the risk of data leakage and improve the security of information.

[0006] In a first aspect, the present application provides a method for automatically clearing information, comprising: receiving an encrypted data packet sent by a target device, wherein the encrypted data packet is obtained by the target device encrypting the information to be sent based on the MAC address of the receiving device, and packaging the obtained encrypted information to be sent; decrypting the encrypted data packet, and when the decrypted information is obtained and the decrypted information is opened, triggering a timer to start timing, and when the timer finishes timing, automatically clearing the decrypted information.

[0007] In a possible implementation, before the target device encrypts the information to be sent based on the MAC address of the receiving device, it also includes: obtaining the MAC address of the receiving device corresponding to the receiving device; wherein, obtaining the MAC address of the receiving device corresponding to the receiving device specifically includes: generating an APR request frame based on the IP address of the receiving device, and broadcasting the APR request frame in the local area network, so that after the target receiving device in the local area network receives the APR request frame, it returns the MAC address of the receiving device to the target device based on unicast, wherein the IP address of the receiving device of the target receiving device is the same as the IP address in the APR request frame.

[0008] In one possible implementation, the target device encrypts the information to be sent based on the MAC address of the receiving device, specifically including: encoding the information to be sent and the MAC address of the receiving device respectively to obtain the code of the information to be sent and the MAC address code of the receiving device; performing XOR encryption on the code of the information to be sent based on a preset key and the MAC address code of the receiving device to obtain an XOR encrypted code, and using the XOR encrypted code as the encrypted information to be sent.

[0009] In one possible implementation, the obtained encrypted information to be sent is packaged and processed, specifically including: obtaining the IP address and MAC address of the receiving device, performing hash calculation on the MAC address of the receiving device based on a preset hash algorithm to obtain a hash value; using the IP address and the hash value as encapsulation header information, and encapsulating the encapsulation header information and the encrypted information to be sent to obtain an encrypted data packet.

[0010] In one possible implementation, the encrypted data packet is decrypted, specifically including: obtaining the encrypted information to be sent in the encrypted data packet; decrypting the encrypted information to be sent based on a preset key to obtain decrypted information; obtaining a MAC address, encoding the MAC address to obtain a device MAC address code; performing an XOR process on the decrypted information based on the device MAC address code to obtain an XOR decryption code, and determining the decryption information based on the XOR decryption code.

[0011] In one possible implementation, obtaining the encrypted information to be sent in the encrypted data packet specifically includes: obtaining the IP address of the encapsulation header information in the encrypted data packet, matching the IP address with a preset target IP address, and when it is detected that the IP address matches the target IP address, performing a hash calculation on the target MAC address based on a preset hash algorithm to obtain a target hash value; obtaining the hash value of the encapsulation header information in the encrypted data packet, matching the hash value with the target hash value, and when it is detected that the hash value matches the target hash value, obtaining the encrypted information to be sent in the encrypted data packet.

[0012] In a possible implementation, when decryption information is obtained and the decryption information is turned on, it also includes: detecting a target function permission control state, and when the target function permission control state is turned on, adjusting the target function permission control state to be turned off; and inserting invisible characters into the decryption information, and displaying the decryption information with the invisible characters inserted.

[0013] In the second aspect, the present application provides a method for automatically clearing information, including: encrypting the information to be sent based on the MAC address of the receiving device, and packaging the obtained encrypted information to be sent to obtain an encrypted data packet; sending the encrypted data packet to the receiving device, so that the receiving device decrypts the encrypted data packet after receiving the encrypted data packet, and when the decryption information is obtained and the decryption information is opened, triggering a timer to start timing, and when the timer completes the timing, automatically clearing the decrypted information.

[0014] In the third aspect, the present application provides an automatic information clearing device, comprising: a receiving module and a clearing module; wherein the receiving module is used to receive an encrypted data packet sent by a target device, wherein the encrypted data packet is obtained by the target device encrypting the information to be sent based on the MAC address of the receiving device, and packaging the obtained encrypted information to be sent; the clearing module is used to decrypt the encrypted data packet, and when the decrypted information is obtained and the decrypted information is opened, trigger a timer to start timing, and when the timer completes timing, automatically clear the decrypted information.

[0015] In a fourth aspect, the present application provides an automatic information clearing device, comprising: an encryption module and a sending module; wherein the encryption module is used to encrypt the information to be sent based on the MAC address of the receiving device, and to package the obtained encrypted information to be sent to obtain an encrypted data packet; the sending module is used to send the encrypted data packet to the receiving device, so that the receiving device decrypts the encrypted data packet after receiving the encrypted data packet, and when the decryption information is obtained and the decryption information is opened, a timer is triggered to start timing, and when the timer completes timing, the decrypted information is automatically cleared.

[0016] In a fifth aspect, an embodiment of the present application further provides a computer device, which includes a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the above method when executing the computer program.

[0017] In a sixth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program can implement the above method when executed by a processor.

[0018] The embodiments of the present application provide a method, device, equipment and storage medium for automatic information clearing, which have the following advantages over the prior art:

[0019] The method for automatically clearing information is to receive an encrypted data packet sent by a target device, wherein the encrypted data packet is obtained by the target device encrypting the information to be sent based on the MAC address of the receiving device, and packaging the obtained encrypted information to be sent; the encrypted data packet is decrypted, and when the decrypted information is obtained and the decrypted information is opened, a timer is triggered to start timing, and when the timer completes timing, the decrypted information is automatically cleared; compared with the prior art, the technical solution of the present application encrypts the information to be sent based on the MAC address of the receiving device during the encryption process, ensuring that only a specific receiving device can decrypt the information during the transmission process, thereby effectively preventing the information from being stolen or tampered with during the transmission process, thereby improving the security of information transmission; and when the decrypted confidential information is opened, the timer timing operation is also triggered to ensure that once the set time threshold is reached, the decrypted information will be automatically cleared; effectively avoiding the decrypted information from being stored in the device for a long time, especially in the case of mistakenly sending sensitive information; even if the user does not manually delete it in time, the system will automatically clear it after the set time, which can effectively reduce the risk of data leakage and improve the security of information. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0021] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0022] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.

[0023] Figure 1 This is a flowchart of an embodiment of an automatic information clearing method provided by the present application;

[0024] Figure 2 This is a flowchart of another embodiment of a method for automatically clearing information provided by the present application;

[0025] Figure 3 It is a structural schematic diagram of an embodiment of an automatic information clearing device provided by the present application;

[0026] Figure 4 It is a structural schematic diagram of another embodiment of an automatic information clearing device provided by the present application;

[0027] Figure 5 It is a structural schematic diagram of an electronic device provided by this application. DETAILED DESCRIPTION

[0028] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0029] The disclosure below provides many different embodiments or examples to realize the different structures of the present application. In order to simplify the disclosure of the present application, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present application. In addition, the present application can repeat reference numbers and / or letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed.

[0030] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0031] It should also be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0032] It should be further understood that the term “and / or” used in the specification and appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0033] As used in this specification and the appended claims, the term "if" may be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if [described condition or event] is detected" may be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.

[0034] Example 1, see Figure 1 , Figure 1 is a flowchart of an embodiment of an automatic information clearing method provided by the present application, such as Figure 1 As shown, the method includes steps 101 and 102, which are specifically as follows:

[0035] Step 101: receiving an encrypted data packet sent by a target device, wherein the encrypted data packet is obtained by the target device encrypting information to be sent based on a MAC address of a receiving device and packaging the encrypted information to be sent.

[0036] In one embodiment, before the target device encrypts the information to be sent based on the MAC address of the receiving device, the method further includes: obtaining the MAC address of the receiving device corresponding to the receiving device.

[0037] Specifically, since the MAC address (Media Access Control address) is a unique identifier of a network device at the physical layer, each device in a local area network has a unique MAC address; therefore, in the process of encrypted communication, in order to ensure that the sent information can only be received and decrypted by a specific receiving device, the MAC address corresponding to the receiving device is obtained and used to encrypt the information to be sent. This can ensure that the encrypted information can only be decrypted and used by the target receiving device, thereby ensuring the security and privacy of the information and preventing the data from being accessed by other devices during transmission.

[0038] In one embodiment, the target device refers to a sending device that sends information to a receiving device.

[0039] In one embodiment, obtaining the receiving device MAC address corresponding to the receiving device specifically includes: generating an APR request frame based on the IP address of the receiving device, and broadcasting the APR request frame in the local area network, so that after the target receiving device in the local area network receives the APR request frame, it returns the receiving device MAC address to the target device based on unicast, wherein the receiving device IP address of the target receiving device is the same as the IP address in the APR request frame.

[0040] Specifically, the target device collects its own source IP address and source MAC address, as well as the IP address corresponding to the receiving device, constructs an APR request frame based on the source IP address, the source MAC address and the IP address, and encapsulates the APR request frame in an Ethernet frame, and sends the Ethernet frame carrying the APR request frame to all devices in the local area network in a broadcast manner. After receiving the APR request frame in the Ethernet frame, all the devices will determine whether the IP address in the APR request frame is the same as their own IP address. If so, they will respond to the APR request frame and return its MAC address and the receiving device MAC address to the target device based on the source IP address in the APR request frame.

[0041] In one embodiment, the target device encrypts the information to be sent based on the MAC address of the receiving device, specifically including: encoding the information to be sent and the MAC address of the receiving device respectively to obtain the code of the information to be sent and the MAC address code of the receiving device; performing XOR encryption on the code of the information to be sent based on a preset key and the MAC address code of the receiving device to obtain an XOR encrypted code, and using the XOR encrypted code as the encrypted information to be sent.

[0042] Specifically, since the information to be sent may contain Chinese characters, Unicode encoding is performed on the information to be sent, so as to convert the information to be sent into a Unicode encoded byte stream, and the Unicode encoded byte stream is used as the encoding of the information to be sent.

[0043] Specifically, when encoding the MAC address of the receiving device, the MAC address of the receiving device is converted into a binary value, and the binary value is used as the encoding of the MAC address of the receiving device.

[0044] Specifically, when the information code to be sent is XOR-encrypted based on the preset key and the MAC address code of the receiving device, the information code to be sent is first XOR-processed based on the MAC address code of the receiving device to obtain the XOR code; and the XOR code is encrypted based on the preset key to obtain the XOR encrypted code.

[0045] Specifically, when the to-be-sent information code is XOR-processed based on the receiving device MAC address code, first determine whether the first code length corresponding to the to-be-sent information code is equal to the second code length corresponding to the receiving device MAC address code; if they are not equal, adjust the second code length corresponding to the MAC address code of the receiving device based on the first code length corresponding to the information code to be sent; if the first code length is greater than the second code length, repeat the receiving device MAC address code until the first code length is equal to the second code length; if the first code length is less than the second code length, perform stage processing on the second code length based on the first pass length until the first code length is equal to the second code length.

[0046] Specifically, the XOR code is encrypted using a symmetric encryption algorithm and the preset key, wherein the symmetric encryption key includes but is not limited to an AES encryption algorithm.

[0047] In one embodiment, since the encrypted information to be sent is usually generated at the application layer, in order to prevent the data from being intercepted, tampered with or lost during transmission, the encrypted information to be sent needs to be encapsulated in the format of a data packet so that the encrypted information to be sent can be securely transmitted in the network as expected.

[0048] In one embodiment, when the obtained encrypted information to be sent is packaged, the IP address and MAC address of the receiving device are obtained, and the MAC address of the receiving device is hashed based on a preset hash algorithm to obtain a hash value; the IP address and the hash value are used as encapsulation header information, and the encapsulation header information and the encrypted information to be sent are encapsulated to obtain an encrypted data packet.

[0049] Specifically, in encrypted communications, in order to ensure the security and traceability of data transmission, it is usually necessary to add additional header information to the data packet; this header information usually contains some key information, such as source IP address, destination IP address, data packet checksum, timestamp, etc.

[0050] Specifically, in the encapsulation header information, the hash value of the MAC address can be used as an integrity verification mechanism to prevent the data packet from being tampered with; if the data packet is modified during transmission, the receiving device will not be able to decrypt or verify the correctness of the data; therefore, putting the hash value of the receiving device's MAC address and the IP address in the encapsulation header can increase security and ensure that the encrypted data packet can only be received and decrypted by the target receiving device; this is because only the correct receiving device can match the specific MAC address hash value.

[0051] Specifically, when the MAC address of the receiving device is hashed based on a preset hash algorithm, the MAC address of the receiving device is used as the input of the preset hash algorithm, and a hash operation is performed to obtain a unique hash value; wherein the preset hash algorithm includes but is not limited to SHA-256, MD5, etc.

[0052] In one embodiment, after the target device packages the obtained encrypted information to be sent into an encrypted data packet, it sends the encrypted data packet to the receiving device corresponding to the IP address in the encapsulation header information in the encrypted data packet, so that the receiving device receives the encrypted data packet sent by the target device.

[0053] Step 102: decrypt the encrypted data packet, and when decryption information is obtained and opened, trigger a timer to start timing, and when the timer finishes timing, automatically clear the decryption information.

[0054] In one embodiment, when decrypting the encrypted data packet, the encrypted information to be sent in the encrypted data packet is obtained; the encrypted information to be sent is decrypted based on a preset key to obtain decrypted information; the MAC address is obtained, and the MAC address is encoded to obtain a device MAC address code; the decrypted information is XORed based on the device MAC address code to obtain an XOR decrypted code, and the decrypted information is determined based on the XOR decrypted code.

[0055] In one embodiment, obtaining the encrypted information to be sent in the encrypted data packet specifically includes: obtaining the IP address of the encapsulation header information in the encrypted data packet, matching the IP address with a preset target IP address, and when it is detected that the IP address matches the target IP address, performing a hash calculation on the target MAC address based on a preset hash algorithm to obtain a target hash value; obtaining the hash value of the encapsulation header information in the encrypted data packet, matching the hash value with the target hash value, and when it is detected that the hash value matches the target hash value, obtaining the encrypted information to be sent in the encrypted data packet.

[0056] Specifically, when it is detected that the IP address does not match the target IP address, the receiving device will discard the encrypted data packet.

[0057] Specifically, the preset target IP address is the IP address corresponding to the encrypted data packet receiving device; the target MAC address is the MAC address corresponding to the encrypted data packet receiving device.

[0058] Specifically, when the receiving device performs hash calculation on the target MAC address based on a preset hash algorithm, the preset hash algorithm used is the same as the hash algorithm used by the target device.

[0059] Specifically, when the IP address and hash value are matched and verified, the receiving device can confirm that the encrypted data packet is legitimate and the content in the encrypted data packet has not been tampered with; at this time, the encrypted information to be sent can be extracted from the encrypted data packet for further decryption or processing.

[0060] In one embodiment, when the encrypted information to be sent is decrypted based on a preset key, the preset key used is the preset key used by the target device when encrypting the information to be sent, and the target device uses a symmetric encryption algorithm when encrypting. Therefore, the receiving device can use the same key as that used for encryption and restore the encrypted information to be sent through a decryption algorithm, wherein the decryption algorithm is the inverse process of the encryption algorithm.

[0061] In one embodiment, when encoding the MAC address, the MAC address is converted into a binary value, and the binary value is used as the device MAC address encoding.

[0062] In one embodiment, since the MAC address code of the receiving device is used to perform XOR processing on the code of the information to be sent during the encryption process, during the decryption process, the XOR code after the XOR processing is XOR-processed again using the same MAC address code of the receiving device, so that the XOR code can be restored to the original code of the information to be sent, that is, the XOR decryption code, and the XOR decryption code is inversely encoded to obtain the decrypted information; in this process, if the MAC address of the receiving device does not match the MAC address of the receiving device received by the target device during the encryption process, even if the receiving device performs XOR processing, the obtained XOR decryption code cannot correctly restore the information sent by the target device.

[0063] Specifically, in this way, the security of the encryption and decryption process of information is ensured, especially during the information transmission process, only devices with the correct MAC address and preset key can correctly decrypt and read the message; even if an attacker obtains part of the data, he cannot easily decrypt or tamper with the data.

[0064] In one embodiment, after the decrypted information is obtained, the decrypted information is displayed in an invisible form on a display interface of the receiving device.

[0065] In one embodiment, by monitoring the user's operations on the display interface, such as clicking, sliding, etc., it is determined whether the user has clicked on the display area of ​​the decryption information; if so, the decryption information is adjusted to a visible form; and when the decryption information is in a visible form, it is considered that the decryption information is opened.

[0066] In one embodiment, after obtaining the decrypted information, especially for sensitive or confidential information, if there is no effective control mechanism, the information may be abused or leaked; especially after the decrypted information is displayed to the user, if the user can take screenshots, copy or record the screen at will, the information can easily be stored and disseminated externally.

[0067] In one embodiment, when decryption information is obtained and the decryption information is turned on, it also includes: detecting a target function permission control state, and when the target function permission control state is turned on, adjusting the target function permission control state to be turned off; and inserting invisible characters into the decryption information, and displaying the decryption information with the invisible characters inserted.

[0068] Specifically, the target functions include but are not limited to screenshot, copy and screen recording.

[0069] Specifically, by detecting whether target functions such as screenshot, copy, screen recording, etc. are enabled, if these target functions are already turned on, an automatic closing operation is performed; this control method can prevent users from performing improper copying or saving operations when viewing decrypted information.

[0070] Specifically, the invisible characters include but are not limited to zero-width spaces and zero-width hyphens, which are visually invisible but still exist in the text or information content. Even if the user tries to copy the decrypted information, the inserted invisible characters may disrupt the copy format of the information, causing the copied content to fail to display normally or become unusable. Similarly, when taking screenshots and recording screens, inserting invisible characters can also add some protection layers by changing the format or structure of the text content, making it impossible for the image generated during the screenshot to accurately restore the information content.

[0071] In one embodiment, when the decrypted information is obtained and opened, a timer is triggered to start timing, and when the timer finishes timing, the decrypted information is automatically cleared.

[0072] Specifically, when the decrypted information is opened, it means that the user has started to view the decrypted Western Sydney. At this time, a timer is started to record the time span from the display of the decrypted information to the end of the timing; wherein the timer is set with a preset timing time, the purpose of which is to control the maximum time that the user can view the decrypted information.

[0073] Specifically, the timer exists to ensure that the decrypted information is only valid for a short period of time; when the timer reaches the preset time, the receiving device will automatically clear the decrypted information to prevent the information from being exposed for a long time after being decrypted.

[0074] Specifically, the decrypted information is automatically cleared, including but not limited to deleting the decrypted information displayed on the display interface and clearing the decrypted information in the memory, so as to ensure that the decrypted information does not stay on the display screen of the receiving device for a long time, thereby reducing the risk of data leakage.

[0075] Preferably, the storage address of the decryption information is obtained, and the storage address is cleared or memory erased.

[0076] Example 2, see Figure 2 , Figure 2 FIG. 1 is a flow chart of another embodiment of a method for automatically clearing information provided by the present application. Figure 2 As shown, the method includes steps 201-202, which are specifically as follows:

[0077] Step 201: Encrypt the information to be sent based on the MAC address of the receiving device, and package the encrypted information to be sent to obtain an encrypted data packet.

[0078] Step 202: Send the encrypted data packet to a receiving device, so that the receiving device decrypts the encrypted data packet after receiving the encrypted data packet, and when the decryption information is obtained and the decryption information is opened, triggers a timer to start timing, and when the timer finishes timing, automatically clears the decryption information.

[0079] In one embodiment, before encrypting the information to be sent based on the MAC address of the receiving device, the method further includes: acquiring the MAC address of the receiving device corresponding to the receiving device.

[0080] In one embodiment, obtaining a receiving device MAC address corresponding to a receiving device specifically includes: generating an APR request frame based on the IP address of the receiving device, and broadcasting the APR request frame in a local area network, so that after receiving the APR request frame, the target receiving device in the local area network returns the receiving device MAC address to the target device based on a unicast manner, wherein the receiving device IP address of the target receiving device is the same as the IP address in the APR request frame.

[0081] In one embodiment, the information to be sent is encrypted based on the MAC address of the receiving device, specifically including: encoding the information to be sent and the MAC address of the receiving device respectively to obtain the code of the information to be sent and the MAC address code of the receiving device; performing XOR encryption on the code of the information to be sent based on a preset key and the MAC address code of the receiving device to obtain an XOR encrypted code, and using the XOR encrypted code as the encrypted information to be sent.

[0082] In one embodiment, the obtained encrypted information to be sent is packaged and processed, specifically including: obtaining the IP address and MAC address of the receiving device, performing hash calculation on the MAC address of the receiving device based on a preset hash algorithm to obtain a hash value; using the IP address and the hash value as encapsulation header information, and encapsulating the encapsulation header information and the encrypted information to be sent to obtain an encrypted data packet.

[0083] In one embodiment, the encrypted data packet is decrypted, specifically including: obtaining the encrypted information to be sent in the encrypted data packet; decrypting the encrypted information to be sent based on a preset key to obtain decrypted information; obtaining a MAC address, encoding the MAC address to obtain a device MAC address code; performing an XOR process on the decrypted information based on the device MAC address code to obtain an XOR decryption code, and determining the decryption information based on the XOR decryption code.

[0084] In one embodiment, obtaining the encrypted information to be sent in the encrypted data packet specifically includes: obtaining the IP address of the encapsulation header information in the encrypted data packet, matching the IP address with a preset target IP address, and when it is detected that the IP address matches the target IP address, performing a hash calculation on the target MAC address based on a preset hash algorithm to obtain a target hash value; obtaining the hash value of the encapsulation header information in the encrypted data packet, matching the hash value with the target hash value, and when it is detected that the hash value matches the target hash value, obtaining the encrypted information to be sent in the encrypted data packet.

[0085] In one embodiment, when decryption information is obtained and the decryption information is turned on, it also includes: detecting a target function permission control state, and when the target function permission control state is turned on, adjusting the target function permission control state to be turned off; and inserting invisible characters into the decryption information, and displaying the decryption information with the invisible characters inserted.

[0086] Example 3, see Figure 3 , Figure 3 The present application provides a structural diagram of another embodiment of an automatic information clearing device; corresponding to the above automatic information clearing method, the present application also provides an automatic information clearing device. The automatic information clearing device includes a module for executing the above automatic information clearing method, and the automatic information clearing device can be configured in a desktop computer, a tablet computer, a laptop, and other terminals; specifically, the automatic information clearing device includes a receiving module 301 and a clearing module 302.

[0087] The receiving module 301 is used to receive an encrypted data packet sent by a target device, wherein the encrypted data packet is obtained by the target device encrypting the information to be sent based on the MAC address of the receiving device and packaging the obtained encrypted information to be sent.

[0088] The clearing module 302 is used to decrypt the encrypted data packet, and when the decryption information is obtained and opened, trigger the timer to start timing, and when the timer finishes timing, automatically clear the decryption information.

[0089] In one embodiment, before the target device in the receiving module 301 encrypts the information to be sent based on the MAC address of the receiving device, the method further includes: acquiring the MAC address of the receiving device corresponding to the receiving device.

[0090] In one embodiment, obtaining the receiving device MAC address corresponding to the receiving device specifically includes: generating an APR request frame based on the IP address of the receiving device, and broadcasting the APR request frame in the local area network, so that after the target receiving device in the local area network receives the APR request frame, it returns the receiving device MAC address to the target device based on unicast, wherein the receiving device IP address of the target receiving device is the same as the IP address in the APR request frame.

[0091] In one embodiment, the target device in the receiving module 301 encrypts the information to be sent based on the MAC address of the receiving device, specifically including: encoding the information to be sent and the MAC address of the receiving device respectively to obtain the code of the information to be sent and the MAC address code of the receiving device; performing XOR encryption on the code of the information to be sent based on a preset key and the MAC address code of the receiving device to obtain an XOR encrypted code, and using the XOR encrypted code as the encrypted information to be sent.

[0092] In one embodiment, the encrypted information to be sent is packaged and processed in the receiving module 301, specifically including: obtaining the IP address and the MAC address of the receiving device, performing hash calculation on the MAC address of the receiving device based on a preset hash algorithm to obtain a hash value; using the IP address and the hash value as encapsulation header information, and encapsulating the encapsulation header information and the encrypted information to be sent to obtain an encrypted data packet.

[0093] In one embodiment, the clearing module 302 is used to decrypt the encrypted data packet, specifically including: obtaining the encrypted information to be sent in the encrypted data packet; decrypting the encrypted information to be sent based on a preset key to obtain decrypted information; obtaining a MAC address, encoding the MAC address to obtain a device MAC address code; performing an XOR process on the decrypted information based on the device MAC address code to obtain an XOR decryption code, and determining the decryption information based on the XOR decryption code.

[0094] In one embodiment, the clearing module 302 is used to obtain the encrypted information to be sent in the encrypted data packet, specifically including: obtaining the IP address of the encapsulation header information in the encrypted data packet, matching the IP address with a preset target IP address, and when it is detected that the IP address matches the target IP address, performing a hash calculation on the target MAC address based on a preset hash algorithm to obtain a target hash value; obtaining the hash value of the encapsulation header information in the encrypted data packet, matching the hash value with the target hash value, and when it is detected that the hash value matches the target hash value, obtaining the encrypted information to be sent in the encrypted data packet.

[0095] In one embodiment, the clearing module 302 is used to, when the decrypted information is obtained and the decrypted information is turned on, further include: detecting the target function permission control state, and when the target function permission control state is turned on, adjusting the target function permission control state to be turned off; and inserting invisible characters into the decrypted information, and displaying the decrypted information with the invisible characters inserted.

[0096] The above-mentioned automatic information clearing device can implement the automatic information clearing method of the above-mentioned method embodiment. The optional items in the above-mentioned method embodiment are also applicable to this embodiment and will not be described in detail here.

[0097] Example 4, see Figure 4 , Figure 4 4 is a schematic diagram of another embodiment of an automatic information clearing device provided by the present application. Corresponding to the above automatic information clearing method, the present application also provides an automatic information clearing device. The automatic information clearing device includes a module for executing the above automatic information clearing method, and the automatic information clearing device can be configured in a desktop computer, a tablet computer, a laptop computer, and other terminals. Specifically, the automatic information clearing device includes an encryption module 401 and a sending module 402.

[0098] The encryption module 401 is used to encrypt the information to be sent based on the MAC address of the receiving device, and to package the obtained encrypted information to be sent to obtain an encrypted data packet.

[0099] The sending module 402 is used to send the encrypted data packet to the receiving device, so that the receiving device decrypts the encrypted data packet after receiving the encrypted data packet, and when the decryption information is obtained and the decryption information is opened, the timer is triggered to start timing, and when the timer finishes timing, the decryption information is automatically cleared.

[0100] In one embodiment, the encryption module 401 is used to encrypt the information to be sent based on the MAC address of the receiving device, and further includes: obtaining the MAC address of the receiving device corresponding to the receiving device;

[0101] In one embodiment, the encryption module 401 is used to obtain the receiving device MAC address corresponding to the receiving device, specifically including: generating an APR request frame based on the IP address of the receiving device, and broadcasting the APR request frame in the local area network, so that after the target receiving device in the local area network receives the APR request frame, it returns the receiving device MAC address to the target device based on unicast, wherein the receiving device IP address of the target receiving device is the same as the IP address in the APR request frame.

[0102] In one embodiment, the encryption module 401 is used to encrypt the information to be sent based on the MAC address of the receiving device, specifically including: encoding the information to be sent and the MAC address of the receiving device respectively to obtain the code of the information to be sent and the MAC address code of the receiving device; performing XOR encryption on the code of the information to be sent based on a preset key and the MAC address code of the receiving device to obtain an XOR encrypted code, and using the XOR encrypted code as the encrypted information to be sent.

[0103] In one embodiment, the encryption module 401 is used to package the obtained encrypted information to be sent, specifically including: obtaining the IP address and the MAC address of the receiving device, and performing hash calculation on the MAC address of the receiving device based on a preset hash algorithm to obtain a hash value; using the IP address and the hash value as encapsulation header information, and encapsulating the encapsulation header information and the encrypted information to be sent to obtain an encrypted data packet.

[0104] In one embodiment, the sending module 402 decrypts the encrypted data packet, specifically including: obtaining the encrypted information to be sent in the encrypted data packet; decrypting the encrypted information to be sent based on a preset key to obtain decrypted information; obtaining a MAC address, encoding the MAC address to obtain a device MAC address code; performing XOR processing on the decrypted information based on the device MAC address code to obtain an XOR decryption code, and determining the decryption information based on the XOR decryption code.

[0105] In one embodiment, the sending module 402 obtains the encrypted information to be sent in the encrypted data packet, specifically including: obtaining the IP address of the encapsulation header information in the encrypted data packet, matching the IP address with a preset target IP address, and when it is detected that the IP address matches the target IP address, performing a hash calculation on the target MAC address based on a preset hash algorithm to obtain a target hash value; obtaining the hash value of the encapsulation header information in the encrypted data packet, matching the hash value with the target hash value, and when it is detected that the hash value matches the target hash value, obtaining the encrypted information to be sent in the encrypted data packet.

[0106] In one embodiment, when the decrypted information is obtained in the sending module 402 and the decrypted information is turned on, it also includes: detecting the target function permission control state, and when the target function permission control state is turned on, adjusting the target function permission control state to be turned off; and inserting invisible characters into the decrypted information, and displaying the decrypted information with the invisible characters inserted.

[0107] The above-mentioned automatic information clearing device can implement the automatic information clearing method of the above-mentioned method embodiment. The optional items in the above-mentioned method embodiment are also applicable to this embodiment and will not be described in detail here.

[0108] like Figure 5 As shown, Figure 5 It is a structural diagram of an electronic device provided by the present application; it includes a processor 111, a communication interface 112, a memory 113 and a communication bus 114, wherein the processor 111, the communication interface 112, and the memory 113 communicate with each other through the communication bus 114, and the memory 113 is used to store computer programs.

[0109] In one embodiment of the present application, the processor 111 is used to implement the automatic information clearing method provided by any of the aforementioned method embodiments when executing the program stored in the memory 113.

[0110] It is understood by those skilled in the art that all or part of the processes in the method for implementing the above embodiment can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a storage medium, which is a computer-readable storage medium. The computer program is executed by at least one processor in the computer system to implement the process steps of the embodiment of the above method.

[0111] Therefore, an embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method for automatically clearing information provided in any of the aforementioned method embodiments are implemented.

[0112] The storage medium is a physical, non-transient storage medium, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk, etc., which can store program codes. The computer-readable storage medium can be non-volatile or volatile.

[0113] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0114] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of each unit is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.

[0115] The steps in the method of the embodiment of the present application can be adjusted in order, combined and deleted according to actual needs. The units in the device of the embodiment of the present application can be combined, divided and deleted according to actual needs. In addition, the functional units in the various embodiments of the present application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0116] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, terminal, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application.

[0117] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0118] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

[0119] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A method for automatically clearing information, characterized in that: include: Receiving an encrypted data packet sent by a target device, wherein the encrypted data packet is obtained by the target device encrypting information to be sent based on the MAC address of the receiving device and packaging the encrypted information to be sent; The encrypted data packet is decrypted, and when the decrypted information is obtained and opened, a timer is triggered to start timing, and when the timer finishes timing, the decrypted information is automatically cleared.

2. The method according to claim 1, characterized in that The target device encrypts the information to be sent based on the MAC address of the receiving device, specifically including: Encoding the information to be sent and the MAC address of the receiving device respectively to obtain the code of the information to be sent and the code of the MAC address of the receiving device; The information code to be sent is XOR-encrypted based on a preset key and the MAC address code of the receiving device to obtain an XOR-encrypted code, and the XOR-encrypted code is used as the encrypted information to be sent.

3. The method according to claim 1, characterized in that: The obtained encrypted information to be sent is packaged and processed, specifically including: Obtaining the IP address and MAC address of the receiving device, and performing hash calculation on the MAC address of the receiving device based on a preset hash algorithm to obtain a hash value; The IP address and the hash value are used as encapsulation header information, and the encapsulation header information and the encrypted information to be sent are encapsulated to obtain an encrypted data packet.

4. The method according to claim 1, characterized in that: The encrypted data packet is decrypted, specifically comprising: Obtaining the encrypted information to be sent in the encrypted data packet; Decrypting the encrypted information to be sent based on a preset key to obtain decrypted information; Obtain a MAC address, encode the MAC address, and obtain a device MAC address code; The decryption information is XOR-ed based on the device MAC address code to obtain an XOR decryption code, and the decryption information is determined based on the XOR decryption code.

5. The method according to claim 1, characterized in that: When the decrypted information is obtained and the decrypted information is opened, the method further includes: Detecting a target function permission control state, and when the target function permission control state is on, adjusting the target function permission control state to off; Invisible characters are inserted into the decrypted information, and the decrypted information with the invisible characters inserted is displayed.

6. A method for automatically clearing information, characterized in that: include: Encrypt the information to be sent based on the MAC address of the receiving device, and package the encrypted information to be sent to obtain an encrypted data packet; The encrypted data packet is sent to a receiving device, so that the receiving device decrypts the encrypted data packet after receiving the encrypted data packet, and when the decryption information is obtained and the decryption information is opened, the timer is triggered to start timing, and when the timer finishes timing, the decryption information is automatically cleared.

7. An automatic information clearing device, characterized in that: include: A receiving module and a clearing module; The receiving module is used to receive an encrypted data packet sent by a target device, wherein the encrypted data packet is obtained by the target device encrypting the information to be sent based on the MAC address of the receiving device and packaging the encrypted information to be sent; The clearing module is used to decrypt the encrypted data packet, and when the decryption information is obtained and opened, trigger the timer to start timing, and when the timer finishes timing, automatically clear the decryption information.

8. An automatic information clearing device, characterized in that: include: Encryption module and sending module; The encryption module is used to encrypt the information to be sent based on the MAC address of the receiving device, and to package the encrypted information to be sent to obtain an encrypted data packet; The sending module is used to send the encrypted data packet to the receiving device, so that the receiving device decrypts the encrypted data packet after receiving the encrypted data packet, and when the decryption information is obtained and the decryption information is opened, the timer is triggered to start timing, and when the timer finishes timing, the decryption information is automatically cleared.

9. A computer device, characterized in that: The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the method according to any one of claims 1 to 6 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 6 can be implemented.