CN113824697A - Network distribution method, device and equipment of equipment and storage medium - Google Patents

Network distribution method, device and equipment of equipment and storage medium Download PDF

Info

Publication number
CN113824697A
CN113824697A CN202110993323.5A CN202110993323A CN113824697A CN 113824697 A CN113824697 A CN 113824697A CN 202110993323 A CN202110993323 A CN 202110993323A CN 113824697 A CN113824697 A CN 113824697A
Authority
CN
China
Prior art keywords
equipment
distribution network
key
encrypted
distribution
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110993323.5A
Other languages
Chinese (zh)
Inventor
刘洪钊
白青昀
巫锦辉
肖百钦
杨舒
仝磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai, Zhuhai Lianyun Technology Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202110993323.5A priority Critical patent/CN113824697A/en
Publication of CN113824697A publication Critical patent/CN113824697A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2807Exchanging configuration information on appliance services in a home automation network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/06Network architectures or network communication protocols for network security for supporting key management in a packet data network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0816Key establishment, i.e. cryptographic processes or cryptographic protocols whereby a shared secret becomes available to two or more parties, for subsequent use
    • H04L9/0819Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s)
    • H04L9/0822Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s) using key encryption key
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0861Generation of secret information including derivation or calculation of cryptographic keys or passwords

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention relates to a network distribution method, a device, equipment and a storage medium of the equipment, wherein the method comprises the following steps: when the first equipment is determined to enter a preset mode, the first equipment receives a broadcast message sent by second equipment, wherein the first equipment is equipment which finishes the distribution of the network, and the preset mode is a distribution network mode; the method comprises the steps that distribution network information is encrypted according to a first secret key to obtain the encrypted distribution network information, and the first secret key is encrypted to obtain a second secret key; and sending the encrypted distribution network information and the second key to second equipment so that the second equipment can execute distribution network operation based on the encrypted distribution network information and the second key. Therefore, the network distribution information can be encrypted by using a safe encryption method, and other devices to be distributed are distributed through the distributed network devices.

Description

