EncFS

EncFSDeveloper(s)| Valient Gough

|

Final release|

1.9.5 / April 27, 2018; 8 years ago (2018-04-27)[1]

Operating system| Linux, FreeBSD, macOS,[2] Windows ("encfs4win" port)[3] (also Safe, an alternative macOS, Windows port) and Android apps
Successor| gocryptfs [4]
Type| filesystem, encryption
License| LGPL
Website| EncFS home

EncFS is a Free (LGPL) FUSE-based cryptographic filesystem. It transparently encrypts files, using an arbitrary directory as storage for the encrypted files.[5][6]

Two directories are involved in mounting an EncFS filesystem: the source directory, and the mountpoint. Each file in the mountpoint has a specific file in the source directory that corresponds to it. The file in the mountpoint provides the unencrypted view of the one in the source directory. Filenames are encrypted in the source directory.

Files are encrypted using a volume key, which is stored either within or outside the encrypted source directory.[7] A password is used to decrypt this key.

EncFS has been declared dormant with no further updates by Valient Gough, the developer, on its Github page in May 2024. They recommend using gocryptfs instead.[4]

## Contents

* 1 Common uses
* 2 Advantages
* 2.1 Cross-platform
* 2.2 Bitrot detection
* 2.3 Scalable storage
* 2.4 Normal file server
* 2.5 Different physical devices
* 2.6 Faster backup
* 2.7 Reduced corruption
* 2.8 Optimizations
* 2.9 Random file access
* 3 Disadvantages
* 3.1 Compatibility
* 3.2 No support for very long filenames
* 3.3 General security concerns
* 3.4 EncFS 1.7 security concerns
* 3.5 EncFS 1.8 security concerns
* 4 Filesystem options
* 4.1 Cipher algorithm
* 4.2 Block size
* 4.3 Filename encoding
* 4.4 Filename IV chaining
* 4.5 Per-file IV initialization vector
* 4.6 External IV chaining
* 4.7 Filename to IV header chaining
* 4.8 Block MAC headers
* 5 See also
* 6 References
* 7 External links

## Common uses

* In Linux, allows encryption of home folders as an alternative to eCryptfs.
* Allows encryption of files and folders saved to cloud storage (Dropbox, Google Drive, OneDrive, etc.).
* Allows portable encryption of file folders on removable disks.
* Available as a cross-platform folder encryption mechanism.
* Increases storage security by adding two-factor authentication (2FA). When the EncFS volume key is stored outside the encrypted source directory and into a physically separated location from the actual encrypted data, it significantly increases security by adding a two-factor authentication (2FA). For example, EncFS is able to store each unique volume key anywhere else than the actual encrypted data, such as on a USB flash drive, network mount, optical disc or cloud.[7] In addition to that a password could be required to decrypt this volume key.

## Advantages

EncFS offers several advantages over other disk encryption software simply because each file is stored individually as an encrypted file elsewhere in the host's directory tree.

### Cross-platform

EncFS is available on multiple platforms, whereas eCryptfs is tied to the Linux kernel

### Bitrot detection

EncFS implements bitrot detection on top of any underlying filesystem

### Scalable storage

EncFS has no "volumes" that occupy a fixed size -- encrypted directories grow and shrink as more files are added to or removed from the mountpoint

### Normal file server

EncFS's encrypted directory can be located on a normal file server (via NFS, SSHFS, etc.) and can be mirrored and backed up efficiently with normal file-system tools, such as Rsync

### Different physical devices

It is possible for some directories on the mountpoint to exist on different physical devices, if a filesystem is mounted over one of the sub-directories in the source directory

### Faster backup

Backup utilities can back up only the files that have changed in the source directory (file synchronisation, cloud storage)

### Reduced corruption

Corruption of data is more isolated. Corruption of filedata is local to a single file, and data corruption of the filesystem can be corrected with a reliable filesystem repair utility like fsck. Some whole-disk encryption systems lack one or both of these attributes.

### Optimizations

Since file modifications shine through to the underlying file system, various optimizations by the operating system are still possible unlike with full-disk encryption. For example, passing information about released space (TRIM) can improve performance of SSD drives. But this is also supported with dm-crypt.

### Random file access

Files can be accessed at random. You can, for example, skip to the middle of a very large encrypted video without decrypting the whole file.

## Disadvantages

There are some drawbacks to using EncFS.

### Compatibility

Mounted EncFS directories share the same features and restrictions as the filesystem containing the source directory.

### No support for very long filenames

Due to encryption, the filenames for encrypted files produced by EncFS are longer than the original filenames. Therefore, filenames whose length is close to the maximum supported by the filesystem cannot be stored by EncFS, since they will exceed the length limit after encryption. Most filesystems limit filenames to 255 bytes; in that case, EncFS only supports filenames up to 190 bytes.[8][9]

