Crypto Toolkit
Cryptographic utilities powered by Node.js built-in crypto module.
Features
| Operation | Command | Description |
|---|---|---|
| Hash | --hash <text> [--algo md5|sha1|sha256|sha512] |
Hash text (default: sha256) |
| Hash File | --hash-file <file> [--algo sha256] |
Hash file contents |
| HMAC | --hmac <text> --key <secret> [--algo sha256] |
HMAC signature |
| Encrypt | --encrypt <text> --key <password> |
AES-256-GCM encrypt (base64) |
| Decrypt | --decrypt <encrypted> --key <password> |
AES-256-GCM decrypt |
| Encode | --encode <text> --format base64|hex|url |
Encode text |
| Decode | --decode <text> --format base64|hex|url |
Decode text |
| UUID | --uuid |
Generate UUID v4 |
| Random | --random <length> |
Generate random bytes (hex) |
| Compare | --compare <hash1> <hash2> |
Timing-safe hash comparison |