Skip to content
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

Decrypt to folder #845

Closed
vaibhav-kaushal opened this issue May 14, 2024 · 1 comment
Closed

Decrypt to folder #845

vaibhav-kaushal opened this issue May 14, 2024 · 1 comment

Comments

@vaibhav-kaushal
Copy link

I know that the default way gocryptfs is to be used is by mounting via FUSE. And that's okay. That's how I use it anyway. But I was wondering if it is possible to use gocryptfs to actually read an encrypted directory and decrypt it into another directory (and vice versa).

Basically it would be like copy-pasting the decrypted contents from a mounted directory to another place; but without the whole process of mounting the encrypted directory.

How can it be useful? Go is cross-platform and can target Windows, Linux, BSD and macOS for both ARM and AMD (and more). However, FUSE is pretty specific to Linux (macOS now wants me to lower the security which I am not comfortable with). With a facility like the one I just talked about, it would be possible to take the encrypted content with me in some format (external disk, dual-boot Windows+Linux, Cloud sync etc.) and at least be able to see my content!

@rfjakob
Copy link
Owner

rfjakob commented May 17, 2024

There's https://github.com/slackner/gocryptfs-inspect which can decrypt individual files without FUSE. I guess it wouldn't be too hard to extend it to decrypt a whole folder.

@rfjakob rfjakob closed this as completed May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants