use std::sync::LazyLock; use rc4::{Key, StreamCipher}; use typenum::U5; pub struct EncryptionPair { pub send: T, pub recv: T, } impl EncryptionPair { pub fn init_both T>(func: F) -> Self { Self { recv: func(), send: func(), } } } pub static DEFAULT_KEY: LazyLock> = LazyLock::new(|| Key::from(*b"CD&ML"));