decryptdir(1)

decryptdir1

Encrypt/decrypt all files in a directory

Usage

cryptdir [dir]

decryptdir [dir]

Introduction

cryptdir encrypts all files in the current directory (or the given directory if one is provided as an argument). When called as decryptdir (i.e., same program, different name), all files are decrypted.

Notes

When encrypting, you are prompted twice for the password as a precautionary measure. It would be a disaster to encrypt files a password that wasn't what you intended.

In contrast, when decrypting, you are only prompted once. If it's the wrong password, no harm done.

Encrypted files have the suffix .crypt appended. This prevents files from being encrypted twice. The suffix is removed upon decryption. Thus, you can easily add files to an encrypted directory and run cryptdir on it without worrying about the already encrypted files.

Releases

9 releases since Debian 6.0 (Squeeze); the text changed 2 times.

  1. 6.0–12
  2. 13
  3. Arch

Bugs

The man page is longer than the program.

Author

Don Libes, National Institute of Standards and Technology

From expect 5.45.4-5 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.