#[cfg(test)]
mod protocol_tests {
use VibeProtocol::{encrypt, decrypt};
#[test]
fn test_encryption_and_decryption_flow() {
let plaintext = "Hello, VibeProtocol!";
let caesar_shift = 3;
let (ciphertext_b64, nonce_b64, key_b64) = encrypt(plaintext, caesar_shift).unwrap();
let decrypted_text = decrypt(&ciphertext_b64, &nonce_b64, &key_b64, caesar_shift).unwrap();
assert_eq!(decrypted_text, plaintext);
}
}