Network distribution method, device and equipment of equipment and storage medium
Technical Field
The embodiment of the invention relates to the field of intelligent home network distribution, in particular to a network distribution method, a network distribution device, equipment and a storage medium of the equipment.
Background
When the existing smart home is networked, a user needs to perform network configuration through terminals such as a mobile phone, and needs to set equipment to a network distribution mode, the mobile phone sends an SSID and a password to the equipment to be distributed through modes such as Bluetooth connection, and the equipment is connected with a router after receiving the SSID and the password so as to complete network distribution operation.
The distribution network information sent by the prior art is not encrypted, information is easy to reveal, and when a plurality of devices need to be networked, users need to distribute networks one by one, and the network distribution for other devices cannot be carried out autonomously through one device.
Disclosure of Invention
In view of this, in order to solve the technical problem or part of the technical problem that a plurality of devices cannot be simultaneously distributed through one device, embodiments of the present invention provide a method, an apparatus, a device, and a storage medium for distributing a network of devices.
In a first aspect, an embodiment of the present invention provides a network distribution method for a device, including:
when the first equipment is determined to enter a preset mode, the first equipment receives a broadcast message sent by second equipment, wherein the first equipment is equipment which finishes the distribution of the network, and the preset mode is a distribution network mode;
the method comprises the steps that distribution network information is encrypted according to a first secret key to obtain the encrypted distribution network information, and the first secret key is encrypted to obtain a second secret key;
and sending the encrypted distribution network information and the second key to second equipment so that the second equipment can execute distribution network operation based on the encrypted distribution network information and the second key.
In one possible embodiment, the determining that the first device enters the preset mode includes:
receiving a preset mode control instruction sent by a client, wherein the preset mode control instruction carries an encrypted text;
and responding to the preset mode control instruction, and controlling the first equipment to enter a preset mode.
In a possible embodiment, the encrypting the first key to obtain a second key includes:
acquiring the encrypted text from the preset mode control instruction;
and encrypting the first key by using the encrypted text to obtain a second key.
In a possible embodiment, the second device performs a distribution network operation based on the encrypted distribution network information and the second key, including:
receiving an encrypted text sent by the client;
decrypting the second key based on the encrypted text to obtain the first key;
decrypting the encrypted distribution network information by using the first key to obtain the distribution network information;
and executing the distribution network operation of the second equipment based on the distribution network information.
In one possible embodiment, the encryption mode may include:
the encryption is performed using an obfuscated encryption algorithm.
In one possible embodiment, the method further comprises:
after the second equipment completes the distribution of the network, receiving attribute information sent by the second equipment;
and sending the attribute information to network equipment.
In a second aspect, an embodiment of the present invention provides a network distribution method for a device, including:
the second equipment receives the encrypted distribution network information and a second key;
and executing distribution network operation based on the encrypted distribution network information and the second key.
In one possible embodiment, the method further comprises:
receiving an encrypted text sent by a client;
the executing distribution network operation based on the encrypted distribution network information and the second key comprises:
decrypting the second key based on the encrypted text to obtain the first key;
decrypting the encrypted distribution network information by using the first key to obtain the distribution network information;
and executing the distribution network operation of the second equipment based on the distribution network information.
In one possible embodiment, the method further comprises:
and when the second equipment is determined to be successfully distributed, sending the attribute information of the second equipment to the first equipment so that the first equipment sends the attribute information to the network equipment.
In a third aspect, an embodiment of the present invention provides a network distribution apparatus for a device, including:
the first receiving module is used for receiving a broadcast message sent by second equipment by first equipment when the first equipment is determined to enter a preset mode, wherein the first equipment is equipment which finishes a distribution network, and the preset mode is a distribution network mode;
the encryption module is used for encrypting the distribution network information according to a first key to obtain the encrypted distribution network information and encrypting the first key to obtain a second key;
and the sending module is used for sending the encrypted distribution network information and the second key to second equipment so that the second equipment can execute distribution network operation based on the encrypted distribution network information and the second key.
In a fourth aspect, an embodiment of the present invention provides a network distribution apparatus for a device, including:
the second receiving module is used for receiving the encrypted distribution network information and the second key by the second equipment;
and the distribution network module is used for executing distribution network operation based on the encrypted distribution network information and the second key.
In a fifth aspect, an embodiment of the present invention provides an apparatus, including: the network distribution method comprises a processor and a memory, wherein the processor is used for executing a network distribution program of any device stored in the memory so as to realize the network distribution method of any device in any one of the first aspect or the second aspect.
In a sixth aspect, an embodiment of the present invention provides a storage medium, where the storage medium stores one or more programs, and the one or more programs are executable by one or more processors to implement the network distribution method of any device in any one of the first aspect or the second aspect.
The method for distributing the network by the equipment provided by the embodiment of the invention receives the broadcast message sent by the second equipment after the first equipment with the distributed network enters the network distribution mode; the distribution network information is encrypted through the first key, and the first key is encrypted to obtain a second key; and sending the encrypted distribution network information and the second key to second equipment, wherein the second equipment executes distribution network operation based on the encrypted distribution network information and the second key, and can transmit the distribution network information more safely by encrypting twice, and one piece of distributed equipment is used for distributing networks to other pieces of equipment.
Drawings
Fig. 1 is a schematic flowchart of a method for distributing a network by using devices according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of another method for distributing a network by using devices according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a method for distributing a network by using another device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an apparatus of a device distribution network according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of another device of a device distribution network according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
For the convenience of understanding of the embodiments of the present invention, the following description will be further explained with reference to specific embodiments, which are not to be construed as limiting the embodiments of the present invention.
Fig. 1 is a schematic flow chart of a method for device distribution provided in an embodiment of the present invention, and as shown in fig. 1, the method specifically includes:
s11, when it is determined that the first device enters the preset mode, the first device receives the broadcast message sent by the second device, the first device is a device which has finished the distribution of the network, and the preset mode is the distribution of the network mode.
The network distribution method of the equipment provided by the embodiment of the invention is applied to the intelligent household equipment, and the intelligent household equipment can be as follows: the system comprises air conditioning equipment, humidity conditioning equipment, lamp equipment and the like, and specifically sends encrypted distribution network information to non-distribution network equipment through one distribution network equipment to carry out distribution network.
In this embodiment, the first device may be any device already equipped with a network, the preset mode may be a mode in which the other device can be equipped with a network, and the mode may be a time period in which the first device allows receiving a broadcast message, in the preset mode, the first device may receive broadcast information sent by the other device, the second device may be any device to be equipped with a network, and the broadcast message may be a broadcast sent by the second device, and may be a WIFI broadcast.
A specific protocol is preset, and the first device can only receive the broadcast message of the device broadcasting the specific protocol. Specifically, it is determined that a first device of a distributed network enters a preset mode, and when the first device recognizes a broadcast of a specific protocol of a second device, a broadcast message of the second device is received.
S12, the distribution network information is encrypted according to the first key to obtain the encrypted distribution network information, and the first key is encrypted to obtain a second key.
In this embodiment, the first key may be a key corresponding to the first device, the distribution network information is stored in the first device in the distribution network, and may be an ID and a password of a router to be connected, the first key is encrypted by using an encryption method to obtain a second key, and the encryption method may be to obtain an encrypted text randomly sent by a certain terminal to encrypt the first key.
The method comprises the steps of determining a first key corresponding to first equipment, encrypting distribution network information in the first equipment by using the first key to obtain encrypted distribution network information, and encrypting the first key by using an encryption method to obtain a second key.
S13, sending the encrypted distribution network information and the second key to a second device, so that the second device executes distribution network operation based on the encrypted distribution network information and the second key.
In this embodiment, the encrypted distribution network information and the second key may be sent to the second device to be distributed in a WIFI broadcast manner, and the distribution network operation may be performed by using an ID and a password in the distribution network information to connect the target router to complete the distribution network of the second device.
Specifically, the first device sends the encrypted distribution network information and the second key to the second device which is connected through broadcasting in a broadcasting mode, so that the second device receives the encrypted distribution network information, decrypts the distribution network information by using the second key, and connects the router based on the distribution network information to complete distribution.
For example, the first device is an air conditioner, the second device is a television, the air conditioner has successfully distributed a network and is in a preset network distribution mode, the air conditioner receives a broadcast of a specific protocol sent by the television, the ID and the password of the router are encrypted by using the first key, the first key is encrypted by using an encryption mode to obtain the second key, the air conditioner sends the second key and the encrypted ID password to the second device through the broadcast, the second device decrypts the second key to obtain the first key after receiving the first key, the ID password is obtained by using the decryption of the first key, and the router is accessed by using the ID password to complete the network distribution.
The method for distributing the network by the equipment provided by the embodiment of the invention receives the broadcast message sent by the second equipment after the first equipment with the network distributed enters the preset network distribution mode, encrypts the network distribution information by the first key, and encrypts the first key to obtain the second key; and sending the encrypted distribution network information and the second key to second equipment, wherein the second equipment executes distribution network operation based on the encrypted distribution network information and the second key, and can transmit the distribution network information more safely by encrypting twice, and one piece of distributed equipment is used for distributing networks for other pieces of equipment.
Fig. 2 is a schematic flow chart of another method for distributing a network by using devices according to an embodiment of the present invention, and as shown in fig. 2, the method specifically includes:
s21, receiving a preset mode control instruction sent by the client, wherein the preset mode control instruction carries an encrypted text.
In this embodiment, a corresponding relationship between the control instruction and the working mode of the first device is preset, the client is a mobile terminal used by a user and may be a mobile phone, a computer, or the like, the preset mode control instruction includes a control instruction and an encrypted text, the control instruction can control the first device in the distributed network to enter the corresponding preset mode, and the encrypted text is a text randomly generated by the client (for example, a number, a letter, a combination, or the like) and is sent to the first device together with the control instruction.
The method comprises the steps that a first device of a distributed network receives a preset mode control instruction sent by a client wirelessly to obtain a control instruction capable of controlling the first device to enter a preset mode and an encrypted text.
And S22, responding to the preset mode control instruction, and controlling the first equipment to enter a preset mode.
In this embodiment, the first device responds to the received preset mode control instruction, and controls the first device to enter a corresponding preset mode based on the control instruction, where the preset mode may be a distribution network mode, so that the first device is in a mode capable of distributing a network to other devices.
For example, the first device is an air conditioner, the client is a mobile phone, and the air conditioner enters a preset distribution network mode after receiving a distribution network instruction sent by the mobile phone.
And S23, acquiring the encrypted text from the preset mode control instruction.
In this embodiment, the first device obtains the encrypted text from the received preset mode control instruction, where the encrypted text may be a number, a letter, a symbol, and the like randomly generated by the client.
S24, the distribution network information is encrypted by the first key, and the first key is encrypted by the encrypted text to obtain a second key.
In this embodiment, the first key may be a key stored or generated by the first device, the distribution network information may be an ID and a password of the distribution network, the encrypted text is a text carried by the preset mode control instruction, and the first device may be encrypted by using the encrypted text through an obfuscation encryption algorithm. The second key is a key obtained by encrypting the first key by the encrypted text.
Specifically, the first device encrypts the distribution network information by using the stored first key to obtain the encrypted distribution network information, and encrypts the first key by using the encrypted text to obtain a second key corresponding to the first key.
And S25, sending the encrypted distribution network information and the second key to a second device, so that the second device executes distribution network operation based on the encrypted distribution network information and the second key.
In this embodiment, the encrypted distribution network information and the second key may be sent to the second device to be distributed in a WIFI broadcast manner, and the distribution network operation may be performed by using an ID and a password in the distribution network information to connect the target router to complete the distribution network of the second device.
Specifically, the first device sends the encrypted distribution network information and the second key to the second device which is connected through broadcasting in a broadcasting mode, so that the second device decrypts the second key by using the received encrypted text sent by the client after receiving the encrypted distribution network information to obtain the first key, decrypts the encrypted distribution network information by using the first key to obtain the distribution network information, and is connected with the router based on the distribution network information to complete distribution network.
And S26, after the second equipment completes the distribution of the network, receiving the attribute information sent by the second equipment, and sending the attribute information to the network equipment.
In this embodiment, the attribute information may be a model, a working state, a distribution network state, and the like of the second device, and the network device may be a mobile phone, a computer, and the like.
And after the second equipment is successfully distributed, the first equipment receives the attribute information sent by the second equipment through broadcasting, and the first equipment wirelessly sends the received attribute information to the network equipment for storage.
According to the method for distributing the network by the equipment, the first equipment receives the control instruction and the encrypted text sent by the client, the first equipment is controlled to enter the preset mode, the first key is used for encrypting the network distribution information, the encrypted first key is used for sending the encrypted network distribution information and the encrypted second key to the second equipment, and the second equipment decrypts the network distribution information through the encrypted text after receiving the encrypted network distribution information to distribute the network. By means of twice encryption, the distribution network information can be transmitted more safely, and one distributed network device is used for carrying out distribution network on other devices.
Fig. 3 is a schematic flow chart of a method for configuring a network by using another device according to an embodiment of the present invention, which specifically includes:
and S31, the second device receives the encrypted text sent by the client, the encrypted distribution network information sent by the first device and the second key.
In this embodiment, the second device is a device to be configured with a network, the client may be a terminal such as a mobile phone computer, the encrypted text may be a number or a symbol randomly generated by the client, the first device is a device already configured with a network, the encrypted distribution network information is distribution network information encrypted by the first key, and the second key is a key obtained by encrypting the first key by using the encrypted text.
The second device receives an encrypted text randomly generated by the client, the distribution network information sent by the first device and encrypted by the first key, and a second key obtained by encrypting the first key by the encrypted text.
S32, decrypting the second key based on the encrypted text to obtain the first key.
In this embodiment, the second device decrypts the second key by using a preset obfuscated encryption algorithm by receiving an encrypted text randomly generated by the client, so as to obtain the first key.
S33, decrypting the encrypted distribution network information by using the first key to obtain the distribution network information.
In an embodiment, after receiving the encrypted distribution network information, the second device decrypts the encrypted distribution network information by using the first key to obtain the distribution network information, where the distribution network information may be an ID, a password, and the like.
And S34, executing distribution network operation based on the distribution network information.
In this embodiment, the second device accesses the network through the distribution network information connection router, thereby completing the distribution network.
And S35, when it is determined that the second device is successfully distributed, sending the attribute information of the second device to the first device, so that the first device sends the attribute information to the network device.
In this embodiment, the attribute information may be a model, a working state, a distribution network state, and the like of the second device, and the network device may be a mobile phone, a computer, and the like.
And after the second equipment is successfully distributed, the attribute information is sent to the first equipment through broadcasting, so that the first equipment wirelessly sends the received attribute information to the network equipment for storage.
According to the equipment distribution network method provided by the embodiment of the invention, the encrypted text sent by the client, the encrypted distribution network information sent by the first equipment of the distributed network and the second key are received by the second equipment, the encrypted text is used for decrypting the second key through the confusion encryption algorithm to obtain the first key, the encrypted distribution network information is decrypted by using the first key to obtain the distribution network information, and the distribution network is completed based on the distribution network information. By means of twice encryption, the distribution network information can be transmitted more safely, and one distributed network device is used for carrying out distribution network on other devices.
Fig. 4 is a schematic structural diagram of an apparatus of a device distribution network according to an embodiment of the present invention, and as shown in fig. 4, the apparatus specifically includes:
a first receiving module 41, configured to receive a broadcast message sent by a second device when it is determined that a first device enters a preset mode, where the first device is a device that has completed a network distribution, and the preset mode is a network distribution mode;
the encryption module 42 is configured to encrypt distribution network information according to a first key to obtain encrypted distribution network information, and encrypt the first key to obtain a second key;
a sending module 43, configured to send the encrypted distribution network information and the second key to a second device, so that the second device performs a distribution network operation based on the encrypted distribution network information and the second key.
In a possible implementation manner, the first receiving module 41 is specifically configured to receive a preset mode control instruction sent by a client, where the preset mode control instruction carries an encrypted text; and responding to the preset mode control instruction, and controlling the first equipment to enter a preset mode.
In a possible embodiment, the encryption module 42 is specifically configured to obtain the encrypted text from the preset mode control instruction; and encrypting the first key by using the encrypted text to obtain a second key.
In one possible embodiment, the encryption module 42 is specifically configured to encrypt using an obfuscated encryption algorithm.
In a possible implementation manner, the first receiving module 41 is further configured to receive attribute information sent by the second device after the second device completes a distribution network; the sending module 43 is further configured to send the attribute information to a network device.
The device network distribution apparatus provided in this embodiment may be the apparatus shown in fig. 4, and may perform all the steps of the network distribution method of the devices shown in fig. 1-2, so as to achieve the technical effect of the network distribution method of the devices shown in fig. 1-2, and for brevity, reference is specifically made to relevant descriptions of fig. 1-2, which are not described herein again.
Fig. 5 is a schematic structural diagram of another device of a device distribution network according to an embodiment of the present invention, and as shown in fig. 5, the device specifically includes:
a second receiving module 51, configured to receive, by the second device, the encrypted distribution network information and the second key;
and a distribution network module 52, configured to perform a distribution network operation based on the encrypted distribution network information and the second key.
In a possible implementation manner, the second receiving module 51 is further configured to receive an encrypted text sent by the client.
In a possible embodiment, the distribution network module 52 is specifically configured to decrypt the second key based on the encrypted text to obtain the first key; decrypting the encrypted distribution network information by using the first key to obtain the distribution network information; and executing the distribution network operation of the second equipment based on the distribution network information.
The device network distribution apparatus provided in this embodiment may be the apparatus shown in fig. 5, and may perform all the steps of the network distribution method of the device shown in fig. 3, so as to achieve the technical effect of the network distribution method of the device shown in fig. 3.
According to the equipment distribution scheme provided by the embodiment of the invention, the broadcast message sent by the second equipment is received after the first equipment with the distributed network enters the distribution network mode; the distribution network information is encrypted through the first key, and the first key is encrypted to obtain a second key; the encrypted distribution network information and the second key are sent to second equipment, the second equipment decrypts the second key to obtain a first key, the encrypted distribution network information is decrypted by using the first key to obtain distribution network information, distribution network is completed based on the distribution network information, the distribution network information can be transmitted more safely by encrypting twice, and one distributed network equipment is used for other equipment to distribute networks.
Fig. 6 is a schematic structural diagram of an apparatus according to an embodiment of the present invention, where the apparatus 600 shown in fig. 6 includes: at least one processor 601, memory 602, at least one network interface 604, and other user interfaces 603. The various components in the distribution network device 600 are coupled together by a bus system 605. It is understood that the bus system 605 is used to enable communications among the components. The bus system 605 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 605 in fig. 6.
The user interface 603 may include, among other things, a display, a keyboard, or a pointing device (e.g., a mouse, trackball, touch pad, or touch screen, among others.
It will be appreciated that the memory 602 in embodiments of the invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), Double Data Rate Synchronous Dynamic random access memory (ddr Data Rate SDRAM, ddr SDRAM), Enhanced Synchronous SDRAM (ESDRAM), synchlronous SDRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The memory 602 described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
In some embodiments, memory 602 stores the following elements, executable units or data structures, or a subset thereof, or an expanded set thereof: an operating system 6021 and application programs 6022.
The operating system 6021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is used for implementing various basic services and processing hardware-based tasks. The application program 6022 includes various application programs such as a Media Player (Media Player), a Browser (Browser), and the like, and is used to implement various application services. A program implementing the method of an embodiment of the invention can be included in the application program 6022.
In the embodiment of the present invention, by calling a program or an instruction stored in the memory 602, specifically, a program or an instruction stored in the application program 6022, the processor 601 is configured to execute the method steps provided by the method embodiments, for example, including:
when the first equipment is determined to enter a preset mode, the first equipment receives a broadcast message sent by second equipment, wherein the first equipment is equipment which finishes the distribution of the network, and the preset mode is a distribution network mode;
the method comprises the steps that distribution network information is encrypted according to a first secret key to obtain the encrypted distribution network information, and the first secret key is encrypted to obtain a second secret key;
and sending the encrypted distribution network information and the second key to second equipment so that the second equipment can execute distribution network operation based on the encrypted distribution network information and the second key.
In one possible implementation manner, a preset mode control instruction sent by a client is received, wherein the preset mode control instruction carries an encrypted text;
and responding to the preset mode control instruction, and controlling the first equipment to enter a preset mode.
In a possible implementation manner, the encrypted text is obtained from the preset mode control instruction;
and encrypting the first key by using the encrypted text to obtain a second key.
In one possible implementation, receiving encrypted text sent by the client; decrypting the second key based on the encrypted text to obtain the first key;
decrypting the encrypted distribution network information by using the first key to obtain the distribution network information;
and executing the distribution network operation of the second equipment based on the distribution network information.
In one possible embodiment, the encryption is performed using a garbled encryption algorithm.
In a possible implementation manner, after the second device completes the distribution network, the attribute information sent by the second device is received;
and sending the attribute information to network equipment.
Or the like, or, alternatively,
the second equipment receives the encrypted distribution network information and a second key; and executing distribution network operation based on the encrypted distribution network information and the second key.
In one possible implementation, receiving encrypted text sent by a client; decrypting the second key based on the encrypted text to obtain the first key; decrypting the encrypted distribution network information by using the first key to obtain the distribution network information; and executing the distribution network operation of the second equipment based on the distribution network information.
In a possible implementation manner, when it is determined that the second device is successful in network distribution, the attribute information of the second device is sent to the first device, so that the first device sends the attribute information to the network device.
The method disclosed by the above-mentioned embodiment of the present invention can be applied to the processor 601, or implemented by the processor 601. The processor 601 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 601. The Processor 601 may be a general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, or discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software elements in the decoding processor. The software elements may be located in ram, flash, rom, prom, or eprom, registers, among other storage media that are well known in the art. The storage medium is located in the memory 602, and the processor 601 reads the information in the memory 602 and completes the steps of the method in combination with the hardware thereof.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the Processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described herein may be implemented by means of units performing the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
The network distribution device provided in this embodiment may be the network distribution device shown in fig. 6, and may execute all the steps of the network distribution method of the devices shown in fig. 1 to 3, so as to achieve the technical effect of the network distribution method of the devices shown in fig. 1 to 3, and for brevity, it is specifically described with reference to fig. 1 to 3, and no further description is provided here.
The embodiment of the invention also provides a storage medium (computer readable storage medium). The storage medium herein stores one or more programs. Among others, the storage medium may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid state disk; the memory may also comprise a combination of memories of the kind described above.
When the one or more programs in the storage medium are executable by the one or more processors, the method for device distribution network executed on the device side of the distribution network is realized.
The processor is used for executing the equipment distribution network program stored in the memory so as to realize the following steps of the equipment distribution network method executed on the side of the distribution network equipment:
when the first equipment is determined to enter a preset mode, the first equipment receives a broadcast message sent by second equipment, wherein the first equipment is equipment which finishes the distribution of the network, and the preset mode is a distribution network mode;
the method comprises the steps that distribution network information is encrypted according to a first secret key to obtain the encrypted distribution network information, and the first secret key is encrypted to obtain a second secret key;
and sending the encrypted distribution network information and the second key to second equipment so that the second equipment can execute distribution network operation based on the encrypted distribution network information and the second key.
In one possible implementation manner, a preset mode control instruction sent by a client is received, wherein the preset mode control instruction carries an encrypted text;
and responding to the preset mode control instruction, and controlling the first equipment to enter a preset mode.
In a possible implementation manner, the encrypted text is obtained from the preset mode control instruction;
and encrypting the first key by using the encrypted text to obtain a second key.
In one possible implementation, receiving encrypted text sent by the client;
decrypting the second key based on the encrypted text to obtain the first key;
decrypting the encrypted distribution network information by using the first key to obtain the distribution network information;
and executing the distribution network operation of the second equipment based on the distribution network information.
In one possible embodiment, the encryption is performed using a garbled encryption algorithm.
In a possible implementation manner, after the second device completes the distribution network, the attribute information sent by the second device is received;
and sending the attribute information to network equipment.
Or the like, or, alternatively,
the second equipment receives the encrypted distribution network information and a second key; and executing distribution network operation based on the encrypted distribution network information and the second key.
In one possible implementation, receiving encrypted text sent by a client; decrypting the second key based on the encrypted text to obtain the first key; decrypting the encrypted distribution network information by using the first key to obtain the distribution network information; and executing the distribution network operation of the second equipment based on the distribution network information.
In a possible implementation manner, when it is determined that the second device is successful in network distribution, the attribute information of the second device is sent to the first device, so that the first device sends the attribute information to the network device.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied in hardware, a software module executed by a processor, or a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are merely exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (13)

