MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / getEncryptionKey

Function getEncryptionKey

speedlink/speedlink.ts:302–308  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

300 });
301 console.log("Speedtest CLI downloaded and extracted successfully.");
302}
303
304function getEncryptionKey(): string {
305 if (fs.existsSync(KEY_PATH)) return fs.readFileSync(KEY_PATH, "utf-8");
306 const newKey = crypto.randomBytes(16).toString("hex");
307 fs.writeFileSync(KEY_PATH, newKey, "utf-8");
308 console.log(`SpeedLink Plugin (${PLUGIN_NAME}): New encryption key generated.`);
309 return newKey;
310}
311

Callers 1

speedlink.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected