Fevol / obsidian-translate

Translate text and entire notes in Obsidian
MIT License
103 stars 6 forks source link

Security improvements on API keys #9

Closed Fevol closed 2 years ago

Fevol commented 2 years ago

Currently the API keys are stored in a plaintext file within the plugin's data.json. Some users might want a more secure solution, such that if their vault's files get leaked, the API keys of the translation services are (reasonably) protected.

I don't know what the most secure way to do this will be; and what people consider to be secure enough, so I'd love to hear your opinion on this matter!

Encrypt

Encrypt the API keys stored within data.json with an user provided password, this password can be added in local storage such that the user does not need to re-enter it each time Obsidian is booted up

Tasks

Do not save

User needs to add API key for translation service every time plugin is started up (API key never gets saved on disk)

Tasks