pub fn encrypt_data(data: &[u8], authenticator: &[u8], secret: &[u8]) -> Vec<u8>
Expand description

Encrypts data since RADIUS packet is sent in plain text

Should be used to encrypt value of User-Password attribute (but could also be used to encrypt any data)