{"id":31109378,"url":"https://github.com/kayleexx/veil","last_synced_at":"2025-09-17T06:57:43.743Z","repository":{"id":313818554,"uuid":"1052203715","full_name":"Kayleexx/veil","owner":"Kayleexx","description":null,"archived":false,"fork":false,"pushed_at":"2025-09-08T17:00:10.000Z","size":33,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-08T18:09:55.485Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Kayleexx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-07T16:08:29.000Z","updated_at":"2025-09-08T18:07:23.000Z","dependencies_parsed_at":"2025-09-08T18:11:02.243Z","dependency_job_id":"5c8e5ec3-0231-46b9-92c2-250915ce4253","html_url":"https://github.com/Kayleexx/veil","commit_stats":null,"previous_names":["kayleexx/veil"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/Kayleexx/veil","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kayleexx%2Fveil","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kayleexx%2Fveil/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kayleexx%2Fveil/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kayleexx%2Fveil/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kayleexx","download_url":"https://codeload.github.com/Kayleexx/veil/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kayleexx%2Fveil/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275549736,"owners_count":25484687,"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","status":"online","status_checked_at":"2025-09-17T02:00:09.119Z","response_time":84,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-09-17T06:57:42.130Z","updated_at":"2025-09-17T06:57:43.727Z","avatar_url":"https://github.com/Kayleexx.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Veil: Secure Multi-Party Computation \u0026 Encryption Framework\n\n\u003cimg width=\"368\" height=\"177\" alt=\"image\" src=\"https://github.com/user-attachments/assets/34e74614-d969-45b7-aa52-4aad5f532dde\" /\u003e\n\nVeil is a Rust-based project that provides a **multi-purpose encryption and secret-sharing framework** with support for:\n\n* AES encryption\n* Hash-based encryption\n* String reversal\n* Shamir’s Secret Sharing for secure split/combine of secrets\n* Multi-party computation (MPC) with secret aggregation over a network\n\nIt includes both **server** and **client** components with an interactive CLI.\n\n---\n\n## Table of Contents\n\n* [Features](#features)\n* [Installation](#installation)\n* [Project Structure](#project-structure)\n* [Usage](#usage)\n\n  * [Start Server](#start-server)\n  * [Start Client](#start-client)\n  * [Commands](#commands)\n* [Examples](#examples)\n* [Shamir’s Secret Sharing](#shamirs-secret-sharing)\n* [MPC Aggregation](#mpc-aggregation)\n* [License](#license)\n\n---\n\n## Features\n\n* **Dynamic encryption selection:** `aes`, `hash`, `reverse`\n* **Secret splitting \u0026 combining** using Shamir’s Secret Sharing\n* **Multi-party secret aggregation** with XOR-based combination\n* **Secure network communication** over TCP with random salts\n* **Interactive CLI** for easy testing and experimentation\n\n---\n\n## Installation\n\n1. Clone the repository:\n\n```bash\ngit clone https://github.com/yourusername/veil.git\ncd veil\n```\n\n2. Build the project:\n\n```bash\ncargo build --release\n```\n\n3. Run the project:\n\n```bash\ncargo run --release\n```\n\n\u003e Requires Rust 1.70+ and the `tokio` async runtime.\n\n---\n\n## Project Structure\n\n```\nveil/\n├── Cargo.toml\n├── src/\n│   ├── main.rs          # CLI entry point\n│   ├── network.rs       # Server \u0026 Client networking logic\n│   ├── mpc.rs           # Multi-party computation \u0026 aggregation\n│   ├── secret_sharing.rs# Shamir's Secret Sharing implementation\n│   ├── aes.rs           # AES encryption logic\n│   ├── hash_and_reverse.rs # Hashing \u0026 string reversal encryptors\n│   └── lib.rs\n└── README.md\n```\n\n---\n\n## Usage\n\n### Start Server\n\n```bash\ncargo run --release\n```\n\nServer will ask:\n\n```\nDo you want to run as server/node or client?\n```\n\nType `server` and provide an address:\n\n```\n127.0.0.1:7878\n```\n\n---\n\n### Start Client\n\n```bash\ncargo run --release\n```\n\nType `client` and provide server address:\n\n```\n127.0.0.1:7878\n```\n\nThen you can enter commands interactively.\n\n---\n\n### Commands\n\n```\naes|text             # AES encrypt 'text'\nhash|text            # Hash 'text'\nreverse|text         # Reverse 'text'\nsplit|secret|k|n     # Split 'secret' into n shares with threshold k\ncombine|share1,...   # Combine shares into original secret\nmpc|party1,party2|party1,party2 # Aggregate multiple parties' shares\n```\n\n---\n\n## Examples\n\n**AES Encryption:**\n\n```\n\u003e aes|hello\nServer response: \u003chex encoded encrypted output\u003e\n```\n\n**Reverse Encryption:**\n\n```\n\u003e reverse|hello\nServer response: olleh\n```\n\n\n**Hash Encryption:**\n\n```\n\u003e hash|hello\nServer response: \u003csha256 hash in hex\u003e\n```\n\n**Secret Sharing (Split):**\n\n```\n\u003e split|mysecret|3|5\nServer response: 5 hex-encoded shares separated by commas\n```\n\n**Secret Sharing (Combine):**\n\n```\n\u003e combine|share1,share2,share3\nServer response: mysecret\n```\n\n**MPC Aggregation:**\n\n```\n\u003e mpc|party1share1,party1share2|party2share1,party2share2\nServer response: \u003chex aggregated secret\u003e\n```\n\n---\n\n## Shamir’s Secret Sharing\n\nVeil uses Shamir’s Secret Sharing scheme to securely **split secrets into shares**:\n\n* `k` = minimum threshold to reconstruct secret\n* `n` = total number of shares\n\nAll shares are **hex encoded** for network transmission. Combining any `k` valid shares will reconstruct the original secret.\n\n---\n\n## MPC Aggregation\n\n* Accepts multiple parties, each providing multiple shares\n* Aggregates secrets using XOR across parties\n* Returns a single **hex-encoded aggregated secret**\n* Supports secure collaborative computation without revealing individual secrets\n\n---\n\n## Output\n\n\u003cimg width=\"1349\" height=\"517\" alt=\"image\" src=\"https://github.com/user-attachments/assets/36693847-104a-409f-993e-8276bf1c8894\" /\u003e\n\u003cimg width=\"1103\" height=\"921\" alt=\"image\" src=\"https://github.com/user-attachments/assets/21c02c42-fc89-456a-bce5-deab85bb2ed2\" /\u003e\n\u003cimg width=\"1509\" height=\"815\" alt=\"image\" src=\"https://github.com/user-attachments/assets/5f7e5c7c-6ca8-4e6c-ad24-3982c000519b\" /\u003e\n\u003cimg width=\"1502\" height=\"141\" alt=\"image\" src=\"https://github.com/user-attachments/assets/42b23e4f-f75d-4ecd-bf2e-5b3b87e73a17\" /\u003e\n\n---\n\n## License\n\nMIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkayleexx%2Fveil","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkayleexx%2Fveil","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkayleexx%2Fveil/lists"}