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

Function base32_decode

src/ciphers/base32.rs:93–129  ·  view source on GitHub ↗

Decodes base32-encoded data into bytes. The function decodes base32 format back to binary data, removing padding characters. # Arguments `data` - A byte slice containing base32-encoded data # Returns `Ok(Vec )` - Successfully decoded bytes `Err(String)` - Error message if the input is invalid # Errors Returns an error if: - The input contains invalid base32 characters - The input cannot

(data: &[u8])

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 6

test_roundtrip_helloFunction · 0.85
test_binary_dataFunction · 0.85
test_padding_variationsFunction · 0.85

Calls 4

pushMethod · 0.80
is_emptyMethod · 0.45
lenMethod · 0.45
iterMethod · 0.45

Tested by 6

test_roundtrip_helloFunction · 0.68
test_binary_dataFunction · 0.68
test_padding_variationsFunction · 0.68