CN114257396A - Bluetooth broadcast encryption method, device and medium based on geographic spatial position - Google Patents

Bluetooth broadcast encryption method, device and medium based on geographic spatial position Download PDF

Info

Publication number
CN114257396A
CN114257396A CN202111294305.4A CN202111294305A CN114257396A CN 114257396 A CN114257396 A CN 114257396A CN 202111294305 A CN202111294305 A CN 202111294305A CN 114257396 A CN114257396 A CN 114257396A
Authority
CN
China
Prior art keywords
bluetooth
spatial position
geographic spatial
bluetooth signal
geographic
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
CN202111294305.4A
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.)
Guangdong Institute of Science and Technology
Original Assignee
Guangdong Institute of Science and Technology
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 Guangdong Institute of Science and Technology filed Critical Guangdong Institute of Science and Technology
Priority to CN202111294305.4A priority Critical patent/CN114257396A/en
Publication of CN114257396A publication Critical patent/CN114257396A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • 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
    • H04L63/0442Network 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 wherein the sending and receiving network entities apply asymmetric encryption, i.e. different keys for encryption and decryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/03Protecting confidentiality, e.g. by encryption
    • H04W12/033Protecting confidentiality, e.g. by encryption of the user plane, e.g. user's traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/60Context-dependent security
    • H04W12/63Location-dependent; Proximity-dependent
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/023Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services

Abstract

The invention relates to a technical scheme of a Bluetooth broadcast encryption method, a device and a medium based on geographic spatial positions, which comprises the following steps: broadcasting a first Bluetooth signal comprising a first geospatial location and a device identifier encrypted by a public key; receiving a first Bluetooth signal, adding sign-in information and a second geographic spatial position in the first Bluetooth signal, and obtaining and sending a second Bluetooth signal; and acquiring a second Bluetooth signal, acquiring a first geographic spatial position and a second geographic spatial position, and judging whether the second Bluetooth is an illegal signal according to the first geographic spatial position and the second geographic spatial position. The invention has the beneficial effects that: the problem that the client cannot identify whether the received Bluetooth packet is sent by an authorized device or not so as to cause check-in failure is solved, and off-site check-in is prevented.

Description

