Skip to content

Base64

Module: std.crypto.base64
Source: std/crypto/base64.zn

Usage Example

use std.crypto.base64;
fn main() {
let encoded = Base64.encode("hello");
@println("{}", encoded);
@println("{}", Base64.decode(encoded.slice(..)).unwrap());
}

Base64

Standard alphabet base64 codec


Fields:

// No Fields

Methods:

pub fn encode(data: []const char) String;
pub fn decode(data: []const char) Option[String];