Disclosure of Invention
Therefore, the invention provides a wireless network access method, a terminal and wireless access equipment, which aim to solve the safety problem caused by accessing public WiFi through a shared key in the prior art.
In order to achieve the above object, a first aspect of the present invention provides a wireless network access method, including:
sending a query request to a wireless access device to be accessed;
receiving access information sent by the wireless access equipment to be accessed, and determining an access permission state;
responding to the condition that the access permission state is not permitted, broadcasting an access request message and transaction information in a blockchain network through wireless access equipment currently connected with the terminal;
receiving access permission information sent by the wireless access equipment to be accessed, and acquiring the access permission information from the block chain network through the currently connected wireless access equipment;
and responding to the verification of the received access permission information and the acquired access permission information, and accessing the wireless access equipment according to the received access permission information.
In some embodiments, after the determining the access permission status, the method further comprises:
in response to the access permission status being permitted, acquiring access permission information from a blockchain network through a currently connected wireless access device;
and accessing the wireless access equipment according to the access permission information.
In some embodiments, the determining the access permission status comprises:
inquiring in a block chain network through the currently connected wireless access equipment to obtain an access permission state; or receiving an access permission state sent by the wireless access equipment to be accessed.
In order to achieve the above object, a second aspect of the present invention provides a wireless network access method, including:
responding to a received inquiry request sent by a terminal, and sending access information to the terminal;
and in response to receiving an access request message and transaction information broadcast by the terminal in the blockchain network through the currently connected wireless access equipment, determining that the terminal is allowed to access, sending access permission information to the terminal according to the transaction information and broadcasting the access permission information in the blockchain network, so that the terminal verifies the received access permission information sent by the wireless access equipment and the access permission information acquired from the blockchain network through the currently connected wireless access equipment.
In some embodiments, the method further comprises:
and responding to a received query request sent by the terminal, querying in the block chain network to obtain an access permission state, and sending the access permission state to the terminal.
In order to achieve the above object, a third aspect of the present invention provides a terminal, including:
the sending module is used for sending an inquiry request to the wireless access equipment to be accessed;
the receiving module is used for receiving the access information sent by the wireless access equipment to be accessed; the access permission information is used for receiving the access permission information sent by the wireless access equipment to be accessed, and the access permission information is obtained from the block chain network through the currently connected wireless access equipment;
the processing module is used for determining the access permission state;
the broadcast module is used for responding to the condition that the access permission state is not permitted, and broadcasting the access request message and the transaction information in the blockchain network through the wireless access equipment currently connected with the terminal;
and the access module is used for responding to the verification of the received access permission information and the acquired access permission information and accessing the wireless access equipment according to the received access permission information.
In some embodiments, the receiving module is further configured to acquire access permission information from the blockchain network through the currently connected wireless access device in response to the access permission status being permitted.
In some embodiments, the processing module is configured to query for an access permission status in a blockchain network through the currently connected wireless access device; or receiving an access permission state sent by the wireless access equipment to be accessed.
In order to achieve the above object, a fourth aspect of the present invention provides a wireless access device, including:
the receiving module is used for receiving the query request sent by the terminal; the system comprises a wireless access device, a block chain network and a terminal, wherein the wireless access device is used for receiving an access request message and transaction information broadcast by the terminal in the block chain network through the currently connected wireless access device;
the processing module is used for determining whether the terminal is permitted to access;
the sending module is used for responding to the query request sent by the terminal received by the receiving module and sending access information to the terminal; and the processing module is used for responding to the receiving module receiving the access request message and the transaction information which are broadcasted by the terminal in the blockchain network through the currently connected wireless access equipment, determining that the terminal is allowed to access, sending access permission information to the terminal according to the transaction information and broadcasting the access permission information in the blockchain network, so that the terminal verifies the received access permission information sent by the wireless access equipment and the access permission information acquired from the blockchain network through the currently connected wireless access equipment.
In some embodiments, the sending module is further configured to, in response to receiving a query request sent by a terminal, query for an access permission status in a blockchain network, and send the access permission status to the terminal.
According to the wireless network access method provided by the embodiment of the invention, the wireless access equipment to be accessed independently issues the access permission information to the terminal, so that each terminal can have unique access permission information, the terminal can further ensure the security of the access permission information by verifying the access permission information received from the wireless access equipment to be accessed and the access permission information acquired from the blockchain network through the currently connected wireless access equipment, each terminal respectively uses the own access permission information instead of using a uniform shared key to access the wireless access equipment to be accessed, the access permission information is not easy to be attacked and stolen, and therefore, the terminal can be ensured to automatically and safely access the wireless access equipment to be accessed, and the user experience can be improved.
Detailed Description
The following detailed description of embodiments of the invention refers to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present invention, are given by way of illustration and explanation only, not limitation.
In order to make the technical solutions of the present invention better understood, the present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
It is to be understood that the specific embodiments and figures described herein are merely illustrative of the invention and are not limiting of the invention.
It is to be understood that the embodiments and features of the embodiments can be combined with each other without conflict.
It is to be understood that, for the convenience of description, only parts related to the present invention are shown in the drawings of the present invention, and parts not related to the present invention are not shown in the drawings.
It should be understood that each unit and module related in the embodiments of the present invention may correspond to only one physical structure, may also be composed of multiple physical structures, or multiple units and modules may also be integrated into one physical structure.
It will be understood that, without conflict, the functions, steps, etc. noted in the flowchart and block diagrams of the present invention may occur in an order different from that noted in the figures.
It is to be understood that the flowchart and block diagrams of the present invention illustrate the architecture, functionality, and operation of possible implementations of systems, apparatus, devices and methods according to various embodiments of the present invention. Each block in the flowchart or block diagrams may represent a unit, module, segment, code, which comprises executable instructions for implementing the specified function(s). Furthermore, each block or combination of blocks in the block diagrams and flowchart illustrations can be implemented by a hardware-based system that performs the specified functions or by a combination of hardware and computer instructions.
It is to be understood that the units and modules involved in the embodiments of the present invention may be implemented by software, and may also be implemented by hardware, for example, the units and modules may be located in a processor.
A blockchain is a decentralized database that contains a list of what are called blocks, with records that are growing and aligned. Each tile contains a timestamp and a link to the previous tile: the blockchain is designed so that the data is not tampered, and once recorded, the data in a block is not reversible. The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism and an encryption algorithm. The consensus mechanism is a mathematical algorithm for establishing trust and obtaining rights and interests among different nodes in the blockchain system. The Blockchain (Blockchain) is an important concept of the bit coins, and the firecoin network is combined with an internet financial laboratory of the five-crossing financial institute of Qinghua university and a global bit coin development research report 2014-2016 issued by Xinghao science and technology to mention that the Blockchain is a bottom layer technology and a basic framework of the bit coins, is essentially a decentralized database and is used as the bottom layer technology of the bit coins. The block chain is a series of data blocks which are associated by using a cryptographic method, and each data block contains information of one bitcoin network transaction, so that the validity (anti-counterfeiting) of the information is verified and the next block is generated. In a narrow sense, the blockchain is a distributed account book which is a chain data structure formed by combining data blocks in a sequential connection mode according to a time sequence and is guaranteed in a cryptographic mode and cannot be tampered and forged. Broadly, the blockchain technique is a completely new distributed infrastructure and computing that utilizes blockchain data structures to verify and store data, distributed node consensus algorithms to generate and update data, cryptographic means to secure data transmission and access, and intelligent contracts composed of automated script code to program and manipulate data. Blockchain design is a protective measure, such as (applied to) highly fault-tolerant distributed computing systems. The blockchain enables mixed consistency, and is suitable for recording events, titles, medical records and other activities requiring data inclusion, identification management, transaction flow management and provenance management. The blockchain has huge potential for financial off-media and has huge influence on leading global trade. The concept of blockchains was first proposed by the mingent in 2008, and in the following years, bitcoins became the core component of electronic money: as a common ledger for all transactions, the blockchain database can be managed autonomously by using a peer-to-peer network and a distributed timestamp server, and the blockchain invented for bitcoin makes bitcoin the first digital currency to solve the problem of repeated consumption, and the design of bitcoin has become an inspiration source for other applications.
The wireless network access method provided by the embodiment of the invention can be applied to a terminal and a wireless access device, wherein the wireless access device can comprise a wireless access device to be accessed by the terminal and a wireless access device currently connected with the terminal, the wireless access device to be accessed by the terminal is different from the wireless access device currently connected with the terminal, the wireless access device currently connected with the terminal and the wireless access device to be accessed by the terminal are in the same block chain network, and the terminal can broadcast messages in the block chain network or acquire information from the block chain network through the wireless access device currently connected with the terminal.
As shown in fig. 1, an embodiment of the present invention provides a wireless network access method, which when applied to a terminal, may include the following steps:
and step 11, sending an inquiry request to the wireless access equipment to be accessed.
After moving to the physical radius range covered by the wireless access device to be accessed (i.e. WiFi access point), the terminal may start an Application program (APP) of the block chain client, and execute the wireless network access method provided by the embodiment of the present invention. Specifically, the terminal may search for a WiFi signal, select one WiFi signal from the plurality of WiFi signals obtained by the search, and send an inquiry request to the wireless access device to be accessed to which the WiFi signal belongs.
And step 12, receiving access information sent by the wireless access equipment to be accessed, and determining an access permission state.
The access information may include access rules and tariff criteria. The access information is sent by the wireless access equipment to be accessed after receiving the inquiry request sent by the terminal.
When receiving the access information, the terminal can also determine the access permission state, that is, whether the wireless access device to be accessed has permitted the terminal to access.
And step 13, responding to the condition that the access permission state is not permitted, and broadcasting the access request message and the transaction information in the blockchain network through the wireless access equipment currently connected with the terminal.
When it is determined that the wireless access device to be accessed does not yet permit the access of the terminal, it may be indicated that the wireless access device to be accessed has not issued access permission information to the terminal, and at this time, the terminal may broadcast the access request message and the transaction information to the blockchain network through the wireless access device currently connected to the terminal in a broadcast message manner of private key signature. The transaction information is determined by the terminal user according to the charge standard sent by the wireless access equipment to be accessed.
Step 14, receiving the access permission information sent by the wireless access device to be accessed, and acquiring the access permission information from the blockchain network through the currently connected wireless access device.
The access permission information may include a permission period and an access key.
After receiving the access request message and the transaction information broadcasted by the terminal, the wireless access equipment to be accessed generates access permission information and encrypts the access permission information by using a public key of the terminal, then sends the encrypted access permission information to the terminal, and broadcasts the encrypted access permission information to the blockchain network by using a broadcast message mode of private key signature. Therefore, the terminal can directly receive the access permission information sent by the wireless access equipment to be accessed, and simultaneously, the wireless access equipment which is currently connected acquires the access permission information from the blockchain network for verifying the access permission information.
And step 15, responding to the verification of the received access permission information and the acquired access permission information, and accessing the wireless access equipment according to the received access permission information.
The terminal can verify the access permission information received from the wireless access equipment to be accessed and the access permission information acquired from the blockchain network through the currently connected wireless access equipment, when the access permission information is consistent with the currently connected wireless access equipment, the verification can be considered to be passed, and the terminal accesses the wireless access equipment to be accessed according to the permission time period and the access key in the access permission information.
It can be seen from the foregoing steps 11-15 that, in the wireless network access method provided in the embodiment of the present invention, the wireless access device to be accessed independently issues access permission information to the terminal, so that each terminal may have unique access permission information, and the terminal authenticates the access permission information received from the wireless access device to be accessed and the access permission information acquired from the blockchain network through the currently connected wireless access device, so as to further ensure the security of the access permission information.
As shown in fig. 2, in some embodiments, after determining the access permission status (i.e., step 12), the method may further include the steps of:
and step 16, responding to the access permission state as permitted, and acquiring access permission information from the blockchain network through the currently connected wireless access equipment.
When it is determined that the wireless access device to be accessed grants the terminal access, it may be described that the wireless access device to be accessed has already issued the access grant information to the terminal, and at this time, the terminal may directly acquire the access grant information from the blockchain network through the currently connected wireless access device.
And step 17, accessing the wireless access equipment according to the access permission information.
The terminal can use the public key of the wireless access equipment to be accessed to verify the signature of the access permission information, after the verification is successful, the private key of the terminal is used to decrypt the access permission information so as to obtain the permission time period and the access key, and the access key is used to access the wireless access equipment to be accessed according to the permission time period.
In some embodiments, determining the access grant status (i.e., step 12) may include: inquiring in a block chain network through a wireless access device connected currently to obtain an access permission state; or receiving an access permission state sent by the wireless access equipment to be accessed.
When receiving the access information, the terminal can also inquire whether the wireless access equipment to be accessed permits the terminal to access from the blockchain network through the currently connected wireless access equipment. Or, while sending the access information to the terminal, the wireless access device to be accessed may also query whether to permit the terminal to access in the block chain network, and directly send the access permission status obtained by the query to the terminal.
As shown in fig. 3, an embodiment of the present invention provides a wireless network access method, which when applied to a wireless access device (a wireless access device to which a terminal is to access), may include the following steps:
and step 21, responding to the received inquiry request sent by the terminal, and sending the access information to the terminal.
The access information may include access rules and tariff criteria.
Step 22, in response to receiving the access request message and the transaction information broadcast by the terminal in the blockchain network through the currently connected wireless access device, determining that the terminal is permitted to access, sending access permission information to the terminal according to the transaction information and broadcasting the access permission information in the blockchain network, so that the terminal verifies the received access permission information sent by the wireless access device and the access permission information acquired from the blockchain network through the currently connected wireless access device.
After receiving an access request message broadcasted by a terminal in a blockchain network through a currently connected wireless access device, a wireless access device to be accessed can check whether the terminal is allowed to be accessed, and after determining that the terminal is allowed to be accessed, access permission information can be issued to the terminal. Specifically, the wireless access device to be accessed may determine a permission time period according to transaction information broadcast by the terminal in the blockchain network through the currently connected wireless access device, generate a random access key, encrypt access permission information including the permission time period and the access key using a public key of the terminal, and send the encrypted access permission information to the terminal. Meanwhile, the wireless access equipment to be accessed can also broadcast the access permission information encrypted by using the terminal public key to the block chain network in a broadcast message mode of private key signature. The terminal can verify the access permission information received from the wireless access equipment to be accessed and the access permission information acquired from the block chain network through the currently connected wireless access equipment.
It can be seen from the foregoing steps 21-22 that, in the wireless network access method provided in the embodiment of the present invention, the wireless access device to be accessed independently issues access permission information to the terminal, so that each terminal may have unique access permission information, and the terminal authenticates the access permission information received from the wireless access device to be accessed and the access permission information acquired from the blockchain network through the currently connected wireless access device, so as to further ensure the security of the access permission information.
In some embodiments, the method may further comprise: and responding to the received inquiry request sent by the terminal, inquiring in the block chain network to obtain the access permission state, and sending the access permission state to the terminal.
After receiving the query request sent by the terminal, the wireless access device to be accessed can also query whether the terminal is permitted to be accessed in the block chain network, and directly send the access permission state obtained by the query to the terminal.
Based on the same technical concept, as shown in fig. 4, an embodiment of the present invention further provides a terminal, where the terminal may include:
the sending module 101 may be configured to send an inquiry request to a wireless access device to be accessed.
A receiving module 102, configured to receive access information sent by a wireless access device to be accessed; and the access permission information is used for receiving the access permission information sent by the wireless access equipment and acquiring the access permission information from the block chain network through the currently connected wireless access equipment.
The processing module 103 may be configured to determine an access permission status.
The broadcasting module 104 may be configured to broadcast, in response to the access permission status being unlicensed, the access request message and the transaction information in the blockchain network through the wireless access device to which the terminal is currently connected.
The access module 105 may be configured to access the wireless access device according to the received access permission information in response to the verification of the received access permission information and the acquired access permission information.
In some embodiments, the receiving module 102 may be further configured to acquire the access permission information from the blockchain network through the currently connected wireless access device in response to the access permission status being permitted.
In some embodiments, the processing module 103 may be configured to query the block chain network for an access permission status through a currently connected wireless access device; or receiving the access permission state sent by the wireless access equipment.
Based on the same technical concept, as shown in fig. 5, an embodiment of the present invention further provides a wireless access device, where the wireless access device may include:
a receiving module 201, configured to receive an inquiry request sent by a terminal; and the access request message and the transaction information are broadcasted by the receiving terminal through the currently connected wireless access equipment in the blockchain network.
A processing module 202, configured to determine whether to grant the terminal access.
A sending module 203, configured to send access information to the terminal in response to the receiving module receiving the query request sent by the terminal; and the processing module is used for responding to the access request message and the transaction information which are received by the receiving module and broadcasted by the terminal in the blockchain network through the currently connected wireless access equipment, determining that the terminal is allowed to access, sending access permission information to the terminal according to the transaction information and broadcasting the access permission information in the blockchain network, so that the terminal verifies the received access permission information sent by the wireless access equipment and the access permission information acquired from the blockchain network through the currently connected wireless access equipment.
In some embodiments, the sending module 203 is further configured to, in response to receiving a query request sent by the terminal, query the blockchain network for the access permission status, and send the access permission status to the terminal.
It will be understood that the above embodiments are merely exemplary embodiments taken to illustrate the principles of the present invention, which is not limited thereto. It will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the spirit and substance of the invention, and these modifications and improvements are also considered to be within the scope of the invention.