roulès
Explore posts from serversKPCKevin Powell - Community
•Created by roulès on 4/23/2023 in #back-end
Safely store an API client secret with Electron JS
Hi, I'm building a project with Electron, and I need to use APIs, since I want to make this app public, I must store safely my client secret and tokens
I know the existence of
safeStorage.encryptString()
, and I played a little with it,
what I think I can do is encrypt my client secrete once, and since the returned thing is a buffer, convert this buffer to string, and then store it in a JSON for later
But my question is, how can I be sure a user will not take the encrypted token or client secret and decrypt it in his own instance of electron with safeStorage.decryptString()
?
I'm a little lost, and I want to be sure it safe but I really don't know a lot of electron and encryption
Thank you for your help31 replies
KPCKevin Powell - Community
•Created by roulès on 4/19/2023 in #back-end
electron js, cant use an iframe
hi, i need to embed a twitch clip for a project of my own, and i want to use electron
the ifram is working when the html is simply opened in the browser
but with electron i've on one side an error in the console:
and on the other side in the dev tools:
thanks for your help
5 replies