2-Factor authentication on Google

Water wheel

Google has recently enabled two-factor authentication for all users with a Google Account. This means that, when you log in, you provide two pieces of secret information, rather than just a password (which would be ‘one-factor’ authentication). This second piece is a 6-digit code that is generated randomly every 30 seconds from another device.

This improves security by ensuring that, even when a third party knows your password, they still cannot log into your account without the 6-digit code (although see below). Think of it like a PIN number – a thief could steal your credit card but wouldn’t be able to get money out of an ATM without knowing the PIN number.

Some banks have started using two-factor authentication for their online banking services – as well as your username and password, you are asked to enter a code generated by a small electronic device on your keyring. Blizzard Entertainment offers a similar device for World of Warcraft and Starcraft II players, as well as a free iPhone app that does the same thing.

So Google isn’t the first to offer this – it’s actually reasonably well tried and tested. To activate it, log into your account and click the ‘Using 2-step verification’ link. Google will then walk you through setting up your account for two-factor authentication.

There are a variety of options for the second factor. There are apps for the iPhone and Android phones, but you can also receive a code by text message to a mobile phone number that you provide during the initial setup. You’ll also be asked to provide a backup system in case you lose your phone; in my case, Google will phone my work number and a computer will read a number to me.

I mentioned there’s a caveat. Two-factor authentication works great on Google’s various web sites, but falls down if you access Google services through other apps, such as IMAP for Gmail, or CalDAV for Google Calendar, which aren’t really designed with two-factor authentication in mind. As soon as you enable two-factor authentication, any attempts to access data over these protocols will see your login fail.

Thankfully, there’s a way around it, in the form of application-specific passwords. Essentially, for each method of connecting to your Google Account, you can create a separate password. Each password can then be revoked if you find someone using it without your permission, and once generated, passwords cannot be viewed again. Furthermore, the passwords can’t be used to get into your account on the Google web site (they would need your main password and verification code), so it wouldn’t be possible for a hacker to change your main password, or deactivate the two-factor system. It’s not a perfect solution, though.

I’ve turned on two-factor authentication because I have a lot of important personal data in my Google Account – all my contacts, my calendars and hosting details for this site – and wouldn’t want anyone obtaining unauthorised access. The workarounds for CalDAV and IMAP are a bit of a pain, but I feel it’s worth it for the piece of mind.

Whilst we’re on the subject of Google Account security, if you use Firefox I’d recommend installing the HTTPS Everywhere addon, which forces the use of SSL/TLS on most parts of Google. I would, however, suggest disabling the ‘Google APIs’ option in its preferences as this may break some other web sites. Still, it will help to prevent your Google Account data being caught be man-in-the-middle attacks.

Picasa 2 Rocks!

A screenshot showing a before and after image that has been enhanced by Picasa's 'I'm Feeling Lucky' tool

Thanks to Chris G for letting me know that Google has just released Picasa 2, a new version of their photo editing tool that they acquired last year. It’s really worth the download – it has a superb auto-adjust mode called ‘I’m Feeling Lucky’ which can instantly fix bad photos, like the one above which was taken using the flash in a very smoky environment. It’s also good for managing photos, such as categorising and tagging them. My father would really like this.

(It’s Windows-only, I’m afraid)

Off to Cambridge

I’m going to Cambridge for the day to meet some people from the ODP, like I did last year in Birmingham. It should be fun, but I only have just over half an hour to get ready 🙂 .

A couple of links for the morning: not only can you rent Chris Pirillo’s chest, you can rent his mind, too. Payment via PayPal.

And Jake has linked to a SearchEngineWatch article telling you how to do well on Google. I don’t necessarily agree all with it (not mentioning your company name in the title tag is silly in my opinion, as it defeats the point of having that tag in the first place), but there are some good tips, so it’s well worth a read.

And now if I don’t get a shower, I’m sooo going to miss my train. Toodles.