| Crates.io | pqc_bridge |
| lib.rs | pqc_bridge |
| version | 0.1.2 |
| created_at | 2025-11-05 20:20:24.787745+00 |
| updated_at | 2025-11-06 18:56:50.164191+00 |
| description | A lightweight Rust library for post-quantum cryptography providing secure key management, encryption, and digital signatures using NIST-standardized algorithms |
| homepage | |
| repository | https://github.com/olekssy/pqc_bridge |
| max_upload_size | |
| id | 1918543 |
| size | 53,349 |
A lightweight Rust library for post-quantum cryptography providing secure key management, encryption, and digital signatures using NIST-standardized algorithms.
Key Features:
Install as a dependency in your Cargo.toml:
[dependencies]
pqc_bridge = "0.1.1"
Or via Cargo CLI:
cargo add pqc_bridge
Install the CLI tool:
cargo install pqc_bridge
use pqc_bridge::{KeyPair, encrypt, decrypt, sign, verify};
let message = "Secret message";
let keypair = KeyPair::generate();
// Encryption
let encrypted = encrypt(message, &keypair.to_public_key());
let decrypted = decrypt(encrypted, &keypair);
assert_eq!(message, decrypted);
// Signing
let signature = sign(message, &keypair);
let is_signature_valid = verify(message, &signature, &keypair.to_public_key());
assert!(is_signature_valid);
# Generate keypair
pqc keygen -o alice # Creates alice.sec and alice.pub
# Encrypt message
pqc encrypt -m "Hello!" -k alice.pub -o encrypted.pqc
# Alternative way to encrypt a file
pqc encrypt -m @message.txt -k alice.pub -o encrypted.pqc
# Decrypt message
pqc decrypt -i encrypted.pqc -k alice.sec
Hybrid Encryption:
Digital Signatures:
Security Features:
MIT License - See LICENSE for details.
Note: Educational project. Consult cryptography experts for production use.