{"id":22868470,"url":"https://github.com/robcyberlab/pixel-crypt-engine","last_synced_at":"2025-03-31T10:50:47.726Z","repository":{"id":265085648,"uuid":"893529398","full_name":"RobCyberLab/Pixel-Crypt-Engine","owner":"RobCyberLab","description":"🖼️Pixel Crypt Engine🛡️","archived":false,"fork":false,"pushed_at":"2024-11-27T18:58:13.000Z","size":126,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-06T15:53:29.150Z","etag":null,"topics":["crypto-engine","cryptography","cybersecurity","cybersecurity-tools","data-protection","data-security","digital-privacy","hashing","image-encryption","image-security","security-tools","steganography"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RobCyberLab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-24T17:17:44.000Z","updated_at":"2024-11-27T18:58:16.000Z","dependencies_parsed_at":"2025-02-06T15:43:17.825Z","dependency_job_id":null,"html_url":"https://github.com/RobCyberLab/Pixel-Crypt-Engine","commit_stats":null,"previous_names":["robcyberlab/pixel-crypt-engine"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobCyberLab%2FPixel-Crypt-Engine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobCyberLab%2FPixel-Crypt-Engine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobCyberLab%2FPixel-Crypt-Engine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobCyberLab%2FPixel-Crypt-Engine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RobCyberLab","download_url":"https://codeload.github.com/RobCyberLab/Pixel-Crypt-Engine/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246458022,"owners_count":20780675,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["crypto-engine","cryptography","cybersecurity","cybersecurity-tools","data-protection","data-security","digital-privacy","hashing","image-encryption","image-security","security-tools","steganography"],"created_at":"2024-12-13T12:35:13.991Z","updated_at":"2025-03-31T10:50:47.704Z","avatar_url":"https://github.com/RobCyberLab.png","language":"JavaScript","readme":"# 🖼️ Pixel Crypt Engine 🛡️\n\n## Table of Contents\n1. [Introduction](#introduction)\n2. [Technical Description](#technical-description)\n3. [Technologies Used](#technologies-used)\n4. [Main Features](#main-features)\n5. [Installation](#installation)\n6. [Usage](#usage)\n7. [Possible Improvements](#possible-improvements)\n\n## Introduction📘\nPixel Crypt Engine is a command-line tool for secure image encryption and decryption. It uses AES-256-CTR encryption combined with smart compression to securely store and transfer image files. The tool provides a user-friendly interface with progress indicators and detailed statistics about the encryption/compression process.\n\n## Technical Description⚙️\nThe engine implements several key technical features:\n\n- **AES-256 Encryption**: Uses CTR mode for secure encryption:\n```javascript\nconst algorithm = 'aes-256-ctr';\nconst cipher = crypto.createCipheriv(algorithm, key.padEnd(32).slice(0, 32), iv);\n```\n\n- **Smart Compression**: Implements GZIP compression for files larger than 10KB:\n```javascript\nif (compress \u0026\u0026 imageData.length \u003e MIN_COMPRESS_SIZE) {\n    processedData = await gzip(imageData);\n} else if (compress) {\n    spinner.info('File too small for effective compression, skipping...');\n}\n```\n\n- **Progress Tracking**: Uses Ora for elegant progress display:\n```javascript\nconst spinner = ora('Starting encryption process...').start();\nspinner.text = 'Encrypting data...';\n```\n\n## Technologies Used💻\n- **Node.js**: \n  - ES Modules structure\n  - Async/await operations\n  - Buffer handling\n  \n- **Core Modules**: \n  - `crypto` for encryption\n  - `zlib` for compression\n  - `fs` for file operations\n  \n- **NPM Packages**: \n  - `boxen` for styled boxes\n  - `chalk` for colored output\n  - `ora` for spinners\n  - `meow` for CLI parsing\n\n## Main Features🌟\n- **Encryption**:\n  - AES-256-CTR encryption\n  - Random IV generation\n  - Smart compression (\u003e10KB files)\n  - Secure key handling\n\n- **User Experience**:\n  - Progress spinners\n  - Compression statistics\n  - Size-based compression\n  - Informative messages\n\n## Installation\n```bash\nnpm install pixel-crypt-engine\n```\n\n## Usage🔍\n### Basic Commands\n```bash\n# Encrypt an image\npixelcrypt -e -i input.jpg -o encrypted.bin -k \"your-secret-key\"\n\n# Decrypt an image\npixelcrypt -d -i encrypted.bin -o decrypted.jpg -k \"your-secret-key\"\n\n# Encrypt without compression\npixelcrypt -e -i input.jpg -o encrypted.bin -k \"your-secret-key\" --no-compress\n```\n\n### Available Options\n- `-e, --encrypt`: Encrypt an image\n- `-d, --decrypt`: Decrypt an image\n- `-i, --input`: Input file path\n- `-o, --output`: Output file path\n- `-k, --key`: Secret key\n- `-c, --compress`: Enable smart compression (default: true, applies to files \u003e10KB)\n\n## Possible Improvements🚀\n- **Enhanced Security**:\n  - Multiple encryption algorithms\n  - Key file support\n  - Digital signatures\n  - File integrity checks\n\n- **Better Compression**:\n  - Multiple compression algorithms\n  - Customizable size thresholds\n  - Format-specific compression\n  - Compression level options\n\n- **Advanced Features**:\n  - Batch processing\n  - Directory encryption\n  - Metadata preservation\n  - Password strength checks","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobcyberlab%2Fpixel-crypt-engine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobcyberlab%2Fpixel-crypt-engine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobcyberlab%2Fpixel-crypt-engine/lists"}