Skip to content
CryoCryo home
StdlibText and data

encoding

Two small, self-contained, dependency-free codecs. Both exist because net::ws needs them for the WebSocket handshake; both are useful on their own.

public module encoding::base64;
public module encoding::sha1;
FileWhat it holdsImport
base64encode, decode — RFC 4648import std::encoding::base64;
sha1sha1 — RFC 3174import std::encoding::sha1;