Command Line Utility for Encrypting Folders.
Uses scrypt for password-based key derivation function and XSalsa20 cipher.
Download: DirCrypt.jar
java -jar DirCrypt.jar --enc --out FILE [options] DIR1 DIR2 ...
java -jar DirCrypt.jar --dec --in FILE --dest OUTDIR [options]
java -jar DirCrypt.jar --list --in FILE [options]
java -jar DirCrypt.jar --verify --in FILE [options]
Option | Argument | Description | Default Value | Required For |
---|---|---|---|---|
--dec | Decrypts archive | Decryption | ||
--dest | Directory | Specifies the destination directory | Decryption | |
--enc | Encrypts file(s) or directories | Encryption | ||
--force | Overwrites output file(s) | Decryption | ||
--help | Prints usage | |||
--ignoreErrors | Ignore integrity errors, decrypt corrupt files | |||
--in | File | Specifies input archive file name | Encryption, Listing, Verify | |
--list | Lists file contents | Listing | ||
--out | File | Specifies output archive file | Encryption | |
--pass | Text | Passphrase | ||
--scryptN | Integer | Scrypt N parameter | 32768 | |
--scryptP | Integer | Scrypt P parameter | 32 | |
--scryptR | Integer | Scrypt R parameter | 16 | |
--verbose | Logs diagnostic messages to stdout | |||
--verify | Verifies archive integrity | Verify | ||
--version | Prints version string |
Please refer to the File Format Specification.
The code has not been formally reviewed. Do not use in production.