Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

base64

Fully qualified path: alexandria_encoding::base64

Free functions

encode_u8_arrayEncodes an array of u8 bytes into Base64 format This function takes an array of bytes and converts them to Base64 encoding…
encode_feltEncodes a felt252 value into Base64 format This function converts a felt252 value to its Base64 representation using a specialized algorithm that handles the large numeric range of felt252….
encode_byte_arrayEncodes a ByteArray into a Base64 encoded ByteArray. This function processes the input binary data in chunks of 3 bytes, converts them into their corresponding 6-bit values, and combines…

Traits

EncoderGeneric trait for encoding data into Base64 format This trait provides a common interface for encoding various data types into Base64 representation, which is widely used for encoding binary data…
DecoderGeneric trait for decoding data from Base64 format This trait provides a common interface for decoding Base64 encoded data back to its original binary representation….
ByteArrayEncoderTrait for encoding ByteArray data into Base64 format This trait is specialized for ByteArray types, providing efficient encoding operations while maintaining the ByteArray type for both…
ByteArrayDecoderTrait for decoding ByteArray data from Base64 format This trait is specialized for ByteArray types, providing efficient decoding operations while maintaining the ByteArray type for both…

Impls

Base64EncoderStandard Base64 encoder implementation for Array
Base64UrlEncoderURL-safe Base64 encoder implementation for Array
Base64FeltEncoderStandard Base64 encoder implementation for felt252
Base64UrlFeltEncoderURL-safe Base64 encoder implementation for felt252
Base64ByteArrayEncoderStandard Base64 encoder implementation for ByteArray
Base64ByteArrayUrlEncoderURL-safe Base64 encoder implementation for ByteArray
Base64DecoderStandard Base64 decoder implementation for Array
Base64UrlDecoderURL-safe Base64 decoder implementation for Array
Base64ByteArrayDecoderBase64 decoder implementation for ByteArray