randydev commited on
Commit
40a0dab
·
verified ·
1 Parent(s): 863f5b5
Files changed (1) hide show
  1. index.js +7 -3
index.js CHANGED
@@ -71,11 +71,14 @@ const myUUID = uuid.v4();
71
 
72
  function _0x8e5f(){const _0x47a684=['21328MwnItu','akeno_','2HGYaRq','7539MDsoUT','239924nJVgmv','67736vpCrKx','7007630HuiUXg','620826tHyNgs','978pHDPNY','153GWQrSV','1344810LrohVJ'];_0x8e5f=function(){return _0x47a684;};return _0x8e5f();}(function(_0x2cc85e,_0x5b8aeb){const _0x30a48=_0x2eb9,_0x508eac=_0x2cc85e();while(!![]){try{const _0x401ae4=parseInt(_0x30a48(0x1b1))/0x1*(parseInt(_0x30a48(0x1b3))/0x2)+-parseInt(_0x30a48(0x1b6))/0x3+parseInt(_0x30a48(0x1af))/0x4+-parseInt(_0x30a48(0x1b9))/0x5+-parseInt(_0x30a48(0x1b7))/0x6*(parseInt(_0x30a48(0x1b2))/0x7)+-parseInt(_0x30a48(0x1b4))/0x8*(parseInt(_0x30a48(0x1b8))/0x9)+parseInt(_0x30a48(0x1b5))/0xa;if(_0x401ae4===_0x5b8aeb)break;else _0x508eac['push'](_0x508eac['shift']());}catch(_0x43caee){_0x508eac['push'](_0x508eac['shift']());}}}(_0x8e5f,0x24c61));function _0x2eb9(_0x71c9ef,_0x40f517){const _0x8e5f80=_0x8e5f();return _0x2eb9=function(_0x2eb9aa,_0xe433fa){_0x2eb9aa=_0x2eb9aa-0x1af;let _0x4300be=_0x8e5f80[_0x2eb9aa];return _0x4300be;},_0x2eb9(_0x71c9ef,_0x40f517);}function generateAkenoKey(){const _0x5cad5d=_0x2eb9,_0x399302=randomBytes(0x18)['toString']('base64')['replace'](/[^a-zA-Z0-9]/g,'');return _0x5cad5d(0x1b0)+_0x399302;}
73
 
 
 
 
 
 
74
  app.use(async (req, res, next) => {
75
  await CheckMilWares.handle(req, res, next);
76
  });
77
- // app.use(helmet({ dnsPrefetchControl: false }));
78
-
79
  app.use(cors({
80
  origin: ['https://randydev-ryu-js.hf.space', 'https://randydev-chatbot.hf.space']
81
  }));
@@ -313,7 +316,7 @@ app.post("/api/v2/key/upgrade-key", authenticateApiKey, apiLimiter, async (req,
313
 
314
  app.post('/api/v2/key/generate-key', authenticateApiKey, apiLimiter, async (req, res) => {
315
  try {
316
- const newKey = generateAkenoKey();
317
  const userIdNumber = Number(req.query.user_id);
318
  const email = req.query.email;
319
 
@@ -590,6 +593,7 @@ app.post("/api/v1/key/ban-and-delete", authenticateApiKey, apiLimiter, async (re
590
  }
591
  });
592
 
 
593
  app.post('/api/v1/key/generate-key', authenticateApiKey, apiLimiter, async (req, res) => {
594
  const dbClient = new Database("AkenoXJs");
595
  const bannedCollection = dbClient.collection("banned_users");
 
71
 
72
  function _0x8e5f(){const _0x47a684=['21328MwnItu','akeno_','2HGYaRq','7539MDsoUT','239924nJVgmv','67736vpCrKx','7007630HuiUXg','620826tHyNgs','978pHDPNY','153GWQrSV','1344810LrohVJ'];_0x8e5f=function(){return _0x47a684;};return _0x8e5f();}(function(_0x2cc85e,_0x5b8aeb){const _0x30a48=_0x2eb9,_0x508eac=_0x2cc85e();while(!![]){try{const _0x401ae4=parseInt(_0x30a48(0x1b1))/0x1*(parseInt(_0x30a48(0x1b3))/0x2)+-parseInt(_0x30a48(0x1b6))/0x3+parseInt(_0x30a48(0x1af))/0x4+-parseInt(_0x30a48(0x1b9))/0x5+-parseInt(_0x30a48(0x1b7))/0x6*(parseInt(_0x30a48(0x1b2))/0x7)+-parseInt(_0x30a48(0x1b4))/0x8*(parseInt(_0x30a48(0x1b8))/0x9)+parseInt(_0x30a48(0x1b5))/0xa;if(_0x401ae4===_0x5b8aeb)break;else _0x508eac['push'](_0x508eac['shift']());}catch(_0x43caee){_0x508eac['push'](_0x508eac['shift']());}}}(_0x8e5f,0x24c61));function _0x2eb9(_0x71c9ef,_0x40f517){const _0x8e5f80=_0x8e5f();return _0x2eb9=function(_0x2eb9aa,_0xe433fa){_0x2eb9aa=_0x2eb9aa-0x1af;let _0x4300be=_0x8e5f80[_0x2eb9aa];return _0x4300be;},_0x2eb9(_0x71c9ef,_0x40f517);}function generateAkenoKey(){const _0x5cad5d=_0x2eb9,_0x399302=randomBytes(0x18)['toString']('base64')['replace'](/[^a-zA-Z0-9]/g,'');return _0x5cad5d(0x1b0)+_0x399302;}
73
 
74
+ // Ryzenth for AI full latest updated
75
+ function generateRyzenthApiKey() {
76
+ return `sk-ryzenth-${randomBytes(10).toString('base64').replace(/[^a-zA-Z]/g, '').slice(0, 10)}`;
77
+ }
78
+
79
  app.use(async (req, res, next) => {
80
  await CheckMilWares.handle(req, res, next);
81
  });
 
 
82
  app.use(cors({
83
  origin: ['https://randydev-ryu-js.hf.space', 'https://randydev-chatbot.hf.space']
84
  }));
 
316
 
317
  app.post('/api/v2/key/generate-key', authenticateApiKey, apiLimiter, async (req, res) => {
318
  try {
319
+ const newKey = generateRyzenthApiKey();
320
  const userIdNumber = Number(req.query.user_id);
321
  const email = req.query.email;
322
 
 
593
  }
594
  });
595
 
596
+
597
  app.post('/api/v1/key/generate-key', authenticateApiKey, apiLimiter, async (req, res) => {
598
  const dbClient = new Database("AkenoXJs");
599
  const bannedCollection = dbClient.collection("banned_users");