Crate shadow_crypt

Crate shadow_crypt 

Source
Expand description

§Shadow Crypt

Password-based file encryption with filename obfuscation.

§Features

  • Strong Algorithms: XChaCha20-Poly1305 cipher, Argon2id key derivation
  • No Storage: Sensitive data is retained only in memory during operation
  • Memory Safety: Zeroizes sensitive data in memory after use
  • No Dependencies: Pure Rust implementation

§Command Line Usage

This crate provides three command-line tools:

  • shadow - Encrypt files
  • unshadow - Decrypt files
  • shadows - List encrypted files

§Architecture

The implementation is split into two main modules:

  • core - Core cryptographic operations and types (deterministic, no I/O)
  • shell - Command-line interface and file I/O operations

§Security

All sensitive data is automatically zeroized from memory after use. The implementation uses well-established cryptographic primitives and follows security best practices.

§Installation

cargo install shadow-crypt

§Examples

§Encrypt Files

shadow file1.txt file*.jpg

§Decrypt Files

unshadow mzpuTgQmBPJfTAJh.shadow RzxZGbTQAxxBseaI.shadow

§List Encrypted Files

shadows

Modules§

core
Core types and deterministic operations.
shell
Main workflows and I/O operations.