Skip to main content

base32_decode

Function base32_decode 

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

Decodes unpadded (or padded) RFC 4648 base32, case-insensitively.

Spaces are stripped because this is what a human types back out of the grouped display the UI shows, and = is accepted because a user pasting a secret exported from somewhere else should not have to know the difference.