YiAi/YiAiQuickDeploy/dist/common/utils/base.js

1 line
2.1 KiB
JavaScript

'use strict';const _0x192809=_0x2638;(function(_0x193610,_0x64a2fe){const _0x5e4f08=_0x2638,_0xc841cd=_0x193610();while(!![]){try{const _0x16b954=-parseInt(_0x5e4f08(0x151))/0x1*(-parseInt(_0x5e4f08(0x152))/0x2)+parseInt(_0x5e4f08(0x147))/0x3*(-parseInt(_0x5e4f08(0x15a))/0x4)+-parseInt(_0x5e4f08(0x159))/0x5+-parseInt(_0x5e4f08(0x14e))/0x6+parseInt(_0x5e4f08(0x155))/0x7+parseInt(_0x5e4f08(0x144))/0x8*(-parseInt(_0x5e4f08(0x157))/0x9)+parseInt(_0x5e4f08(0x14f))/0xa;if(_0x16b954===_0x64a2fe)break;else _0xc841cd['push'](_0xc841cd['shift']());}catch(_0x159758){_0xc841cd['push'](_0xc841cd['shift']());}}}(_0x4222,0x73b22));function _0x4222(){const _0x26c292=['15891dZYQZr','createCipheriv','518363fh72eec1v4','utf8','encrypt','decrypt','__esModule','3842964dvNRDz','15448750cMHfwI','bf3c116f2470cb4che9071240917c171','179531bvJuCd','2nFGRvo','update','aes-256-cbc','6424222tXVvHI','exit','6336279cgTDXg','final','3032800FAwobu','164lobUPI','8JCUVBF','defineProperty','base64'];_0x4222=function(){return _0x26c292;};return _0x4222();}Object[_0x192809(0x145)](exports,_0x192809(0x14d),{'value':!![]}),exports[_0x192809(0x14c)]=exports[_0x192809(0x14b)]=void 0x0;const crypto=require('crypto'),encryptionKey=_0x192809(0x150),initializationVector=_0x192809(0x149),algorithm=_0x192809(0x154);function encrypt(_0x99fb1c){const _0x2c8351=_0x192809,_0xb1af74=crypto[_0x2c8351(0x148)](algorithm,encryptionKey,initializationVector);let _0x11ed97=_0xb1af74[_0x2c8351(0x153)](_0x99fb1c,_0x2c8351(0x14a),'base64');return _0x11ed97+=_0xb1af74[_0x2c8351(0x158)]('base64'),_0x11ed97;}exports[_0x192809(0x14b)]=encrypt;function _0x2638(_0x281c4a,_0x10fcd5){const _0x422274=_0x4222();return _0x2638=function(_0x26381a,_0x51d4f0){_0x26381a=_0x26381a-0x144;let _0x123d92=_0x422274[_0x26381a];return _0x123d92;},_0x2638(_0x281c4a,_0x10fcd5);}function decrypt(_0x5d472d){const _0x479d1a=_0x192809;try{const _0x2f39b6=crypto['createDecipheriv'](algorithm,encryptionKey,initializationVector);let _0x8e9e4e=_0x2f39b6['update'](_0x5d472d,_0x479d1a(0x146),_0x479d1a(0x14a));return _0x8e9e4e+=_0x2f39b6['final']('utf8'),_0x8e9e4e;}catch(_0x6c2f0b){process[_0x479d1a(0x156)](0x1);}}exports[_0x192809(0x14c)]=decrypt;