How to use a two-factor security key Use hardware to keep your data safe Jun 9, 2021, 9:30am EDT If you buy something from a Verge link, Vox Media may earn a commission. See our ethics statement. Share this story Two-factor authentication is a good way to add an extra layer of security to online accounts. It requires the use of your smartphone, however, which is not only inconvenient, but can be a problem if your phone is lost or breached. Hardware security keys can offer an additional layer of security to password-protected online accounts and, in turn, your identity. They’re also not hard to install. Here’s how to set them up for your Google account, Facebook, and Twitter.