Expand description
data_conversion.rs
Utility functions for converting data between common formats like hexadecimal, Base64, and byte arrays.
Functionsยง
- base64_
to_ bytes - Converts a Base64 encoded string to a byte vector. Uses the standard Base64 alphabet and padding.
- base64url_
nopad_ to_ bytes - Converts a Base64 encoded string (URL-safe, no padding) to a byte vector.
- bytes_
to_ base64 - Converts a byte slice to a Base64 encoded string. Uses the standard Base64 alphabet and padding.
- bytes_
to_ base64url_ nopad - Converts a byte slice to a Base64 encoded string (URL-safe, no padding).
- bytes_
to_ hex - Converts a byte slice to a hexadecimal string.
- hex_
to_ bytes - Converts a hexadecimal string to a byte vector.