Skip to main content

encrypt

Function encrypt 

Source
pub fn encrypt(plain: &[u8], seed: u16) -> Vec<u8> 
Expand description

The inverse of decrypt, without the skip: plain is emitted as-is through the cipher.

Exists so tests can build encrypted fixtures from readable charstrings instead of hand-assembled byte tables. It is also the operation an encoder would need, which is why it is public rather than #[cfg(test)].