{"id":34250167,"url":"https://github.com/olekssy/pqc_bridge","last_synced_at":"2025-12-16T09:13:39.371Z","repository":{"id":320466213,"uuid":"1082082485","full_name":"olekssy/pqc_bridge","owner":"olekssy","description":"Quantum-resistant secure communication using ML-KEM (Kyber) and ML-DSA (Dilithium) post-quantum cryptography","archived":false,"fork":false,"pushed_at":"2025-11-06T19:13:49.000Z","size":40,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-12T22:00:13.937Z","etag":null,"topics":["dilithium","encryption","kyber","post-quantum-cryptography","quantum-resistant","rust"],"latest_commit_sha":null,"homepage":"","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/olekssy.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-10-23T17:54:01.000Z","updated_at":"2025-11-06T19:13:53.000Z","dependencies_parsed_at":"2025-10-24T00:29:28.540Z","dependency_job_id":"e018e00b-954e-44f4-99a2-80cd5d252532","html_url":"https://github.com/olekssy/pqc_bridge","commit_stats":null,"previous_names":["olekssy/pqc_bridge"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/olekssy/pqc_bridge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olekssy%2Fpqc_bridge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olekssy%2Fpqc_bridge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olekssy%2Fpqc_bridge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olekssy%2Fpqc_bridge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/olekssy","download_url":"https://codeload.github.com/olekssy/pqc_bridge/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olekssy%2Fpqc_bridge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27761756,"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-12-16T02:00:10.477Z","response_time":57,"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":["dilithium","encryption","kyber","post-quantum-cryptography","quantum-resistant","rust"],"created_at":"2025-12-16T09:13:37.366Z","updated_at":"2025-12-16T09:13:39.365Z","avatar_url":"https://github.com/olekssy.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pqc_bridge\n\n[![docs.rs (with version)](https://img.shields.io/docsrs/pqc_bridge/latest)](https://docs.rs/pqc_bridge/latest/pqc_bridge/)\n[![Crates.io](https://img.shields.io/crates/v/pqc_bridge)](https://crates.io/crates/pqc_bridge)\n![Last commit](https://img.shields.io/github/last-commit/olekssy/pqc_bridge)\n![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/olekssy/pqc_bridge/rust.yml)\n![License](https://img.shields.io/github/license/olekssy/pqc_bridge)\n\n\nA lightweight Rust library for post-quantum cryptography providing secure key management, encryption, and digital signatures using NIST-standardized algorithms.\n\n**Key Features:**\n- Intuitive API for building secure, quantum-resistant communication systems\n- Unified Rust library and CLI tool in one package for file-based and programmatic operations\n- Hybrid encryption (Kyber x AES-256-GCM) and signatures (Dilithium x SHA3-256)\n- Provides NIST Level 3 192-bit security for encryption and signatures\n- Compliant with NIST FIPS 203 (ML-KEM-768) and FIPS 204 (ML-DSA-65)\n\n## Quick Start\n\n### Installation\n\nInstall as a dependency:\n```bash\ncargo add pqc_bridge\n```\n\nInstall as a CLI tool:\n```bash\ncargo install pqc_bridge\n```\n\n### Library Usage\n\n```rust\nuse pqc_bridge::{KeyPair, encrypt, decrypt, sign, verify};\n\nlet message = \"Secret message\";\nlet keypair = KeyPair::generate();\n\n// Encryption\nlet encrypted = encrypt(message, \u0026keypair.to_public_key());\nlet decrypted = decrypt(encrypted, \u0026keypair);\nassert_eq!(message, decrypted);\n\n// Signing\nlet signature = sign(message, \u0026keypair);\nlet is_signature_valid = verify(message, \u0026signature, \u0026keypair.to_public_key());\nassert!(is_signature_valid);\n```\n\n### CLI Usage\n\n```bash\n# Generate keypair\npqc keygen -o alice  # Creates alice.sec and alice.pub\n\n# Encrypt message\npqc encrypt -m \"Hello!\" -k alice.pub -o encrypted.pqc\n\n# Encrypt file\npqc encrypt -m @message.txt -k alice.pub -o encrypted.pqc\n\n# Decrypt message\npqc decrypt -i encrypted.pqc -k alice.sec\n```\n\n## How It Works\n\n**Hybrid Encryption:**\n1. Kyber encapsulates a random AES-256 key using recipient's public key\n2. AES-256-GCM encrypts the message with the encapsulated key (fast + quantum-resistant)\n\n**Digital Signatures:**\n1. SHA3-256 hashes the message, Dilithium signs the hash\n2. Verification checks signature against message hash with sender's public key\n\n**Security Features:**\n- Automatic zeroization of secret keys in memory\n- JSON serialization with Base64 encoding\n- File-based operations via CLI\n\n## References\n\n- [NIST Post-Quantum Cryptography Standardization](https://csrc.nist.gov/projects/post-quantum-cryptography)\n- [NIST FIPS 203 - ML-KEM](https://csrc.nist.gov/publications/detail/fips/203/final)\n- [NIST FIPS 204 - ML-DSA](https://csrc.nist.gov/publications/detail/fips/204/final)\n- [CRYSTALS-Kyber](https://pq-crystals.org/kyber/)\n- [CRYSTALS-Dilithium](https://pq-crystals.org/dilithium/)\n\n## License\n\nMIT License - See [LICENSE](LICENSE) for details.\n\n---\n\n**Note:** Responsibility for secure implementation rests with the user. Consult cryptography experts for production use.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folekssy%2Fpqc_bridge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Folekssy%2Fpqc_bridge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folekssy%2Fpqc_bridge/lists"}