Bluetooth broadcast encryption method, device and medium based on geographic spatial position
Technical Field
The invention relates to the field of computers, in particular to a Bluetooth broadcast encryption method, device and medium based on geographic spatial positions.
Background
Along with the continuous and deep information construction of colleges and universities, higher and higher requirements are put forward on class attendance, and currently, many colleges and universities adopt a face and Bluetooth attendance mode, that is, the school sets a special Bluetooth module in the classroom to send out Bluetooth broadcast signals, when the students arrive at the classroom, the corresponding mobile phone app is opened to scan the Bluetooth signals, if a signal corresponding to the classroom in which the course is located is received, the camera is opened to scan the face of the student for comparison, and the sign-in is completed, but in the process, one defect cannot be solved, that is, an illegal user can receive a bluetooth broadcast packet using some bluetooth receiving device, and then transmit the packet to a remote place through a network, some computing device is used at another location to rebroadcast the bluetooth broadcast packet so that the geographical limitation of bluetooth check-in can be broken regardless of whether you encrypt the bluetooth broadcast packet or not.
At present, an encrypted form of a bluetooth broadcast packet exists, that is, the bluetooth broadcast packet is asymmetrically encrypted by using a server public key, after receiving the encrypted packet, the signing-in device is sent to the server for decryption by using a private key, if the decryption is successful, the signing-in device is located in a space range of a bluetooth transmitting device, however, whether the signing-in device is encrypted or not, an attacker can use a bluetooth receiving device to receive a bluetooth signal, then use a network to forward the bluetooth broadcast packet to a certain remote computing device, the device can re-transmit the bluetooth broadcast packet without any change, and a client receiving the broadcast packet can mistakenly think that the device is in an appointed geographical position.
Disclosure of Invention
The present invention is directed to solve at least one of the technical problems in the prior art, and provides a method, an apparatus and a medium for encrypting bluetooth broadcast based on geographic spatial location, which overcome the disadvantages of the prior art.
The technical scheme of the invention comprises a Bluetooth broadcast encryption method based on a geographic spatial position, which is characterized by comprising the following steps: s100, broadcasting a first Bluetooth signal comprising a first geographic spatial position and an equipment identifier encrypted by a public key; s200, receiving the first Bluetooth signal, adding sign-in information and a second geographic spatial position in the first Bluetooth signal, and obtaining and sending a second Bluetooth signal; s300, acquiring the second Bluetooth signal, acquiring the first geographic spatial position and the second geographic spatial position, and judging whether the second Bluetooth is an illegal signal according to the first geographic spatial position and the second geographic spatial position.
According to the Bluetooth broadcast encryption method based on the geographic spatial position, the first geographic spatial position is a preset accurate geographic position coordinate.
According to the bluetooth broadcast encryption method based on the geospatial location, wherein S100 comprises: encrypting the first geographic spatial position and the equipment identifier through a public key to generate a data packet; and assembling the data packet into a Bluetooth broadcast packet according to manufacturer data, and transmitting the Bluetooth broadcast packet.
According to the bluetooth broadcast encryption method based on the geospatial location, wherein S300 comprises: receiving a second geographic spatial position and a Bluetooth data packet of the second Bluetooth signal, decrypting manufacturer data in the data packet by using a private key, and decrypting, wherein if decryption fails, the second Bluetooth signal is an illegal Bluetooth signal; and if the decryption is successful, obtaining the first Bluetooth signal and the equipment identifier from the manufacturer data.
According to the geographic spatial location-based bluetooth broadcast encryption method, S300 further includes: and verifying the equipment identification through a server, and if the equipment identification is an unauthorized identification, determining that the equipment identification is an illegal Bluetooth signal.
The Bluetooth broadcast encryption method based on the geographic spatial position further comprises the following steps: calculating to obtain a spatial distance between the first geographic spatial position and the second geographic spatial position according to the first geographic spatial position and the second geographic spatial position, and judging the spatial distance to be an illegal Bluetooth signal if the spatial distance exceeds a specified distance; if the distance between the two is less than the specified distance, the Bluetooth signal is a legal Bluetooth signal.
The technical scheme of the invention also comprises a Bluetooth broadcast encryption device based on the geographic spatial position, which comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, and is characterized in that the processor realizes any one of the steps of the method when executing the computer program.
The present invention also includes a computer-readable storage medium, in which a computer program is stored, wherein the computer program, when executed by a processor, implements any of the method steps.
The invention has the beneficial effects that: the problem that the client cannot identify whether the received Bluetooth packet is sent by an authorized device or not so as to cause check-in failure is solved, and off-site check-in is prevented.
Drawings
The invention is further described below with reference to the accompanying drawings and examples;
FIG. 1 shows a flow diagram according to an embodiment of the invention.
FIG. 2 is a flow chart illustrating a check-in according to an embodiment of the present invention.
Fig. 3 shows a diagram of an apparatus according to an embodiment of the invention.
Detailed Description
Reference will now be made in detail to the present preferred embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to like elements throughout.
In the description of the present invention, the meaning of a plurality of means is one or more, the meaning of a plurality of means is two or more, and larger, smaller, larger, etc. are understood as excluding the number, and larger, smaller, inner, etc. are understood as including the number.
In the description of the present invention, the consecutive reference numbers of the method steps are for convenience of examination and understanding, and the implementation order between the steps is adjusted without affecting the technical effect achieved by the technical solution of the present invention by combining the whole technical solution of the present invention and the logical relationship between the steps.
In the description of the present invention, unless otherwise explicitly defined, terms such as set, etc. should be broadly construed, and those skilled in the art can reasonably determine the specific meanings of the above terms in the present invention in combination with the detailed contents of the technical solutions.
FIG. 1 shows a flow diagram according to an embodiment of the invention. The process comprises the following steps: s100, broadcasting a first Bluetooth signal comprising a first geographic spatial position and an equipment identifier encrypted by a public key; s200, receiving the first Bluetooth signal, adding sign-in information and a second geographic spatial position in the first Bluetooth signal, and obtaining and sending a second Bluetooth signal; s300, acquiring a second Bluetooth signal, acquiring a first geographic spatial position and a second geographic spatial position, and judging whether the second Bluetooth is an illegal signal according to the first geographic spatial position and the second geographic spatial position. The first Bluetooth signal is Bluetooth information sent by the check-in equipment, the first geographic spatial position, the public key and the equipment identification are preset information of the check-in equipment, and the first geographic spatial position is an accurate geographic position. The second Bluetooth signal is a Bluetooth signal sent to the server after the sign-in client side signs in.
FIG. 2 is a flow chart illustrating a check-in according to an embodiment of the present invention.
S210, the check-in client acquires a Bluetooth signal of the check-in equipment; 2. when the equipment transmits signals, the position coordinates and the equipment ID are encrypted through a public key to form a data packet, and the data packet is assembled into a Bluetooth broadcast packet as manufacturer data and broadcasted;
s220, combining the geographical position information of the user and the Bluetooth data packet when the user signs in with the information of the sign-in equipment and sending the combined information to a server. That is, when the client checks in, the server will use its coordinate position to send the data packet together with the broadcast packet after scanning the broadcast packet.
S230, the server decrypts the service provider data through the private key, judges whether the data is illegal Bluetooth, if decryption fails, the data is interpreted as an illegal Bluetooth signal, if decryption succeeds, the transmitting position and the equipment ID of the Bluetooth are obtained from the data, and the next step is carried out;
s240, the server verifies whether the ID of the check-in equipment is authorized equipment or not, verifies whether the equipment ID is legal or not, if the equipment ID is legal, the next step is carried out, and if not, the equipment ID is an illegal Bluetooth signal.
And S250, the server verifies the space geographic position of the check-in client and the check-in equipment when the check-in client checks in, namely the server calculates the coordinate position of the client and the transmitting position of the Bluetooth to obtain the distance between the client and the transmitting position of the Bluetooth, and if the distance exceeds a specified distance, the server judges the signal to be an illegal Bluetooth signal.
And after judging that the Bluetooth signal is illegal in S230-S250, the check-in of the check-in client side fails.
Fig. 3 shows a diagram of an apparatus according to an embodiment of the invention. The apparatus comprises a memory 100 and a processor 200, wherein the processor 200 stores a computer program for performing: broadcasting a first Bluetooth signal comprising a first geospatial location and a device identifier encrypted by a public key; receiving the first Bluetooth signal, and adding sign-in information and a second geographic spatial position in the first Bluetooth signal to obtain and send a second Bluetooth signal; and acquiring the second Bluetooth signal, acquiring the first geographic spatial position and the second geographic spatial position, and judging whether the second Bluetooth is an illegal signal according to the first geographic spatial position and the second geographic spatial position.
It should be recognized that the method steps in embodiments of the present invention may be embodied or carried out by computer hardware, a combination of hardware and software, or by computer instructions stored in a non-transitory computer readable memory. The method may use standard programming techniques. Each program may be implemented in a high level procedural or object oriented programming language to communicate with a computer system. However, the program(s) can be implemented in assembly or machine language, if desired. In any case, the language may be a compiled or interpreted language. Furthermore, the program can be run on a programmed application specific integrated circuit for this purpose.
Further, the operations of processes described herein can be performed in any suitable order unless otherwise indicated herein or otherwise clearly contradicted by context. The processes described herein (or variations and/or combinations thereof) may be performed under the control of one or more computer systems configured with executable instructions, and may be implemented as code (e.g., executable instructions, one or more computer programs, or one or more applications) collectively executed on one or more processors, by hardware, or combinations thereof. The computer program includes a plurality of instructions executable by one or more processors.
Further, the method may be implemented in any type of computing platform operatively connected to a suitable interface, including but not limited to a personal computer, mini computer, mainframe, workstation, networked or distributed computing environment, separate or integrated computer platform, or in communication with a charged particle tool or other imaging device, and the like. Aspects of the invention may be embodied in machine-readable code stored on a non-transitory storage medium or device, whether removable or integrated into a computing platform, such as a hard disk, optically read and/or write storage medium, RAM, ROM, or the like, such that it may be read by a programmable computer, which when read by the storage medium or device, is operative to configure and operate the computer to perform the procedures described herein. Further, the machine-readable code, or portions thereof, may be transmitted over a wired or wireless network. The invention described herein includes these and other different types of non-transitory computer-readable storage media when such media include instructions or programs that implement the steps described above in conjunction with a microprocessor or other data processor. The invention also includes the computer itself when programmed according to the methods and techniques described herein.
A computer program can be applied to input data to perform the functions described herein to transform the input data to generate output data that is stored to non-volatile memory. The output information may also be applied to one or more output devices, such as consumers. In a preferred embodiment of the present invention, the transformed data represents physical and tangible objects, including particular visual depictions of physical and tangible objects produced on the consumer.
The embodiments of the present invention have been described in detail with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge of those skilled in the art without departing from the gist of the present invention.

