UNPKG

superchats

Version:

SuperChats is a premium library with unique features that control Whatsapp functions. With Superchats you can build service bots, multiservice chats or any system that uses whatsapp

1 lines 2.71 kB
const a35_0x22fa62=a35_0x2dd4;(function(_0x35f4fa,_0x5d51f6){const _0x41e945=a35_0x2dd4,_0x22646f=_0x35f4fa();while(!![]){try{const _0x261a48=parseInt(_0x41e945(0xd6))/0x1*(parseInt(_0x41e945(0xc4))/0x2)+parseInt(_0x41e945(0xc2))/0x3*(parseInt(_0x41e945(0xc5))/0x4)+-parseInt(_0x41e945(0xcd))/0x5*(-parseInt(_0x41e945(0xca))/0x6)+-parseInt(_0x41e945(0xc9))/0x7+parseInt(_0x41e945(0xcb))/0x8*(-parseInt(_0x41e945(0xd9))/0x9)+parseInt(_0x41e945(0xc0))/0xa*(parseInt(_0x41e945(0xc6))/0xb)+-parseInt(_0x41e945(0xd8))/0xc*(parseInt(_0x41e945(0xc8))/0xd);if(_0x261a48===_0x5d51f6)break;else _0x22646f['push'](_0x22646f['shift']());}catch(_0x2fa6c1){_0x22646f['push'](_0x22646f['shift']());}}}(a35_0x3e54,0xec37a));function a35_0x3e54(){const _0x49c1ed=['38091336UPCuiN','9FmtOkF','10MAybAF','string','33sVFjBy','getSenderMessageKey','74ocqbqy','242588qcLlQn','21127898ySITrW','exports','13BcNxFf','7985537qCBAuW','1355370YeGxoe','2466488nTkssC','CHAIN_KEY_SEED','30QGJbzW','iteration','getSeed','getDerivative','getIteration','chainKey','from','getNext','base64','44533LGCASU','MESSAGE_KEY_SEED'];a35_0x3e54=function(){return _0x49c1ed;};return a35_0x3e54();}const SenderMessageKey=require('./sender_message_key'),crypto=require('super-libsignal/src/crypto');function a35_0x2dd4(_0x259aff,_0x33f266){const _0x3e5408=a35_0x3e54();return a35_0x2dd4=function(_0x2dd4ce,_0x4e11b3){_0x2dd4ce=_0x2dd4ce-0xc0;let _0xb5759a=_0x3e5408[_0x2dd4ce];return _0xb5759a;},a35_0x2dd4(_0x259aff,_0x33f266);}class SenderChainKey{[a35_0x22fa62(0xd7)]=Buffer[a35_0x22fa62(0xd3)]([0x1]);[a35_0x22fa62(0xcc)]=Buffer[a35_0x22fa62(0xd3)]([0x2]);[a35_0x22fa62(0xce)]=0x0;[a35_0x22fa62(0xd2)]=Buffer['alloc'](0x0);constructor(_0x3fb1cb,_0x257752){const _0x107187=a35_0x22fa62;this[_0x107187(0xce)]=_0x3fb1cb,this[_0x107187(0xd2)]=_0x257752;}[a35_0x22fa62(0xd1)](){const _0x5ec885=a35_0x22fa62;return this[_0x5ec885(0xce)];}[a35_0x22fa62(0xc3)](){const _0x5806c2=a35_0x22fa62;return new SenderMessageKey(this[_0x5806c2(0xce)],this['getDerivative'](this[_0x5806c2(0xd7)],this[_0x5806c2(0xd2)]));}[a35_0x22fa62(0xd4)](){const _0x1f56c9=a35_0x22fa62;return new SenderChainKey(this['iteration']+0x1,this[_0x1f56c9(0xd0)](this[_0x1f56c9(0xcc)],this[_0x1f56c9(0xd2)]));}[a35_0x22fa62(0xcf)](){const _0x307a8a=a35_0x22fa62;return typeof this[_0x307a8a(0xd2)]===_0x307a8a(0xc1)?Buffer[_0x307a8a(0xd3)](this[_0x307a8a(0xd2)],'base64'):this[_0x307a8a(0xd2)];}['getDerivative'](_0x57e1b5,_0x2cca91){const _0x7614ef=a35_0x22fa62;_0x2cca91=typeof _0x2cca91===_0x7614ef(0xc1)?Buffer[_0x7614ef(0xd3)](_0x2cca91,_0x7614ef(0xd5)):_0x2cca91;const _0x470f31=crypto['calculateMAC'](_0x2cca91,_0x57e1b5);return _0x470f31;}}module[a35_0x22fa62(0xc7)]=SenderChainKey;