Skip to main content

decode

Function decode 

Source
pub fn decode(bytes: &[u8]) -> [u8; 48]
Expand description

Decodes a base64url representation.

Decoding is lenient: it accepts both the URL-safe (-, _) and standard (+, /) alphabets, and it zero-fills when bytes is shorter than a whole hash. Truncation and stray characters are left for the Reed-Solomon codec to correct.