diff --git a/api/network/modify.ts b/api/network/modify.ts index 08ed3b4..d0c1853 100644 --- a/api/network/modify.ts +++ b/api/network/modify.ts @@ -25,7 +25,7 @@ export async function modifyPayload(payload, chat) { try { const r = await fetch(`https://${terms.host}/file/${mt}`) const buf = await r.buffer() - console.log("[modify] buf.length", buf.length) + console.log("[modify] buf.length", buf.length) // "Unauthorized" const decMediaKey = rsa.decrypt(chat.groupPrivateKey, key) console.log("[modify] decMediaKey", decMediaKey) @@ -59,7 +59,7 @@ export async function modifyPayload(payload, chat) { const encKey = rsa.encrypt(chat.groupKey, newKey) console.log("[modify] new encKey", encKey) - + return fillmsg(payload, {mediaTerms,mediaKey:encKey}) // key is re-encrypted later } catch(e) { console.log("[modify] error", e) diff --git a/api/utils/rncryptor/index.js b/api/utils/rncryptor/index.js index 5a587c0..8c01884 100644 --- a/api/utils/rncryptor/index.js +++ b/api/utils/rncryptor/index.js @@ -1,5 +1,5 @@ -import {RNCryptor} from './rncryptor' +import * as RNCryptor from './rncryptor' export default RNCryptor \ No newline at end of file diff --git a/dist/api/network/modify.js b/dist/api/network/modify.js index f714344..98953ff 100644 --- a/dist/api/network/modify.js +++ b/dist/api/network/modify.js @@ -34,7 +34,7 @@ function modifyPayload(payload, chat) { try { const r = yield fetch(`https://${terms.host}/file/${mt}`); const buf = yield r.buffer(); - console.log("[modify] buf.length", buf.length); + console.log("[modify] buf.length", buf.length); // "Unauthorized" const decMediaKey = rsa.decrypt(chat.groupPrivateKey, key); console.log("[modify] decMediaKey", decMediaKey); const imgBase64 = rncryptor_1.default.Decrypt(decMediaKey, buf.toString('base64')); diff --git a/dist/api/network/modify.js.map b/dist/api/network/modify.js.map index a94f29f..ba9b4c9 100644 --- a/dist/api/network/modify.js.map +++ b/dist/api/network/modify.js.map @@ -1 +1 @@ -{"version":3,"file":"modify.js","sourceRoot":"","sources":["../../../api/network/modify.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,6BAA4B;AAC5B,kDAA0C;AAC1C,oCAAm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C,GAAG,IAAE,QAAQ;oBACjC,IAAI,oBAAK,GAAG,IAAI,EAAC,GAAG,EAAC,CAAC;oBACtB,WAAW,EAAE,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,wBAAwB;iBACzD,CAAA;gBACD,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,UAAU,CAAC,CAAA;gBAE7C,MAAM,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAA;gBACjD,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,MAAM,CAAC,CAAA;gBAE1C,OAAO,OAAO,CAAC,OAAO,EAAE,EAAC,UAAU,EAAC,QAAQ,EAAC,MAAM,EAAC,CAAC,CAAA,CAAC,4BAA4B;aACnF;YAAC,OAAM,CAAC,EAAE;gBACT,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAA;gBAChC,OAAO,OAAO,CAAA;aACf;YACD,sCAAsC;SACvC;QACD,OAAO,OAAO,CAAA;IAChB,CAAC;CAAA;AA3DD,sCA2DC;AAED,SAAS,OAAO,CAAC,IAAI,EAAE,KAAK;IAC3B,uCACI,IAAI,KAAE,OAAO,kCACZ,IAAI,CAAC,OAAO,GACZ,KAAK,KAET;AACF,CAAC"} \ No newline at end of file +{"version":3,"file":"modify.js","sourceRoot":"","sources":["../../../api/network/modify.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,6BAA4B;AAC5B,kDAA0C;AAC1C,oCAAmC;AACnC,wCAAuC;AACvC,qCAAoC;AACpC,iCAAgC;AAChC,mCAAkC;AAElC,MAAM,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAC,6BAA6B,CAAC,CAAC,CAAA;AAC7E,MAAM,QAAQ,GAAG,SAAS,CAAC,aAAa,CAAA;AAExC,SAAsB,aAAa,CAAC,OAAO,EAAE,IAAI;;QAC/C,IAAG,O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M,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAA;gBACjD,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,MAAM,CAAC,CAAA;gBAE1C,OAAO,OAAO,CAAC,OAAO,EAAE,EAAC,UAAU,EAAC,QAAQ,EAAC,MAAM,EAAC,CAAC,CAAA,CAAC,4BAA4B;aACnF;YAAC,OAAM,CAAC,EAAE;gBACT,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAA;gBAChC,OAAO,OAAO,CAAA;aACf;YACD,sCAAsC;SACvC;QACD,OAAO,OAAO,CAAA;IAChB,CAAC;CAAA;AA3DD,sCA2DC;AAED,SAAS,OAAO,CAAC,IAAI,EAAE,KAAK;IAC3B,uCACI,IAAI,KAAE,OAAO,kCACZ,IAAI,CAAC,OAAO,GACZ,KAAK,KAET;AACF,CAAC"} \ No newline at end of file diff --git a/dist/api/utils/msg.js b/dist/api/utils/msg.js index 8d939b0..8fe056f 100644 --- a/dist/api/utils/msg.js +++ b/dist/api/utils/msg.js @@ -80,7 +80,6 @@ function addInMediaKey(full, contactId, isTribe) { if (!(typeof m.mediaKey === 'object')) return full; if (isTribe) { - // if just one, send it (for tribe remote_text_map... is there a better way?) if (Object.values(m.mediaKey).length === 1) { const tribeMediaKey = m.mediaTerms.skipSigning ? '' : Object.values(m.mediaKey)[0]; return fillmsg(full, { mediaKey: tribeMediaKey }); diff --git a/dist/api/utils/msg.js.map b/dist/api/utils/msg.js.map index bcdedf8..dd58251 100644 --- a/dist/api/utils/msg.js.map +++ b/dist/api/utils/msg.js.map @@ -1 +1 @@ -{"version":3,"file":"msg.js","sourceRoot":"","sources":["../../../api/utils/msg.ts"],"names":[],"mappings":";;;;;;;;;;;AACA,iCAAuC;AACvC,6BAA4B;AAC5B,qCAAoC;AACpC,MAAM,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAC,6B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AAM,qBAAqB,CAAC,eAAe,EAAE,OAAO,CAAC,CAAA;QAC/E,MAAM,MAAM,GAAG,MAAM,qBAAqB,CAAC,iBAAiB,EAAE,OAAO,EAAE,OAAO,EAAE,YAAY,CAAC,CAAA;QAC1F,OAAO,MAAM,CAAA;IACjB,CAAC;CAAA;AAqBG,gDAAkB;AAnBtB,SAAS,OAAO,CAAC,IAAI,EAAE,KAAK;IAC3B,uCACI,IAAI,KAAE,OAAO,kCACZ,IAAI,CAAC,OAAO,GACZ,KAAK,KAET;AACF,CAAC;AAED,SAAS,WAAW,CAAC,IAAI,EAAE,KAAK;IAC/B,uCACI,IAAI,KAAE,IAAI,kCACT,IAAI,CAAC,IAAI,GACT,KAAK,KAET;AACF,CAAC"} \ No newline at end of file diff --git a/dist/api/utils/rncryptor/index.js b/dist/api/utils/rncryptor/index.js index 88089e8..d7f0bcf 100644 --- a/dist/api/utils/rncryptor/index.js +++ b/dist/api/utils/rncryptor/index.js @@ -1,5 +1,5 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const rncryptor_1 = require("./rncryptor"); -exports.default = rncryptor_1.RNCryptor; +const RNCryptor = require("./rncryptor"); +exports.default = RNCryptor; //# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/api/utils/rncryptor/index.js.map b/dist/api/utils/rncryptor/index.js.map index 41f0d79..19ba0de 100644 --- a/dist/api/utils/rncryptor/index.js.map +++ b/dist/api/utils/rncryptor/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../api/utils/rncryptor/index.js"],"names":[],"mappings":";;AAEA,2CAAqC;AAErC,kBAAe,qBAAS,CAAA"} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../api/utils/rncryptor/index.js"],"names":[],"mappings":";;AAEA,yCAAwC;AAExC,kBAAe,SAAS,CAAA"} \ No newline at end of file diff --git a/dist/app.js b/dist/app.js index 685dcb2..57935a8 100644 --- a/dist/app.js +++ b/dist/app.js @@ -22,6 +22,8 @@ const setup_1 = require("./api/utils/setup"); const controllers = require("./api/controllers"); const socket = require("./api/utils/socket"); const network = require("./api/network"); +const rncryptor_1 = require("./api/utils/rncryptor"); +console.log("===========================================", rncryptor_1.default); let server = null; const port = process.env.PORT || 3001; const env = process.env.NODE_ENV || 'development'; diff --git a/dist/app.js.map b/dist/app.js.map index 7b878ba..04b4067 100644 --- a/dist/app.js.map +++ b/dist/app.js.map @@ -1 +1 @@ -{"version":3,"file":"app.js","sourceRoot":"","sources":["../app.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,mCAAkC;AAClC,0CAAyC;AACzC,iCAAgC;AAChC,8CAA6C;AAC7C,iCAAgC;AAChC,6BAA4B;AAC5B,yCAAmC;AACnC,+CAAuC;AACvC,mCAAkE;AAClE,6CAA0D;AAC1D,iDAAgD;AAChD,6CAA4C;AAC5C,yCAAwC;AAExC,IAAI,MAAM,GAAQ,IAAI,CAAA;AACtB,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC;AACtC,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,QAAQ,IAAI,aAAa,CAAC;AAClD,MAAM,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,iBAAiB,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;AAErE,OAAO,CAAC,GAAG,CAAC,sBAAsB,GAAG,YAAY,CAAA;AAEjD,IAAI,CAAC,GAAG,CAAC,CAAA;AAET,eAAe;AACf,YAAY,EAAE,CAAA;AAEd,SAAe,YAAY;;QAC1B,CAAC,EAAE,CAAA;QACH,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC,EAAE,CAAC,CAAA;QACnD,IAAI;YACH,MAAM,OAAO,CAAC,qBAAqB,EAAE,CAAA,CAAG,MAAM;YAC9C,MAAM,SAAS,EAAE,CAAA,CAAM,eAAe;YACtC,MAAM,OAAO,CAAC,uBAAuB,EA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