quantum_cryptographic_toolkit 0.2.0

A toolkit for developing, testing, and deploying quantum-resistant cryptographic algorithms.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// examples/newhope_example.rs

use quantum_cryptographic_toolkit::algorithms::newhope::NewHope;

/// Demonstrates the use of the NewHope algorithm for key exchange.
fn main() {
    let newhope = NewHope::new();

    let public_key = vec![1, 2, 3, 4];
    println!("Public Key: {:?}", &public_key);

    let shared_secret = newhope.exchange(&public_key);
    println!("Shared Secret: {:?}", &shared_secret);

    // In a real application, the shared secret would be used for secure communication.
    println!("Key exchange using NewHope was successful!");
}