← 返回命令列表

Linux command

cryfs 命令

安全

权限或系统影响较大,执行前请核对目标。

常用示例

Create and mount

cryfs [path/to/cipher_dir] [path/to/mount_point]

Mount with a specific configuration

cryfs --config [cryfs.config] [cipher_dir] [mount_point]

Unmount

cryfs-unmount [path/to/mount_point]

Change the encryption password

cryfs-change-password [path/to/cipher_dir]

Show filesystem information

cryfs --show-ciphers

Mount in foreground

cryfs -f [cipher_dir] [mount_point]

说明

CryFS is a cryptographic filesystem designed specifically for cloud storage services like Dropbox, Google Drive, or OneDrive. Unlike other encrypted filesystems, CryFS encrypts not just file contents but also file sizes, metadata, and directory structure. Files are split into fixed-size blocks that are individually encrypted and stored with random names. This prevents cloud providers and attackers from learning anything about your data, including which files changed and how large they are. The encrypted data is stored in the cipher directory, which can be synced with cloud services. The mount point shows the decrypted view of your files. CryFS uses authenticated encryption with AES-256-GCM by default.

参数

-c _FILE_, --config _FILE_
Use specified configuration file.
-f, --foreground
Run in foreground instead of daemonizing.
--allow-filesystem-upgrade
Allow upgrading the filesystem format.
--show-ciphers
Show available cipher options.
--unmount-idle _MINUTES_
Automatically unmount after idle time.
--logfile _FILE_
Write logs to specified file.

FAQ

What is the cryfs command used for?

CryFS is a cryptographic filesystem designed specifically for cloud storage services like Dropbox, Google Drive, or OneDrive. Unlike other encrypted filesystems, CryFS encrypts not just file contents but also file sizes, metadata, and directory structure. Files are split into fixed-size blocks that are individually encrypted and stored with random names. This prevents cloud providers and attackers from learning anything about your data, including which files changed and how large they are. The encrypted data is stored in the cipher directory, which can be synced with cloud services. The mount point shows the decrypted view of your files. CryFS uses authenticated encryption with AES-256-GCM by default.

How do I run a basic cryfs example?

Run `cryfs [path/to/cipher_dir] [path/to/mount_point]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -c _FILE_, --config _FILE_ do in cryfs?

Use specified configuration file.