Simple HMAC-SHA1 for JavaScript. The code was extracted directly from Chromium examples for extensions.