1. A network distribution method of equipment is characterized by comprising the following steps:
when the first equipment is determined to enter a preset mode, the first equipment receives a broadcast message sent by second equipment, wherein the first equipment is equipment which finishes the distribution of the network, and the preset mode is a distribution network mode;
the method comprises the steps that distribution network information is encrypted according to a first secret key to obtain the encrypted distribution network information, and the first secret key is encrypted to obtain a second secret key;
and sending the encrypted distribution network information and the second key to second equipment so that the second equipment can execute distribution network operation based on the encrypted distribution network information and the second key.
2. The method of claim 1, wherein determining that the first device enters the preset mode comprises:
receiving a preset mode control instruction sent by a client, wherein the preset mode control instruction carries an encrypted text;
and responding to the preset mode control instruction, and controlling the first equipment to enter a preset mode.
3. The method of claim 2, wherein encrypting the first key to obtain a second key comprises:
acquiring the encrypted text from the preset mode control instruction;
and encrypting the first key by using the encrypted text to obtain a second key.
4. The method of claim 3, wherein the second device performs distribution network operations based on the encrypted distribution network information and the second key, and wherein the method comprises:
receiving an encrypted text sent by the client;
decrypting the second key based on the encrypted text to obtain the first key;
decrypting the encrypted distribution network information by using the first key to obtain the distribution network information;
and executing the distribution network operation of the second equipment based on the distribution network information.
5. The method of claim 1, wherein the encryption scheme comprises:
the encryption is performed using an obfuscated encryption algorithm.
6. The method according to any one of claims 1-5, further comprising:
after the second equipment completes the distribution of the network, receiving attribute information sent by the second equipment;
and sending the attribute information to network equipment.
7. A network distribution method of equipment is characterized by comprising the following steps:
the second equipment receives the encrypted distribution network information and a second key;
and executing distribution network operation based on the encrypted distribution network information and the second key.
8. The method of claim 7, further comprising:
receiving an encrypted text sent by a client;
the executing distribution network operation based on the encrypted distribution network information and the second key comprises:
decrypting the second key based on the encrypted text to obtain the first key;
decrypting the encrypted distribution network information by using the first key to obtain the distribution network information;
and executing the distribution network operation of the second equipment based on the distribution network information.
9. The method of claim 7, further comprising:
and when the second equipment is determined to be successfully distributed, sending the attribute information of the second equipment to the first equipment so that the first equipment sends the attribute information to the network equipment.
10. A network distribution apparatus for a device, comprising:
the first receiving module is used for receiving a broadcast message sent by second equipment by first equipment when the first equipment is determined to enter a preset mode, wherein the first equipment is equipment which finishes a distribution network, and the preset mode is a distribution network mode;
the encryption module is used for encrypting the distribution network information according to a first key to obtain the encrypted distribution network information and encrypting the first key to obtain a second key;
and the sending module is used for sending the encrypted distribution network information and the second key to second equipment so that the second equipment can execute distribution network operation based on the encrypted distribution network information and the second key.
11. A network distribution apparatus of a device, comprising:
the second receiving module is used for receiving the encrypted distribution network information and the second key by the second equipment;
and the distribution network module is used for executing distribution network operation based on the encrypted distribution network information and the second key.
12. An apparatus, comprising: a processor and a memory, the processor being configured to execute a distribution network program of any device stored in the memory to implement the distribution network method of any device of claims 1-6 or claims 7-9.
13. A storage medium storing one or more programs, the one or more programs executable by one or more processors to implement the method for network distribution of any of the devices of claims 1-6 or any of claims 7-9.
CN202110993323.5A 2021-08-26 2021-08-26 Network distribution method, device and equipment of equipment and storage medium Pending CN113824697A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110993323.5A CN113824697A (en) 2021-08-26 2021-08-26 Network distribution method, device and equipment of equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110993323.5A CN113824697A (en) 2021-08-26 2021-08-26 Network distribution method, device and equipment of equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113824697A true CN113824697A (en) 2021-12-21

