is there a way, to encrypt directories, using ruby.
To get in detail:
I would like to create a directory, that You can only access, by entering a password.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
One example is FileVault which is bundled with OS X. A similar thing could be done on other platforms using the same approach, an encrypted disk image and a loop-back device.
Another option is to leverage FUSE which allows you to create a filesystem in userspace and in presumably any language that can answer the calls made by the kernel.
I would be very cautious when doing this, though. The point of encryption is to keep things hidden, and if you’re spraying unencrypted versions of this filesystem all over system memory you’re defeating the purpose. Most “secure” filesystems like FileVault do a lot more than encrypt your files.