Authy lets you back up your two-factor authentication codes to the cloud and to your other devices, encrypted with a password you provide. You can then restore that backup to a new phone, or if your phone isn't nearby, use your computer or your tablet to generate codes instead. More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.