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 • 4.05 kB
JavaScript
const a37_0x43f6a0=a37_0x2c63;(function(_0x33606b,_0x234a97){const _0x4d1e48=a37_0x2c63,_0x4fde9f=_0x33606b();while(!![]){try{const _0x2f3642=parseInt(_0x4d1e48(0x94))/0x1*(parseInt(_0x4d1e48(0xb0))/0x2)+parseInt(_0x4d1e48(0xb1))/0x3*(parseInt(_0x4d1e48(0xae))/0x4)+-parseInt(_0x4d1e48(0xb2))/0x5*(parseInt(_0x4d1e48(0xb5))/0x6)+-parseInt(_0x4d1e48(0x9a))/0x7+-parseInt(_0x4d1e48(0xb4))/0x8*(parseInt(_0x4d1e48(0xa3))/0x9)+parseInt(_0x4d1e48(0x95))/0xa+parseInt(_0x4d1e48(0x9e))/0xb;if(_0x2f3642===_0x234a97)break;else _0x4fde9f['push'](_0x4fde9f['shift']());}catch(_0x5ad8c0){_0x4fde9f['push'](_0x4fde9f['shift']());}}}(a37_0x5df6,0x90845));const CiphertextMessage=require(a37_0x43f6a0(0x99)),curve=require(a37_0x43f6a0(0x9b)),protobufs=require(a37_0x43f6a0(0x98));class SenderKeyMessage extends CiphertextMessage{[a37_0x43f6a0(0xa4)]=0x40;constructor(_0x33fe41=null,_0xa32fc=null,_0x1dba20=null,_0x2d46a2=null,_0x9e1e54=null){const _0x354480=a37_0x43f6a0;super();if(_0x9e1e54){const _0x34326d=_0x9e1e54[0x0],_0x1c53dd=_0x9e1e54['slice'](0x1,_0x9e1e54[_0x354480(0x97)]-this[_0x354480(0xa4)]),_0x12fecf=_0x9e1e54['slice'](-0x1*this[_0x354480(0xa4)]),_0x1438c4=protobufs[_0x354480(0x96)]['decode'](_0x1c53dd)[_0x354480(0xad)]();_0x1438c4[_0x354480(0xa7)]=Buffer[_0x354480(0xaa)](_0x1438c4[_0x354480(0xa7)],_0x354480(0xa2)),this[_0x354480(0xab)]=_0x9e1e54,this[_0x354480(0xa0)]=(_0x34326d&0xff)>>0x4,this[_0x354480(0x9c)]=_0x1438c4['id'],this[_0x354480(0xb6)]=_0x1438c4[_0x354480(0xb6)],this['ciphertext']=_0x1438c4[_0x354480(0xa7)],this[_0x354480(0x8f)]=_0x12fecf;}else{const _0x1397d1=((this[_0x354480(0xa8)]<<0x4|this['CURRENT_VERSION'])&0xff)%0x100;_0x1dba20=Buffer[_0x354480(0xaa)](_0x1dba20);const _0x41a84c=protobufs['SenderKeyMessage'][_0x354480(0xa1)](protobufs['SenderKeyMessage'][_0x354480(0xaf)]({'id':_0x33fe41,'iteration':_0xa32fc,'ciphertext':_0x1dba20}))[_0x354480(0x93)](),_0x7d26ac=this['getSignature'](_0x2d46a2,Buffer[_0x354480(0x91)]([Buffer[_0x354480(0xaa)]([_0x1397d1]),_0x41a84c]));this[_0x354480(0xab)]=Buffer['concat']([Buffer[_0x354480(0xaa)]([_0x1397d1]),_0x41a84c,Buffer[_0x354480(0xaa)](_0x7d26ac)]),this[_0x354480(0xa0)]=this[_0x354480(0xa8)],this[_0x354480(0x9c)]=_0x33fe41,this['iteration']=_0xa32fc,this['ciphertext']=_0x1dba20,this['signature']=_0x7d26ac;}}[a37_0x43f6a0(0x90)](){const _0x2b7137=a37_0x43f6a0;return this[_0x2b7137(0x9c)];}[a37_0x43f6a0(0xa9)](){const _0x58eebc=a37_0x43f6a0;return this[_0x58eebc(0xb6)];}[a37_0x43f6a0(0x9f)](){return this['ciphertext'];}['verifySignature'](_0x14be45){const _0x445a14=a37_0x43f6a0,_0x3ca229=this['serialized'][_0x445a14(0xa6)](0x0,this[_0x445a14(0xab)]['length']-this[_0x445a14(0xa4)]),_0x4265b1=this[_0x445a14(0xab)]['slice'](-0x1*this[_0x445a14(0xa4)]),_0x10d96a=curve[_0x445a14(0xa5)](_0x14be45,_0x3ca229,_0x4265b1);if(!_0x10d96a)throw new Error(_0x445a14(0x92));}[a37_0x43f6a0(0xac)](_0x295e22,_0x561ce0){const _0x38ebcc=a37_0x43f6a0,_0x41283d=Buffer[_0x38ebcc(0xaa)](curve['calculateSignature'](_0x295e22,_0x561ce0));return _0x41283d;}[a37_0x43f6a0(0x9d)](){const _0x3e3d2e=a37_0x43f6a0;return this[_0x3e3d2e(0xab)];}[a37_0x43f6a0(0xb3)](){return 0x4;}}module['exports']=SenderKeyMessage;function a37_0x2c63(_0x5433fe,_0xa01ca7){const _0x5df658=a37_0x5df6();return a37_0x2c63=function(_0x2c635d,_0x41c348){_0x2c635d=_0x2c635d-0x8f;let _0x4f2515=_0x5df658[_0x2c635d];return _0x4f2515;},a37_0x2c63(_0x5433fe,_0xa01ca7);}function a37_0x5df6(){const _0x1c1735=['4Bhxxqs','3545400UJSTNp','SenderKeyMessage','length','./protobufs','./ciphertext_message','6474482tjWhgZ','super-libsignal/src/curve','keyId','serialize','6817668rIuWUV','getCipherText','messageVersion','encode','base64','2140731mraUwj','SIGNATURE_LENGTH','verifySignature','slice','ciphertext','CURRENT_VERSION','getIteration','from','serialized','getSignature','toJSON','37196AWiDIH','create','545442CJgYQa','108zyxgce','125JdrelB','getType','8bQQXWM','154860hpUDbV','iteration','signature','getKeyId','concat','Invalid\x20signature!','finish'];a37_0x5df6=function(){return _0x1c1735;};return a37_0x5df6();}