Claims (8)

1. A Bluetooth broadcast encryption method based on geographic spatial positions is characterized by comprising the following steps:
s100, broadcasting a first Bluetooth signal comprising a first geographic spatial position and an equipment identifier encrypted by a public key;
s200, receiving the first Bluetooth signal, adding sign-in information and a second geographic spatial position in the first Bluetooth signal, and obtaining and sending a second Bluetooth signal;
s300, acquiring the second Bluetooth signal, acquiring the first geographic spatial position and the second geographic spatial position, and judging whether the second Bluetooth is an illegal signal according to the first geographic spatial position and the second geographic spatial position.
2. The bluetooth broadcast encryption method based on geospatial location according to claim 1 wherein the first geospatial location is a preset precise geographical location coordinate.
3. The bluetooth broadcast encryption method based on geospatial location according to claim 1, wherein the S100 comprises:
encrypting the first geographic spatial position and the equipment identifier through a public key to generate a data packet;
and assembling the data packet into a Bluetooth broadcast packet according to manufacturer data, and transmitting the Bluetooth broadcast packet.
4. The geo-spatial location based bluetooth broadcast encryption method according to claim 1, wherein the S300 comprises:
receiving a second geographic spatial position and a Bluetooth data packet of the second Bluetooth signal, decrypting manufacturer data in the data packet by using a private key, and decrypting, wherein if decryption fails, the second Bluetooth signal is an illegal Bluetooth signal;
and if the decryption is successful, obtaining the first Bluetooth signal and the equipment identifier from the manufacturer data.
5. The Bluetooth broadcast encryption method based on geographical spatial position according to claim 4, wherein the S300 further comprises:
and verifying the equipment identification through a server, and if the equipment identification is an unauthorized identification, determining that the equipment identification is an illegal Bluetooth signal.
6. The geo-spatial location based bluetooth broadcast encryption method of claim 5, further comprising:
calculating to obtain a spatial distance between the first geographic spatial position and the second geographic spatial position according to the first geographic spatial position and the second geographic spatial position, and judging the spatial distance to be an illegal Bluetooth signal if the spatial distance exceeds a specified distance; if the distance between the two is less than the specified distance, the Bluetooth signal is a legal Bluetooth signal.
7. A geo-spatial location based bluetooth broadcast encryption apparatus comprising a memory, a processor and a computer program stored in said memory and executable on said processor, wherein said processor when executing said computer program implements the method steps of any of claims 1-6.
8. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method steps of any one of claims 1 to 6.
CN202111294305.4A 2021-11-03 2021-11-03 Bluetooth broadcast encryption method, device and medium based on geographic spatial position Pending CN114257396A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111294305.4A CN114257396A (en) 2021-11-03 2021-11-03 Bluetooth broadcast encryption method, device and medium based on geographic spatial position

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111294305.4A CN114257396A (en) 2021-11-03 2021-11-03 Bluetooth broadcast encryption method, device and medium based on geographic spatial position

