Transmission of beacon message
Methods and systems of transmitting a beacon message. Implementations of the present disclosure include determining, by a computing device based on a predetermined algorithm, an encryption method using a current time as a parameter. The computing device may encrypt a beacon message using the determined encryption method to obtain an encrypted beacon message. The computing device may further generate a radio frame including the encrypted beacon message and information associated with a decryption computing device, and transmit the radio frame to a mobile device. Implementations of this present disclosure avoid leaking users' sensitive information, and therefore protect users' privacy as well as improve safe uses of beacon transmission.
1. A method implemented by a beacon comprising one or more processors, the method comprising:
determining an encryption method from among N types of encryption methods using a current time as a parameter, wherein N is a natural number greater than one, the N types of encryption methods comprise at least a symmetric encryption algorithm and an asymmetric encryption algorithm, and the determining comprises:
mapping the current time to M using a predetermined mapping algorithm, M being another natural number greater than or equal to one and less than N, and
designating an encryption method corresponding to M as the determined encryption method from among the N types of encryption methods;
encrypting an identifier of the beacon using the determined encryption method to obtain a beacon message comprising an encrypted identifier of the beacon;
generating a radio frame comprising the beacon message and information associated with a decryption computing device;
transmitting the radio frame to a mobile device;
determining a total number of transmission times of radio frames in a day based on a radio transmission frequency;
counting a number of transmission times of the radio frames based on the current time and the radio transmission frequency;
modifying the encryption method in response to a determination that the counted number of transmission times is equal to the total number of transmission times; and
recounting the number of transmission times.
2. The method of claim 1 , wherein the determined encryption method comprises the symmetric encryption algorithm or the asymmetric encryption algorithm.
3. The method of claim 1 , wherein the beacon message further comprises information associated with the beacon, the information associated with the beacon comprising at least one of a location of the beacon, a configuration of the beacon, a service associated with the beacon, or a hardware parameter of the beacon.
4. A system comprising:
one or more processors;
memory;
an encryption determination module stored in the memory and executable by the one or more processors to determine an encryption method from among a plurality of different encryption methods using a current time as a parameter by mapping the current time to a particular natural number using a predetermined mapping algorithm and designating a particular encryption method corresponding to the particular natural number as the determined encryption method from among the plurality of different encryption methods;
an encryption module stored in the memory and executable by the one or more processors to encrypt an identifier of a beacon using the determined encryption method to obtain a beacon message comprising an encrypted identifier of a beacon;
a transmission module stored in the memory and executable by the one or more processors to:
generate a radio frame comprising the beacon message and information associated with a decryption computing device, and
transmit the radio frame to a mobile device;
a total counting module stored in the memory and executable by the one or more processors to determine a total number of transmission times of radio frames in a day based on a radio transmission frequency;
a counting module stored in the memory and executable by the one or more processors to count a number of transmission times of the radio frames based on the current time and the radio transmission frequency; and
an encryption modification module stored in the memory and executable by the one or more processors to modify the encryption method in response to a determination that the counted number of transmission times is equal to the total number of transmission times, and recount the number of transmission times.
5. The system of claim 4 , wherein the determined encryption method comprises a symmetric encryption algorithm or an asymmetric encryption algorithm.
6. The system of claim 4 , wherein the beacon message further comprises information associated with the beacon, the information associated with the beacon comprising at least one of a location of the beacon, a configuration of the beacon, a service associated with the beacon, or a hardware parameter of the beacon.
7. A method comprising:
determining an encryption method from among a plurality of different encryption methods using a current time as a parameter by mapping the current time to a particular natural number using a predetermined mapping algorithm and designating a particular encryption method corresponding to the particular natural number as the determined encryption method from among the plurality of different encryption methods;
encrypting an identifier of a beacon using the determined encryption method to obtain a beacon message comprising an encrypted identifier of a beacon;
generating a radio frame comprising the beacon message and information associated with a decryption computing device, and
transmitting the radio frame to a mobile device;
determining a total number of transmission times of radio frames in a day based on a radio transmission frequency;
counting a number of transmission times of the radio frames based on the current time and the radio transmission frequency; and
modifying the encryption method in response to a determination that the counted number of transmission times is equal to the total number of transmission times, and recount the number of transmission times.
8. The method of claim 7 , wherein the determined encryption method comprises a symmetric encryption algorithm or an asymmetric encryption algorithm.
9. The method of claim 7 , wherein the beacon message further comprises information associated with the beacon, the information associated with the beacon comprising at least one of a location of the beacon, a configuration of the beacon, a service associated with the beacon, or a hardware parameter of the beacon.
10. One or more computer-readable media storing executable instructions that, when executed by one or more processors, cause the one or more processor to perform acts comprising:
determining an encryption method from among a plurality of different encryption methods using a current time as a parameter by mapping the current time to a particular natural number using a predetermined mapping algorithm and designating a particular encryption method corresponding to the particular natural number as the determined encryption method from among the plurality of different encryption methods;
encrypting an identifier of a beacon using the determined encryption method to obtain a beacon message comprising an encrypted identifier of a beacon;
generating a radio frame comprising the beacon message and information associated with a decryption computing device, and
transmitting the radio frame to a mobile device;
determining a total number of transmission times of radio frames in a day based on a radio transmission frequency;
counting a number of transmission times of the radio frames based on the current time and the radio transmission frequency; and
modifying the encryption method in response to a determination that the counted number of transmission times is equal to the total number of transmission times, and recount the number of transmission times.
11. The one or more computer-readable media of claim 10 , wherein the determined encryption method comprises a symmetric encryption algorithm or an asymmetric encryption algorithm.
12. The one or more computer-readable media of claim 10 , wherein the beacon message further comprises information associated with the beacon, the information associated with the beacon comprising at least one of a location of the beacon, a configuration of the beacon, a service associated with the beacon, or a hardware parameter of the beacon.