Skip to main content

base32_encode

Function base32_encode 

Source
pub fn base32_encode(data: &[u8]) -> String
Expand description

Encodes bytes as unpadded RFC 4648 base32.

Unpadded because otpauth:// secrets are conventionally written without =, and several authenticators reject the padding rather than ignoring it.