| Crates.io | mcps-crypto |
| lib.rs | mcps-crypto |
| version | 0.1.0 |
| created_at | 2025-06-15 09:18:47.023832+00 |
| updated_at | 2025-06-15 09:18:47.023832+00 |
| description | Cryptographic primitives for MCPS protocol |
| homepage | https://github.com/SamDuchaine/mpcs |
| repository | https://github.com/SamDuchaine/mpcs |
| max_upload_size | |
| id | 1713099 |
| size | 12,829 |
Cryptographic primitives for MCPS protocol
MCPS (Model Context Protocol Secure) is "The HTTPS of MCP" - providing enterprise-grade security, encryption, and authentication for Model Context Protocol communications.
The mcps-crypto crate provides the cryptographic foundation for MCPS, including:
use mcps_crypto::{KeyPair, encrypt, decrypt};
fn main() -> Result<(), Box<dyn std::error::Error>> {
// Generate key pair
let keypair = KeyPair::generate();
// Encrypt message
let message = b"Hello, secure world!";
let encrypted = encrypt(message, &keypair.public_key())?;
// Decrypt message
let decrypted = decrypt(&encrypted, &keypair.private_key())?;
assert_eq!(message, &decrypted[..]);
println!("Encryption successful!");
Ok(())
}
This crate provides:
mcps-core - Core MCPS protocol implementationmcps-transport - MCPS transport layermcps-protocol - Complete MCPS toolkitLicensed under the Apache License, Version 2.0. See LICENSE for details.
For security vulnerabilities, please see our Security Policy and report issues to security@kindly.dev.