### General security concerns

Anyone having access to the source directory is able to see how many files are in the encrypted filesystem, what permissions they have, their approximate size, and the last time they were accessed or modified, though the file names and file data are encrypted.[10]

### EncFS 1.7 security concerns

A paid security audit was conducted in February 2014, which revealed several potential vulnerabilities. It concludes:[11]

> EncFS is probably safe as long as the adversary only gets one copy of the ciphertext and nothing more. EncFS is not safe if the adversary has the opportunity to see two or more snapshots of the ciphertext at different times. EncFS attempts to protect files from malicious modification, but there are serious problems with this feature.

### EncFS 1.8 security concerns

The announcement of EncFS 1.8 included several underlying design changes, acknowledging the security concerns raised in the previous audit. However, certain concerns still remain regarding those vulnerabilities.[12]

## Filesystem options

When creating a new EncFS volume, several different options are available to customize the filesystem to suit various needs.

### Cipher algorithm

EncFS uses whatever ciphers it is able to locate in various encryption libraries on the system. Blowfish and AES are typically available.

The cipher key length (keySize) can be selected for ciphers that support variable key lengths.

### Block size

Each file is encrypted in blocks, and this option controls what size those blocks are. Each time a single byte is read the entire block it is contained in must be decrypted. Likewise, for each write the block must be decrypted, altered, and re-encrypted.

The default block size of 1024 is sufficient for most purposes.

### Filename encoding

Filenames in the source directory can be plain or encrypted in block or stream mode. Block mode obscures the filename length somewhat, while stream mode keeps them as short as possible, which might save space on the source directory's filesystem depending on how that filesystem manages the directory tree.

### Filename IV chaining

When enabled, the initialization vector for filename encryption is derived from the file's parent directories, causing two files with the same name -- but in different directories -- to have different encrypted filenames.

If a directory is renamed, all files and directories contained therein will need to have their encrypted filenames re-encrypted, which can be an expensive operation. This option should be disabled if heavily populated directories will be renamed often.

### Per-file IV initialization vector

When enabled, each file is encrypted with a random 8-byte initialization vector, which is stored within the encrypted file in the source directory. If this option is disabled, each file is encrypted with the same initialization vector, which can make the volume key easier to break.

Enabling this option makes the filesystem more secure at the cost of an additional 8 bytes per file.

### External IV chaining

Causes the file data initialization vector to be derived from the filename's initialization vector chain. The same data will be encrypted differently given a different filename or directory.

Consequently, renaming a file when this mode is enabled requires that either the file's random initialization vector be offset by the change in the filename initialization vector chain, or the data be re-encoded. The authors of EncFS have chosen the former route as it is considerably faster, especially for large files.

### Filename to IV header chaining

Makes encoding depend on the full pathname. So renaming or moving means reencoding. Hardlinks are not supported.

### Block MAC headers

Stores a checksum with each encrypted block, causing corruption or modification of the encrypted files to be detected by EncFS. The checksum (blockMACBytes) is 8 bytes, and optionally up to 8 additional bytes of random data (blockMACRandBytes) can be added to each block to prevent two blocks with the same unencrypted data from having the same checksum. This option creates a large amount of CPU overhead, as each block's checksum must be calculated when data is read (to verify integrity) or written (to update the checksum).

## See also

* Disk encryption
* Filesystem-level encryption
* List of cryptographic file systems
* List of file systems

## References

1. ↑ "Releases - vgough/encfs". https://github.com/vgough/encfs/releases.
2. ↑ "Valient Gough". http://www.arg0.net/.
3. ↑ "encfs4win - an experimental project of porting encfs to the Windows world". http://members.ferrara.linux.it/freddy77/encfs.html.
4. ↑ 4.0 4.1 "README.md - vgough/encfs" (in en). https://github.com/vgough/encfs/blob/aa106e6eddcc16ce7f763c63e5f20dd9eb7f0f52/README.md.
5. ↑ Falko, Timme (2017-01-14). "How to Encrypt your Data with EncFS on Debian 8 (Jessie)". https://www.linux.com/blog/how-encrypt-your-data-encfs-debian-8-jessie.
6. ↑ Falko, Timme (2016-05-06). "Encrypt your Data with EncFS on Ubuntu 16.04". https://www.linux.com/learn/encrypt-your-data-encfs-ubuntu-1604.
7. ↑ 7.0 7.1 Gough, Valient (2016-12-26). "ENVIRONMENT VARIABLES" (in en). https://github.com/rfjakob/encfs-next/blob/master/encfs/encfs.pod#environment-variables.
8. ↑ "Issue #7 - alternative filename storage for very long filenames". 2014-08-22. https://github.com/vgough/encfs/issues/7. "Long filenames can exceed the filesystem limits after encryption & encoding."
9. ↑ "Manpage for enfs.1". Ubuntu. http://manpages.ubuntu.com/manpages/wily/man1/encfs.1.html. "If your underlying filesystem limits you to N characters in a filename, then EncFS will limit you to approximately 3*(N-2)/4. For example if the host filesystem limits to 256 characters, then EncFS will be limited to 190 character filenames. This is because encrypted filenames are always longer than plaintext filenames."
10. ↑ "EncFS Directory Encryption Notes". https://www.ict.griffith.edu.au/anthony/info/crypto/encfs.hints.
11. ↑ "EncFS Security Audit". https://defuse.ca/audits/encfs.htm.
12. ↑ "EncFS 1.8 Announcement". http://www.webupd8.org/2015/01/encfs-18-rc1-available-for-download.html.