Family

ID=78913645

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110993323.5A Pending CN113824697A (en) 2021-08-26 2021-08-26 Network distribution method, device and equipment of equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113824697A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108924135A (en) * 2018-06-29 2018-11-30 百度在线网络技术(北京)有限公司 Method for network access and device
CN111163462A (en) * 2019-12-24 2020-05-15 华为技术有限公司 Network distribution method and related product
CN113055867A (en) * 2021-03-08 2021-06-29 Oppo广东移动通信有限公司 Method and device for auxiliary network distribution of terminal and electronic equipment
CN113163379A (en) * 2020-02-21 2021-07-23 华为技术有限公司 Method for discovering and distributing network and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108924135A (en) * 2018-06-29 2018-11-30 百度在线网络技术(北京)有限公司 Method for network access and device
CN111163462A (en) * 2019-12-24 2020-05-15 华为技术有限公司 Network distribution method and related product
CN113163379A (en) * 2020-02-21 2021-07-23 华为技术有限公司 Method for discovering and distributing network and electronic equipment
CN113055867A (en) * 2021-03-08 2021-06-29 Oppo广东移动通信有限公司 Method and device for auxiliary network distribution of terminal and electronic equipment

Similar Documents

Publication Publication Date Title
CN113055867B (en) Terminal auxiliary network distribution method and device and electronic equipment
US11140547B2 (en) Method for securely controlling smart home, and terminal device
US11395148B2 (en) Method and device for protecting privacy
CN110557305B (en) Method, equipment and computer readable storage medium for accessing wireless router
CN112533206B (en) Distribution network method and device, storage medium and electronic equipment
CN106385277B (en) Encryption device, method and system
CN102739642A (en) Permitting access to a network
CN106411504B (en) Data encryption system, method and device
WO2016053184A1 (en) Key generation method and device
CN110856170B (en) Data transmission method and device and communication system of Internet of things
CN107026730B (en) Data processing method, device and system
WO2022111016A1 (en) Mobile network access system and method, and storage medium, and electronic device
WO2016086739A1 (en) Method for device having wlan function to access network and device for implementing method
CN113766496A (en) Cross-platform binding method and system of intelligent equipment and related equipment
WO2022041151A1 (en) Device verification method, device, and cloud
WO2024124804A1 (en) Software function activation method, apparatus and device, and storage medium
CN112466053A (en) Control system of household appliance and execution method and device of target operation
CN113824697A (en) Network distribution method, device and equipment of equipment and storage medium
KR101500118B1 (en) Data sharing method and data sharing system
JP7312279B2 (en) MOBILE NETWORK ACCESS SYSTEM, METHOD, STORAGE MEDIUM AND ELECTRONIC DEVICE
WO2012065422A1 (en) Method for updating key of mobile terminal, and mobile terminal
CN108769989B (en) Wireless network connection method, wireless access device and equipment
JP6654934B2 (en) Authentication system
CN111479270A (en) Network access bidirectional authentication method and device
JP2017103710A (en) Program for terminal device authentication, terminal device authentication method, server device and authentication system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20211221