Bad things can happen if your Twitter account gets hacked. At best, it annoys and confuses your followers; at worst, your account gets used to spread spam and malware. Ugh. Although nothing can completely stop hack attacks, using two-factor authentication can help.
Two-factor authentication—or as Twitter calls it, "login verification"—adds an additional layer of security when you try to log in to your account. In addition to entering your username and password, you also need to enter a single-use security code, which is usually sent to you via a text message or through the official Twitter smartphone app. This can prevent someone from accessing your account even if they get ahold of your username and password.
Twitter has a couple methods of supplying you a security code, and the method for setting it up is slightly different depending on which method you choose.
Getting verification codes via text message
To get your login verification codes in text messages, start by visiting Twitter.com and log in with your username and password. Next, click the gear icon in the upper right corner, and choose Settings from the menu that appears. On the next page, select Security and Privacy from the list on the left-hand side, then look for the Login Verification section under the Security heading.
ConversionConversion EmoticonEmoticon