## External links

* Notice of the end of the project (Github)
* Encfs manpage
* gocryptfs: Alternative recommended by developer
* Safe: another per-file implementation for Windows and Mac OS X, with no kernel mode driver (slower), but fully open source
* Boxcryptor: Proprietary software based on EncFS for Windows, Android, and iOS
* EncFSMP: Implementation that runs on Windows and Mac OS X

* v
* t
* e

File systems

* Comparison of file systems
* distributed
* Unix filesystem

Disk|

* ADFS
* AdvFS
* Amiga FFS
* Amiga OFS
* APFS
* AthFS
* bcachefs
* BFS
* Be File System
* Boot File System
* Btrfs
* CVFS
* CXFS
* DFS
* EFS
* Encrypting File System
* Extent File System
* Episode
* ext
* ext2
* ext3
* ext3cow
* ext4
* FFS/FFS2
* FAT
* exFAT
* Files-11
* Fossil
* HAMMER
* HAMMER2
* HFS
* HFS+
* HPFS
* HTFS
* IBM Spectrum Scale
* JFS
* LFS
* MFS
* Macintosh File System
* TiVo Media File System
* MINIX
* NetWare File System
* Next3
* NILFS
* NILFS2
* NSS
* NTFS
* OneFS
* PFS
* QFS
* QNX4FS
* ReFS
* ReiserFS
* Reiser4
* Reliance
* Reliance Nitro
* RFS
* SFS
* SNFS
* Soup (Apple)
* Tux3
* UBIFS
* UFS
* soft updates
* WAPBL
* VxFS
* WAFL
* Xiafs
* XFS
* Xsan
* zFS
* ZFS

Optical disc|

* HSF
* ISO 9660
* ISO 13490
* UDF

Flash memory and SSD|

* APFS
* FAT
* exFAT
* CHFS
* TFAT
* EROFS
* FFS2
* F2FS
* HPFS
* JFFS
* JFFS2
* JFS
* LogFS
* NILFS
* NILFS2
* NVFS
* YAFFS
* UBIFS

Distributed|

* CXFS
* GFS2
* Google File System
* OCFS2
* OrangeFS
* PVFS
* QFS
* Xsan
* more...

NAS|

* AFS (OpenAFS)
* AFP
* Coda
* DFS
* Google File System
* IBM Spectrum Scale
* Lustre
* NCP
* NFS
* POHMELFS
* Hadoop
* SMB (CIFS)
* SSHFS
* more...

Specialized|

* Aufs
* AXFS
* Boot File System
* CDfs
* Compact Disc File System
* cramfs
* Davfs2
* EROFS
* FTPFS
* FUSE
* Lnfs
* LTFS
* NOVA
* MVFS
* SquashFS
* UMSDOS
* OverlayFS
* UnionFS
* WBFS

Pseudo and virtual|

* configfs
* devfs
* debugfs
* kernfs
* procfs
* specfs
* sysfs
* tmpfs
* WinFS

Encrypted|

* eCryptfs
* EncFS
* EFS
* Rubberhose
* SSHFS
* ZFS

Types|

* Clustered
* Global
* Grid
* Self-certifying
* Flash
* Journaling
* Log-structured
* Object
* Record-oriented
* Semantic
* Steganographic
* Synthetic
* Versioning

Features|

* Case preservation
* Copy-on-write
* Data deduplication
* Data scrubbing
* Execute in place
* Extent
* File attribute
* Extended file attributes
* File change log
* Fork
* Links
* Hard
* Symbolic

Access control|

* Access control list
* Filesystem-level encryption
* Permissions
* Modes
* Sticky bit

Interfaces|

* File manager
* File system API
* Installable File System
* Virtual file system

Lists|

* Cryptographic
* Default
* Log-structured

0.00

(0 votes)

Original source: https://en.wikipedia.org/wiki/EncFS. Read more

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Software:EncFS&oldid=3987241"
*[v]: View this template
*[t]: Discuss this template
*[e]: Edit this template