Data processing method, device, and storage medium
AssigneeBeijing Baidu Netcom Science Technology Co., Ltd.
InventorTingting GE
Life of this patent
Estimating the term…
Abstract
Provided are a data processing method and apparatus, a device, and a storage medium. The data processing method includes extracting the original data of a preset field from a to-be-broadcast Bluetooth data packet, where the preset field includes at least one of: a media access control (MAC) address field, a Bluetooth major identifier field, or a Bluetooth minor identifier field; acquiring the validity check value of the to-be-broadcast Bluetooth data packet; encrypting the original data of the preset field by using the validity check value and a Bluetooth key to obtain the target data of the original data, where the target data includes a data ciphertext; and determining an encrypted Bluetooth data packet based on the target data and broadcasting the encrypted Bluetooth data packet.
Claims20
A data processing method, comprising:
- extracting original data of a preset field from a to-be-broadcast Bluetooth data packet, wherein the preset field comprises at least one of:
- a media access control (MAC) address field, a Bluetooth major identifier field, or a Bluetooth minor identifier field;
- acquiring a validity check value of the to-be-broadcast Bluetooth data packet;
- encrypting the original data of the preset field by using the validity check value and a Bluetooth key to obtain target data of the original data, wherein the target data comprises a data ciphertext;
- and
- determining an encrypted Bluetooth data packet based on the target data and broadcasting the encrypted Bluetooth data packet.
A data processing method, comprising:
- receiving an encrypted Bluetooth data packet broadcast by a Bluetooth device;
- extracting target data of a preset field from the encrypted Bluetooth data packet, wherein the preset field comprises at least one of:
- a MAC address field, a major field, or a minor field, and the target data comprises a data ciphertext;
- acquiring a validity check value of the encrypted Bluetooth data packet;
- decrypting the data ciphertext in the target data by using the validity check value and a Bluetooth key of the Bluetooth device to obtain original data of the target data;
- and
- determining a decrypted Bluetooth data packet based on the original data and performing positioning processing based on the decrypted Bluetooth data packet.
An electronic device, comprising:
- at least one processor;
- and
- a memory communicatively connected to the at least one processor,
- wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to execute a data processing method, wherein the data processing method comprises:
- extracting original data of a preset field from a to-be-broadcast Bluetooth data packet, wherein the preset field comprises at least one of:
- a media access control (MAC) address field, a Bluetooth major identifier field, or a Bluetooth minor identifier field;
- acquiring a validity check value of the to-be-broadcast Bluetooth data packet;
- encrypting the original data of the preset field by using the validity check value and a Bluetooth key to obtain target data of the original data, wherein the target data comprises a data ciphertext;
- and
- determining an encrypted Bluetooth data packet based on the target data and broadcasting the encrypted Bluetooth data packet.
Dependencies are inferred from the claim text.