Base64 encoding and decoding library
mbt add kujirahand/base64import {
"kujirahand/base64" @base64
}println(@base64.encode_utf8("Hello, World!")) // "SGVsbG8sIFdvcmxkIQ=="
println(@base64.encode_bytes(b"Hello, World!")) // b"SGVsbG8sIFdvcmxkIQ=="
println(@base64.decode_utf8("SGVsbG8sIFdvcmxkIQ==")) // "Hello, World!"
println(@base64.decode_bytes("SGVsbG8sIFdvcmxkIQ==")) // b"Hello, World!"fn encode_bytes(input : Bytes) -> Stringfn encode_utf8(input : String) -> StringInstall
Download zipBase64 encoding and decoding library