Skip to main content

Crate envcipher

Crate envcipher 

Source
Expand description

§Envcipher

Encrypt .env files using AES-256-GCM with keys stored in your OS keychain.

§Features

  • AES-256-GCM encryption with authenticated encryption
  • OS keychain integration (Keychain / Credential Manager / Secret Service)
  • Python bindings via PyO3 (optional python feature)

§CLI Usage

envcipher init    # Generate key
envcipher lock    # Encrypt .env
envcipher unlock  # Decrypt .env
envcipher edit    # Edit encrypted file
envcipher run -- <cmd>  # Run with decrypted env

§Python Usage

import envcipher
envcipher.load()  # Decrypt and load into os.environ

Modules§

cli
Command-line interface implementation.
crypto
Cryptographic primitives (AES-256-GCM, key generation).
env
Environment file parsing and manipulation.
error
Error types for the crate.
keystore
OS keychain integration for secure key storage.