Permalink
Browse files

removed noisy console.logs

  • Loading branch information...
1 parent f4cb7d4 commit a0593c49c17ced50f2fec62495896c34b7df2d30 @ckarlof ckarlof committed Jan 17, 2013
Showing with 4 additions and 4 deletions.
  1. +1 −1 client/client.js
  2. +3 −3 client/crypto.js
View
@@ -53,7 +53,7 @@ function request(args, cb) {
if (cb) cb({ error: data, status: status });
},
complete: function () {
- console.log('request complete');
+ //console.log('request complete');
}
};
if (method == 'PUT' || method == 'POST') {
View
@@ -17,7 +17,7 @@ var GombotCrypto = (function() {
worker.onmessage = function(event) {
var data = event.data;
if (typeof data.id !== 'undefined') {
- console.log('event', event);
+ //console.log('event', event);
if (data.err) cmds[data.id](data.err);
else cmds[data.id](null, data.result);
delete cmds[data.id];
@@ -33,7 +33,7 @@ var GombotCrypto = (function() {
function doWork (cmd, args, cb) {
var id = cmdIds;
cmds[cmdIds++] = cb || function() {};
- console.log('dowork', { cmd: cmd, args: args, id: id });
+ //console.log('dowork', { cmd: cmd, args: args, id: id });
worker.postMessage({ cmd: cmd, args: args, id: id });
}
@@ -133,7 +133,7 @@ var GombotCrypto = (function() {
var ct = sjcl.mode.cbc.encrypt(new sjcl.cipher.aes(hex2bits(keys.aesKey)),
str2bits(plainText), IV);
var msg = bA.concat(bA.concat(str2bits(GOMBOT_VERSION_PREFIX), IV), ct);
- var mac = new sjcl.misc.hmac(hex2bits(keys.hmacKey),
+ var mac = new sjcl.misc.hmac(hex2bits(keys.hmacKey),
sjcl.hash.sha256).mac(msg);
var msgmac_b64 = bits2b64(bA.concat(msg, mac));
cb(null, msgmac_b64);

0 comments on commit a0593c4

Please sign in to comment.