MCPcopy Create free account
hub / github.com/TheAlgorithms/Rust / base32_encode

Function base32_encode

src/ciphers/base32.rs:32–64  ·  view source on GitHub ↗

Encodes the given bytes into base32. The function converts binary data into base32 format using the standard alphabet. Output is padded with '=' characters to make the length a multiple of 8. # Arguments `data` - A byte slice to encode # Returns A `Vec ` containing the base32-encoded data with padding. # Examples ``` use the_algorithms_rust::ciphers::base32_encode; assert_eq!(base32_enco

(data: &[u8])

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 5

test_roundtrip_helloFunction · 0.85
test_binary_dataFunction · 0.85
test_padding_variationsFunction · 0.85

Calls 3

pushMethod · 0.80
is_emptyMethod · 0.45
lenMethod · 0.45

Tested by 5

test_roundtrip_helloFunction · 0.68
test_binary_dataFunction · 0.68
test_padding_variationsFunction · 0.68