From 305bf90e8558fd723a31dd6edba92ae101919703 Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Sun, 5 Jan 2014 21:50:57 +0400 Subject: [PATCH] Improved readme, fixed log --- README.md | 1 - app/js/lib/mtproto.js | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index d3094bb0..85d5a434 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,4 @@ ## Webogram - Telegram UNOFFICIAL web application -================================================= Telegram offers great [apps for mobile communication](https://www.telegram.org). It is based on the [MTProto protocol](https://core.telegram.org/protocol) and has an [Open API](http://core.telegram.org/api). I personally like Telegram for its speed and cloud-support (that makes a web app possible, unlike in the case of WA and others). diff --git a/app/js/lib/mtproto.js b/app/js/lib/mtproto.js index 8d236540..0fa9230d 100644 --- a/app/js/lib/mtproto.js +++ b/app/js/lib/mtproto.js @@ -227,7 +227,7 @@ function aesEncrypt (bytes, keyBytes, ivBytes) { } function aesDecrypt (encryptedBytes, keyBytes, ivBytes) { - dLog('AES decrypt start', encryptedBytes.length/*, bytesToHex(keyBytes), bytesToHex(ivBytes)*/); + // dLog('AES decrypt start', encryptedBytes.length/*, bytesToHex(keyBytes), bytesToHex(ivBytes)*/); var decryptedWords = CryptoJS.AES.decrypt({ciphertext: bytesToWords(encryptedBytes)}, bytesToWords(keyBytes), { iv: bytesToWords(ivBytes), @@ -237,7 +237,7 @@ function aesDecrypt (encryptedBytes, keyBytes, ivBytes) { var bytes = bytesFromWords(decryptedWords); - dLog('AES decrypt finish'); + // dLog('AES decrypt finish'); return bytes; } @@ -1088,7 +1088,7 @@ factory('MtpAuthorizer', function (MtpDcConfigurator, MtpRsaKeysManager, MtpSecu auth.pq = response.pq; auth.fingerprints = response.server_public_key_fingerprints; - dLog('ResPQ', bytesToHex(auth.serverNonce), bytesToHex(auth.pq), auth.fingerprints); + // dLog('ResPQ', bytesToHex(auth.serverNonce), bytesToHex(auth.pq), auth.fingerprints); auth.publicKey = MtpRsaKeysManager.select(auth.fingerprints); @@ -1306,7 +1306,7 @@ factory('MtpAuthorizer', function (MtpDcConfigurator, MtpRsaKeysManager, MtpSecu } var serverSalt = bytesXor(auth.newNonce.slice(0, 8), auth.serverNonce.slice(0, 8)); - dLog('Auth successfull!', authKeyID, authKey, serverSalt); + // dLog('Auth successfull!', authKeyID, authKey, serverSalt); auth.authKeyID = authKeyID; auth.authKey = authKey;