LastPass is all kinds of awesome.

If you’re not familiar with LastPass, it’s not quite enough to say that it’s a password manager. It is, but it’s so much better than that – it’s a password manager done the right way.  I don’t want to get into explaining the many features that make LastPass bulletproof, so I’ll sum it up like this:  LastPass doesn’t store your passwords on their server. Instead, the LastPass software performs all encryption on your local machine, then sends only the encrypted values to LastPass.  Only you have the key to decrypt that data. The LastPass people couldn’t decrypt your data if they wanted to.

One of the features LastPass is missing, though, is support for saving basic authentication credentials in Google Chrome.  “Basic Authentication” is the type used by the Apache web server, configured using htaccess and htpasswd.  You know, the one that has the browser pop up a little box asking for your username and password.

This isn’t a fault of LastPass, instead, this restriction is due to Chrome’s internal security mechanism.

Fortunately, it is possible to get LastPass fill in Basic Auth passwords in Chrome. You just can’t save them via Chrome.

So, to get LastPass to work with Basic Auth boxes in Chrome, do this:

1.  Make sure that the LastPass software is installed on your computer.  Not just the plugin, but the actual software installation package.

2.  Make sure that the binary component is enabled in the Chrome plugin.  From Chrome, go to LastPass Icon > Tools > About and look for the words “Binary Component: true”

3.  Now go to the site you’d like to save in another browser, such as Firefox or IE.  Login to the site and have LastPass remember the information.

4.  Go back to Chrome and do a manual sync – LastPass Icon > Tools > Refresh Sites.  (Or just wait for LastPass to do the update automatically.)

Voila – LastPass for Chrome will now fill in the htaccess Basic Auth credentials when prompted.

It’s not a perfect solution, but it works.