Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
language: node_js
node_js:
- 0.8
- 0.6
- 4
- 5
- 6
2 changes: 1 addition & 1 deletion lib/multipass.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ var api = module.exports = function(apiKey, siteKey) {
if (!(this instanceof api)) return new api(apiKey, siteKey);
if (!(typeof apiKey == 'string' && apiKey.length > 0)) throw new Error('Invalid API key');
if (!(typeof siteKey == 'string' && siteKey.length > 0)) throw new Error('Invalid site key');
this._key = crypto.createHash('sha1').update(apiKey + siteKey).digest('binary').substring(0, BLOCK_SIZE);
this._key = crypto.createHash('sha1').update(apiKey + siteKey).digest().slice(0, BLOCK_SIZE);
this._iv = new Buffer('OpenSSL for Ruby', 'ascii');
return this;
};
Expand Down