-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a way to encrypt embedded file? Maybe before/after hooks? #224
Comments
Thanks frederikhors. |
Yeah. It would be ok too. Because I can encrypt some words in the entire folder. |
I feel like "encrypt" could be too vague and niche, it might be best to just use a build script to encrypt the files, and then use RustEmbed on the output directory of that script. |
I do not understand: I need to "decrypt" content of those file at runtime. |
I guess then you could just do the XOR "encryption" manually then, instead of using |
So this would be a new feature Just wondering if its worth exposing a generic interface for this sort of stuff which can be implemented by the application instead of putting it under a feature. Maybe before/after hooks. |
I don't think the library should have a specific feature just for encryption, especially if we only provide a specific algorithm. It sounds like there's a need for a pre-embed hook (maybe by passing in the procedural macro that should annotate the file data once it's been read from disk?). |
I do not understand, can you write a small example? @BBaoVanC |
I think the same. Hooks seem perfect for cases like this. I'll change the title. |
i fw it |
Thanks for your work.
I just found out https://github.com/anvie/litcrypt.rs. I'm wondering if there is a way to encrypt the content of some files using it.
What can you suggest?
The text was updated successfully, but these errors were encountered: