Authenticated Encryption (AEAD): Uses AES-256-GCM with scrypt key derivation, dynamic initialization vectors (IVs), salt, and authentication tags (CG01) to guarantee both confidentiality and cryptographic integrity.
Information-Theoretic Entropy Auditing: Computes real-time potential entropy (E = L × log2(R)) directly on selected strings to flag weak credentials before they hit production.
CSPRNG Password Generation: Generates high-entropy passwords using Node.js native cryptographic pseudo-random number generators (crypto.randomBytes / randomInt) and inserts them at your cursor.
Binary & Text File Encryption: Encrypt and decrypt any file directly from the VS Code Explorer (.env, .json, .pdf, .zip, images) with overwrite protection.
Best-Effort Memory Zeroization: Sensitive key and file buffers are overwritten with zeros (Buffer.fill(0)) inside finally blocks immediately after use.
100% Offline & Zero Telemetry: Runs entirely locally on your machine with zero external network calls or third-party data transmission.
🚀 Usage Guide
Access all features from the Command Palette (Cmd+Shift+P / Ctrl+Shift+P) or via right-click context menus:
1. Editor Context Menu (Text & Secrets)
Select any text (such as an API key or secret inside a .env file), right-click, and choose:
Crypto Guardian: Encrypt Selection — Encrypts the selected text in place into a CG01:salt:iv:tag:text payload using your master passphrase.
Crypto Guardian: Decrypt Selection — Verifies the authentication tag and restores the plaintext in place (supports CG01 and legacy v1).
Crypto Guardian: Audit Entropy of Selection — Displays the exact entropy score in bits and strength classification (DÉBIL, MEDIA, FUERTE, EXTREMA).
Crypto Guardian: Generate Secure Password — Prompts for length (8–256, default 32) and inserts a CSPRNG password at the cursor (or copies it to clipboard if no editor is open).
2. Explorer Context Menu (Physical Files)
Right-click any file in the VS Code Explorer sidebar:
Crypto Guardian: Encrypt File — Creates an encrypted .enc version of the file using AES-256-GCM (CG01).
Crypto Guardian: Decrypt File — Available on .enc files to verify integrity and restore the original file safely.
⚙️ Extension Settings
This extension contributes the following settings (if enabled in your build):
cryptoGuardian.enableCodeLens: Enable or disable inline Decrypt with Crypto Guardian CodeLens actions above CG01: payloads (default: true).
🛡️ Security & Threat Model
Hidden Passphrase Prompts: Master passphrases are always requested via masked VS Code input boxes (password: true) and are never logged or stored on disk.
Threat Model & CLI Engine: For security disclosures, cryptographic specifications, or threat modeling details, see THREAT_MODEL.md in the core repository.
📄 License
Distributed under the ISC License.
Developed with defensive engineering standards by Jhero Studio (GitHub).