Module e_utils::algorithm::base64

source ·
Expand description

base64

Structs§

  • Contains configuration parameters for base64 encoding

Enums§

Constants§

  • Standard character set with padding.

Functions§

  • Write padding characters. output is the slice where padding should be written, of length at least 2.
  • decode
  • decode_config
  • decode_config_buf
  • Encode arbitrary octets as base64. Returns a String. Convenience for encode_config(input, base64::STANDARD);.
  • Encode arbitrary octets as base64. Returns a String.
  • Encode arbitrary octets as base64. Writes into the supplied output buffer, which will grow the buffer if needed.
  • Encode arbitrary octets as base64. Writes into the supplied output buffer.
  • Encode input bytes to utf8 base64 bytes. Does not pad. output must be long enough to hold the encoded input without padding. Returns the number of bytes written.
  • calculate the base64 encoded string size, including padding if appropriate