{"id":22868496,"url":"https://github.com/robcyberlab/cryptography-algorithms-app","last_synced_at":"2025-04-14T14:14:45.640Z","repository":{"id":262009645,"uuid":"885970654","full_name":"RobCyberLab/Cryptography-Algorithms-App","owner":"RobCyberLab","description":"🛡️Cryptography Algorithms App🔑","archived":false,"fork":false,"pushed_at":"2025-04-05T21:48:47.000Z","size":1178,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-14T14:14:40.180Z","etag":null,"topics":["aes-cipher","aes-decryption","aes-encryption","cybersecurity","cybersecurity-projects","encryption-decryption","rsa-cipher","rsa-decryption","rsa-encryption"],"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-09T21:10:41.000Z","updated_at":"2025-04-05T21:48:49.000Z","dependencies_parsed_at":"2024-11-09T22:19:49.888Z","dependency_job_id":"e519a315-1a95-42e4-b0f0-8dd440f2265a","html_url":"https://github.com/RobCyberLab/Cryptography-Algorithms-App","commit_stats":null,"previous_names":["robcyberlab/cryptography-algorithms-app"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobCyberLab%2FCryptography-Algorithms-App","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobCyberLab%2FCryptography-Algorithms-App/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobCyberLab%2FCryptography-Algorithms-App/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobCyberLab%2FCryptography-Algorithms-App/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RobCyberLab","download_url":"https://codeload.github.com/RobCyberLab/Cryptography-Algorithms-App/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248894943,"owners_count":21179153,"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":["aes-cipher","aes-decryption","aes-encryption","cybersecurity","cybersecurity-projects","encryption-decryption","rsa-cipher","rsa-decryption","rsa-encryption"],"created_at":"2024-12-13T12:35:23.300Z","updated_at":"2025-04-14T14:14:45.618Z","avatar_url":"https://github.com/RobCyberLab.png","language":"JavaScript","readme":"# 🛡️Cryptography Algorithms App🔑\n\n## Table of Contents 📑\n1. [Introduction](#introduction-)\n2. [Current Features](#current-features-)\n3. [Technologies Used](#technologies-used-)\n4. [Security Measures](#security-measures-)\n5. [Installation](#installation-)\n6. [API Documentation](#api-documentation-)\n7. [Future Enhancements](#future-enhancements-)\n\n## Introduction 📘\nA web application that provides text encryption and decryption capabilities using AES and RSA algorithms. The app features a simple user interface for text encryption and decryption operations.\n\n## Current Features ⚡\n### Implemented Functionality\n- Text encryption and decryption using AES-256-CBC\n  - Includes salt and IV generation\n  - Uses PBKDF2 for key derivation\n- Text encryption and decryption using RSA (2048-bit)\n- Simple web interface with:\n  - Separate encryption and decryption forms\n  - Method selection (AES/RSA)\n  - Real-time error display\n  - Responsive design\n- Error handling and validation\n\n## Technologies Used 💻\n### Currently Implemented\n\nFrontend:\n- HTML5\n- CSS3 with custom properties\n- JavaScript\n\nBackend:\n- Node.js\n- Express.js\n- crypto (Node.js built-in module)\n- node-rsa package\n\nSecurity:\n- helmet (HTTP headers)\n- body-parser (Request parsing)\n\n## Security Measures 🔐\nCurrently implemented:\n- HTTP security headers via Helmet\n- Request body validation\n- Environment variable for encryption key\n- Secure random IV and salt generation for AES\n- Error messages that don't expose system details\n\n## Installation 🚀\n1. Install dependencies:\n```bash\nnpm install\n```\n\n2. Create a .env file with required environment variables:\n```bash\nENCRYPTION_KEY=your_32_byte_encryption_key\nPORT=3000\n```\n\n3. Start the server:\n```bash\nnode app.js\n```\n\nThe application will be available at `http://localhost:3000`\n\n## API Documentation 📚\n### Currently Implemented Endpoints\n\n#### Encrypt Endpoint 🔒\n```http\nPOST /encrypt\nContent-Type: application/json\n\n{\n    \"text\": \"Text to encrypt\",\n    \"method\": \"AES\" | \"RSA\"\n}\n\nResponse:\n{\n    \"encrypted\": \"encrypted_text\"\n}\n```\n\n#### Decrypt Endpoint 🔓\n```http\nPOST /decrypt\nContent-Type: application/json\n\n{\n    \"text\": \"encrypted_text\",\n    \"method\": \"AES\" | \"RSA\"\n}\n\nResponse:\n{\n    \"decrypted\": \"original_text\"\n}\n```\n\n### Error Responses\n```json\n{\n    \"error\": \"Error message\"\n}\n```\n\nCurrently handled errors:\n- Missing text input (\"Text is required.\")\n- Invalid encryption/decryption method\n- Invalid encryption key configuration\n- Invalid encrypted text format\n- RSA encryption/decryption errors\n\n## Future Enhancements ⏳\n\n1. Security Features:\n   - Rate limiting\n   - CORS protection\n   - Key rotation\n   - Digital signatures\n   - Advanced key management\n\n2. Additional Functionality:\n   - File encryption\n   - Batch processing\n   - Operation history\n   - Additional encryption algorithms\n\n3. Infrastructure:\n   - Automated testing\n   - CI/CD pipeline\n   - Monitoring system\n   - Docker containerization\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobcyberlab%2Fcryptography-algorithms-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobcyberlab%2Fcryptography-algorithms-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobcyberlab%2Fcryptography-algorithms-app/lists"}