possible to ripgrep encrypted files, or virtual filesystem? #1825
-
Describe your feature requestTo comply with certain regulations around security and privacy, I'd like to enable users to search encryped data. Is it possible to either, A) store files encrypted and streaming-decrypt like https://docs.rs/cryptostream/0.3.1/cryptostream/ them right before ripgrep? This would be pretty rad |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
For (A), I would expect that you could accomplish this by writing a small program that decrypts stdin to stdout and use the For (B), if it's a normal file system that any tool can interact with as if it were a file system, then I don't see why it wouldn't work? Try it! |
Beta Was this translation helpful? Give feedback.
For (A), I would expect that you could accomplish this by writing a small program that decrypts stdin to stdout and use the
--pre
flag. There's more about that in the guide: https://github.com/BurntSushi/ripgrep/blob/master/GUIDE.md#preprocessorFor (B), if it's a normal file system that any tool can interact with as if it were a file system, then I don't see why it wouldn't work? Try it!