Skip to content

andy-goryachev/DirCrypt

Repository files navigation

DirCrypt

Command Line Utility for Encrypting Folders.

Uses scrypt for password-based key derivation function and XSalsa20 cipher.

Download: DirCrypt.jar

Encrypt

  java -jar DirCrypt.jar --enc --out FILE [options] DIR1 DIR2 ...

Decrypt

  java -jar DirCrypt.jar --dec --in FILE --dest OUTDIR [options]

List Archive Contents

  java -jar DirCrypt.jar --list --in FILE [options]

Verify Archive Contents

  java -jar DirCrypt.jar --verify --in FILE [options]

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

Security

Please refer to the File Format Specification.

WARNING

The code has not been formally reviewed. Do not use in production.