Spaces:
Paused
Paused
Download middleware/apiKey.js from AiBotTeszt/Heino: direct link, hf CLI and curl.
- Browser
- Download file 1.75 kB
-
https://huggingface.co/spaces/AiBotTeszt/Heino/resolve/main/middleware/apiKey.js
- Command line
-
hf download hf://spaces/AiBotTeszt/Heino/middleware/apiKey.js
-
curl -L -o apiKey.js https://huggingface.co/spaces/AiBotTeszt/Heino/resolve/main/middleware/apiKey.js
1.75 kB
| const a9_0x4ea955=a9_0x4bbe;function a9_0x4bbe(_0x476fde,_0x45d59e){_0x476fde=_0x476fde-0x1cc;const _0x3fa828=a9_0x3fa8();let _0x4bbe49=_0x3fa828[_0x476fde];return _0x4bbe49;}(function(_0x20ca9d,_0x5a3680){const _0x49a495=a9_0x4bbe,_0x1e80db=_0x20ca9d();while(!![]){try{const _0x2b7edb=-parseInt(_0x49a495(0x1cd))/0x1+parseInt(_0x49a495(0x1d9))/0x2+-parseInt(_0x49a495(0x1d5))/0x3*(parseInt(_0x49a495(0x1da))/0x4)+-parseInt(_0x49a495(0x1dd))/0x5+-parseInt(_0x49a495(0x1d2))/0x6*(parseInt(_0x49a495(0x1cc))/0x7)+-parseInt(_0x49a495(0x1cf))/0x8+parseInt(_0x49a495(0x1d0))/0x9;if(_0x2b7edb===_0x5a3680)break;else _0x1e80db['push'](_0x1e80db['shift']());}catch(_0x2104e9){_0x1e80db['push'](_0x1e80db['shift']());}}}(a9_0x3fa8,0xd62cb));import a9_0x1658a6 from'node:crypto';function a9_0x3fa8(){const _0x5b0534=['42xFBVJs','401661uOqQdw','update','13459216MOonDS','38519343Deqgqv','apiKey','574578eyePKp','timingSafeEqual','json','3PsvAjk','digest','string','Yetkisiz.','483198sCXITe','1450004MEOftl','status','get','3115625hdDiQk'];a9_0x3fa8=function(){return _0x5b0534;};return a9_0x3fa8();}import{queryValue}from'../utils/params.js';const sha256=_0x49b985=>a9_0x1658a6['createHash']('sha256')[a9_0x4ea955(0x1ce)](_0x49b985)[a9_0x4ea955(0x1d6)]();export function requireApiKey(_0xf64c4f,_0x1fc69d,_0xc6f1cb){const _0x21a520=a9_0x4ea955,_0x595526=process.env.API_KEY;if(!_0x595526)return _0xc6f1cb();const _0x41c743=queryValue(_0xf64c4f,_0x21a520(0x1d1)),_0x43138b=_0xf64c4f[_0x21a520(0x1dc)]('x-api-key')||(typeof _0x41c743===_0x21a520(0x1d7)?_0x41c743:''),_0x1c8832=a9_0x1658a6[_0x21a520(0x1d3)](sha256(_0x43138b),sha256(_0x595526));if(!_0x1c8832)return _0x1fc69d[_0x21a520(0x1db)](0x191)[_0x21a520(0x1d4)]({'error':_0x21a520(0x1d8)});_0xc6f1cb();} |