Method and device for transmitting information

The invention discloses a method for transmitting information. The method comprises the following steps: authenticating identification of an access point; and transmitting information to the access point after the authentication passes. The device for transmitting information comprises an authentication unit and a transmission unit, wherein the authentication unit is used for authenticating the identification of the access point; and the transmission unit is used for transmitting the information to the access point after authentication of the authentication unit is passed. After the identification of the access point is authenticated, the information is transmitted to the access point, if the access point self is a hostile attacker, the device can protect the information of a user from being acquired by an illegal attacker, thereby improving the security of the information of the user and protecting the privacy of the user.