electron-json-storage icon indicating copy to clipboard operation
electron-json-storage copied to clipboard

Feature request: obfuscate file

Open PierBover opened this issue 9 years ago • 5 comments

Right now JSON files are saved in plain text that anyone can open.

It would be great if there was a simple API of saving and retrieving obfuscated files.

PierBover avatar Sep 06 '16 23:09 PierBover

That would be nice indeed. It could be cryptographed with some key inside the app itself. That is, only the app can decryptograph the file and use it properly.

It should be a global and/or per operation option (eg: storage.cryptkey = 'xxx' and storage.set(key, data, cryptkey))

bernardoadc avatar Sep 07 '16 15:09 bernardoadc

Yep, that was what I was thinking. :)

If I have some time later this week I could implement that.

Would a PR for this feature be accepted?

PierBover avatar Sep 07 '16 16:09 PierBover

Hey there!

This would be awesome, happy to take a PR for this feature! I really have little time to spare, at least this week, but don't hesitate in pinging me if I can help with anything.

jviotti avatar Sep 07 '16 17:09 jviotti

electron-store supports encrypting the config file.

sindresorhus avatar Sep 17 '17 05:09 sindresorhus

It would be better to have some pluggable architecture to plug any custom encode/decode, (compress/uncompress, obfuscate, ...) code. Then, some default encryption implementation may be provided, too.

xmedeko avatar Apr 12 '20 14:04 xmedeko