file-system-cache icon indicating copy to clipboard operation
file-system-cache copied to clipboard

Feature Request: Allow users to encrypt their FS cache

Open trevor-vaughan opened this issue 2 years ago • 4 comments

As a user, I would like the ability to selectively encrypt my filesystem cache.

I'd be happy to help with implementation on this if you are open to the idea.

trevor-vaughan avatar Feb 08 '23 13:02 trevor-vaughan

Wouldn't it be better do encrypt/decrypt data in the application layer, when before and after getter/setter, using libraries that are good for encryption?

I think it is better to keep these two things isolated, also do lower the amount of dependencies in the library.

rasander avatar Jul 26 '23 20:07 rasander

Agree.

philcockfield avatar Jul 26 '23 20:07 philcockfield

There are no additional dependencies and a built-in wrapper (while not the javascript way of rewriting everything under the sun) would be helpful.

Granted, I guess I could just write a module that wraps this one to do the same thing but, given that it can use the built-in crypto library, it seems reasonable as a native feature.

trevor-vaughan avatar Jul 26 '23 20:07 trevor-vaughan

Agree with this too @trevor-vaughan - I've started a PR on this.

philcockfield avatar Jul 26 '23 23:07 philcockfield