From: MH <mat...@gm...> - 2014-09-11 19:48:15
|
Hey everybody, I was thinking about having a file system that just links files to another location (like mount --bind), but add's a simple unix command in between (like encFS does with encryption or fusecompress with compression). The command I am looking for is openssl, so that I have a normal folder with some unencrypted files in it. So let's assume this folder is: /disk_1/unencrypted/ Now I want to mount-bind with openssl to: /disk_1/encrypted/ So that the files in /disk_1/encrypted/ are encrypted, but the encryption happens on-the-fly while reading. Background story. I want to be able to back up my files to a remote location, but encrypted. I don't want to have my files encrypted all the time, just in the backup. So I would create a ssh-login for a remote maschine that can only access the folder /disk_1/encrypted/, but nothing else. So that the remote maschine only sees encrypted files. Also I want the encryption to be asynchronous, so that this all can happen with a public key and I only need to access the private key in case something goes wrong and I need the backup. That's why I can't use encFS. I thought FUSE could do the job, but I am not sure if this solution might already exist. Can someone point me to the solution? I thought this could be as easy as super-fuse -command "openssl smime -encrypt -aes256 -in $1 -binary -outform DEM -out $2 certificate.pem" /disk_1/unencrypted/ /disk_1/encrypted/ But I think this super-fuse command does not exist yet, or does it? Thanks for your help, hutauf |