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

Function base16_encode

src/ciphers/base16.rs:31–37  ·  view source on GitHub ↗

Base16 encoding and decoding implementation. Base16, also known as hexadecimal encoding, represents binary data using 16 ASCII characters (0-9 and A-F). Each byte is represented by exactly two hexadecimal digits. This implementation follows RFC 3548 Section 6 specifications: - Uses uppercase characters (A-F) for encoding - Requires uppercase input for decoding - Validates that encoded data has a

(data: &[u8])

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

test_encode_all_bytesFunction · 0.85
test_roundtripFunction · 0.85
test_roundtrip_all_bytesFunction · 0.85
test_roundtrip_emptyFunction · 0.85

Calls 1

iterMethod · 0.45

Tested by 4

test_encode_all_bytesFunction · 0.68
test_roundtripFunction · 0.68
test_roundtrip_all_bytesFunction · 0.68
test_roundtrip_emptyFunction · 0.68