ShipBit / slickgpt

SlickGPT is a light-weight "use-your-own-API-key" web client for the OpenAI API written in Svelte. It offers GPT-4 integration, a userless share feature and other superpowers.
https://slickgpt.vercel.app
MIT License
464 stars 97 forks source link

Use basic encryption to encrypt the openai key in browser local storage. #73

Open Merkie opened 11 months ago

Merkie commented 11 months ago

I think the cryptr module on NPM would be an excellent option for this. There'd need to be an extra env variable for storing the serverside key, the FIREBASE_APIKEY variable could be a fallback since all that is needed is a random string, but I think it would make the software seem more secure. I can work on a PR to add this