| very simple folder encryption with ecryptfs |
|
| Security |
|
Sometimes you want to protect some of your files from unauthorized access. One option is use a cryptographic filesystem like ecryptfs. "eCryptfs is a POSIX-compliant enterprise-class stacked cryptographic filesystem for Linux."from https://launchpad.net/ecryptfs
How does it work?It is really simple. Because ecryptfs runs on top of standard local filesystems (e.g. ext3, jfs xfs ReiserFS) you don't have to create a separate filesystem for your encrypted files. All you have to do is mounting an ecryptfs filesystem in a new folder. Step 1: Requirements
Step 2: InstallationAll You have to do installing the ecryptfs-utils package. Because I use Fedora I will install it using yum:
Step 3: usagecreate a new folder in your home directory (or wherever you want it): The mode should be 700 to deny anyone but your user access.
now its time to mount the ecryptfs filesystem:
Now create a new file in your encrypted ~private folder: and read it:
Ok. Now unmount the filesystem and read it again:
As you can see, the data is not readable anymore once the ecryptfs filesystem is unmounted. To read and write again to the private folder you have to mount it again. And because thats a bit painful I would recommend to create a wrapper script arround that:
Comments (0)
Powered by !JoomlaComment 4.0 beta1
!joomlacomment 4.0 Copyright (C) 2009 Compojoom.com . All rights reserved." |


