Skip to main content

encode

Function encode 

Source
pub fn encode(bytes: &[u8]) -> String
Expand description

Encodes bytes as padded base64.

§Arguments

  • bytes - the bytes to encode.

§Returns

The base64 string, padded to a multiple of four characters.