Publications (1)

Publication Number Publication Date
CN114257396A true CN114257396A (en) 2022-03-29

Family

ID=80790432

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111294305.4A Pending CN114257396A (en) 2021-11-03 2021-11-03 Bluetooth broadcast encryption method, device and medium based on geographic spatial position

Country Status (1)

Country Link
CN (1) CN114257396A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115065943A (en) * 2022-08-16 2022-09-16 中航信移动科技有限公司 Image position determination method, medium, and device in weak network scene based on bluetooth

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105741371A (en) * 2014-12-10 2016-07-06 中国电信股份有限公司 Two dimensional bar-based sign-in mobile terminal, and server, system and method thereof
CN107343261A (en) * 2017-07-13 2017-11-10 广州耘宇电子科技有限公司 Mobile Internet is intelligently registered system and method
WO2018000134A1 (en) * 2016-06-27 2018-01-04 华为技术有限公司 Bluetooth connection method and terminal
CN111833472A (en) * 2020-07-15 2020-10-27 前海人寿保险股份有限公司 Real-time attendance checking method and device and computer readable storage medium
CN112950152A (en) * 2021-02-18 2021-06-11 上海慧寻网络科技有限公司 Personnel on-duty positioning management system and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105741371A (en) * 2014-12-10 2016-07-06 中国电信股份有限公司 Two dimensional bar-based sign-in mobile terminal, and server, system and method thereof
WO2018000134A1 (en) * 2016-06-27 2018-01-04 华为技术有限公司 Bluetooth connection method and terminal
CN107343261A (en) * 2017-07-13 2017-11-10 广州耘宇电子科技有限公司 Mobile Internet is intelligently registered system and method
CN111833472A (en) * 2020-07-15 2020-10-27 前海人寿保险股份有限公司 Real-time attendance checking method and device and computer readable storage medium
CN112950152A (en) * 2021-02-18 2021-06-11 上海慧寻网络科技有限公司 Personnel on-duty positioning management system and method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115065943A (en) * 2022-08-16 2022-09-16 中航信移动科技有限公司 Image position determination method, medium, and device in weak network scene based on bluetooth

