brinkhaustools::licence

Function base32_decode

Source
pub fn base32_decode(text: &str) -> Result<Vec<u8>, String>
Expand description

Decode Crockford Base32.

Case-insensitive; whitespace and - are ignored (the text block is wrapped and may be grouped); O reads as 0, I/L as 1. Trailing pad bits must be zero, so a truncated or extended block is rejected instead of silently decoded.