UNPKG

ahfc

Version:

Aarav Hyper Fortress Cipher (AHFC) - Powerful file encryption CLI with unbreakable logic.

96 lines (62 loc) โ€ข 2.62 kB
# AHFC - Aarav HyperFortress Cipher ๐Ÿ” ![npm](https://img.shields.io/npm/v/ahfc) ![license](https://img.shields.io/npm/l/ahfc) ![node](https://img.shields.io/node/v/ahfc) **AHFC (Aarav HyperFortress Cipher)** is a high-performance, multi-mode file encryption tool written in Node.js. Designed with security, flexibility, and user experience in mind, AHFC supports password-based encryption using Argon2, zlib compression, HMAC verification, and AES-GCM encryption (Beast mode). Perfect for CLI users who demand speed and strength. --- ## Features - ๐Ÿ” Multiple encryption modes: `Lite`, `Normal`, `Beast` - ๐Ÿ’ฅ AES-256-GCM in Beast mode with HMAC-SHA512 - ๐Ÿง‚ Argon2id key derivation with unique per-file salt - ๐Ÿ“ฆ zlib compression before encryption - ๐Ÿ“Š Live progress bar for large file operations - ๐Ÿง  Secure password input with character masking - ๐Ÿงช HMAC integrity check to detect tampering - ๐Ÿ–ฅ๏ธ Beautiful, intuitive CLI interface - โœ… Cross-platform (Windows, Linux, macOS) --- ## Installation ```bash npm install -g ahfc ``` --- ## CLI-Based Usage ### Encrypt a File ```bash ahfc encrypt <input-file> <output-file> [--lite|--normal|--beast] ``` **Examples:** ```bash ahfc encrypt secret.txt secret.enc --normal ahfc encrypt bigfile.zip archive.aes --beast ``` If no mode is specified, it defaults to `--normal`. ### Decrypt a File ```bash ahfc decrypt <input-file> <output-file> ``` **Example:** ```bash ahfc decrypt secret.enc secret.txt ``` ## Module Usage (Programmatic API) ### Please see [MODULE_USAGE.md](https://github.com/axrxvm/ahfc/blob/main/module_usage.md) for detailed information. --- ## Modes Explained | Mode | Rounds | Min Password Length | Description | |--------|--------|---------------------|------------------------------| | Lite | 10 | 4 | Fast, lightweight encryption | | Normal | 64 | 16 | Balanced security & speed | | Beast | 128 | 24 | AES-GCM, HMAC-SHA512, secure | --- ## Security Notes - Always use strong, unique passwords, especially for **Normal** and **Beast** modes. - Files are encrypted with a new salt and IV each time for maximum randomness. - HMAC is used to prevent tampering and verify password correctness. --- ## License CC BY-NC 4.0 ยฉ Aarav Mehta - axrxvm@proton.me [Learn More](https://github.com/axrxvm/ahfc/blob/main/LICENSE) --- ## Contribute Feel free to open issues or PRs. Suggestions and improvements are welcome! ```