Linux – Encrypting a file name in linux

encryptionlinux

I'm trying to encrypt a file as well as its filename.
Encrypting the file is fairly easy, I use gpg for that, but I can't figure out how to encrypt the filename as well.
Would be great if the filename could be encrypted using the same key.

Any idea on how to do this?

Best Answer

ecryptfs.org

ecryptfs can encrypt both the file contents and the file names. It's the default home directory encryption scheme supported by Ubuntu.