Can I encrypt my plugin, to protect my API key?
I am experimenting with AI in a plugin. Not AI to build the plugin, but AI being used by the plugin.This can be used for AI opponents or AI generated dialogue, where the player can have an actual conversation with the NPC's. All lore friendly to your own game.
However, to integrate ChatGTP or Gemini into my plugin, I need an API key. I got an API key like that and it works flawlessly.
The problem is: I am not supposed to share this AIP key, because it might be abused.
This is not a problem for sharing the plugin... Each dev should use their own API key, problem solved. However, I do need to include the API key for players. And those devs need to include their API key for their players. And this should somehow be done in a way that the players (or people who download AI projects for other reasons, like to steal API keys) can not in any way see this API key.
The only thing I can think of, is to encrypt the plugin, but is that even possible? And if so, how do I do this?
本贴来自国际rpgmaker官方论坛作者:JohnDoeGames处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/can-i-encrypt-my-plugin-to-protect-my-api-key.179064/
页:
[1]