Module radius_rust::tools
source · [−]Expand description
Various helper functions, that are used by RADIUS Client & Server to encode/decode information inside RADIUS packet They are also available to crate users to prepare data before it is packed into RADIUS packet
Functions
Converts integer bytes into u32
Converts IPv4 bytes into IPv4 string
Converts IPv6 bytes into IPv6 string
Converts timestamp bytes into u64
Decrypts data since RADIUS packet is sent in plain text
Encrypts data since RADIUS packet is sent in plain text
Converts u32 into vector of bytes
Converts IPv4 Address string into vector of bytes
Converts IPv6 Address string into vector of bytes
Decrypts data with salt since RADIUS packet is sent in plain text
Encrypts data with salt since RADIUS packet is sent in plain text
Converts timestamp (u64) into vector of bytes