Patent attributes
A method for transmitting data includes: obtaining original data to be encrypted on a network device; determining a decryption geographic location of the original data to be encrypted, and selecting a hotspot within a range of the decryption geographic location; afterwards, using attribute information of the selected hotspot as an encryption key to encrypt the original data to be encrypted, and obtaining ciphertext data and sending the ciphertext data to user equipment. The attribute information is available to the user equipment by the user equipment scanning the hotspot within the range of the decryption geographic location. The present disclosure realizes encryption of the original data based on an actual decryption geographic location which is used as the encryption key of the original data to be encrypted.