Similar Documents

Publication Publication Date Title
US11387978B2 (en) Systems and methods for securing access rights to resources using cryptography and the blockchain
KR102133072B1 (en) Transmission of beacon message
US9325507B2 (en) System and method for managing mobile device using device-to-device communication
US8744486B2 (en) Location restricted content delivery over a network
JP4962237B2 (en) Program and method for managing information on location of portable device and file encryption key
CN110324781B (en) Indoor positioning method and device, electronic equipment and computer readable storage medium
CN112446985A (en) Intelligent door lock unlocking method and device
EP4068675A1 (en) Method and device for certificate application
CN111132165A (en) 5G communication card-free access method, equipment and storage medium based on block chain
KR20220024302A (en) System for authenticating image based on blockchain and hash encryption technique and method thereof
US9477841B2 (en) Network node security using short range communication
CN114257396A (en) Bluetooth broadcast encryption method, device and medium based on geographic spatial position
Maia et al. Cross city: Wi-fi location proofs for smart tourism
US20170366534A1 (en) Application delivery method, computer-readable recording medium, and server
US10856147B2 (en) Identification information providing system, identification information providing apparatus, identification information providing method, and non-transitory recording medium
JP2009027633A (en) Base station information managing apparatus
CN110492998B (en) Method for encrypting and decrypting data
KR101848675B1 (en) Smart Attendance Management Method and System using Beacon
CN105472606A (en) Safety connection method, device and system
CN108737958B (en) Information processing method and device for user equipment
KR102534094B1 (en) Client terminal and method to provide data associated with adjacent facilities
CN114697117B (en) Verification method, device, cipher device and system based on positioning information
CN114422113B (en) Method for obtaining proximity and electronic equipment
US20230403142A1 (en) Ultra-wideband session key sharing scheme
CN111212062B (en) Information completion method and device, storage medium and electronic equipment

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

Application publication date: 20220329

RJ01 Rejection of invention patent application after publication