zyn.auth.token#
/// General-purpose high-entropy token generation and hashing.
pub const token = struct {
/// Generates a 33-character Base62 token without allocating.
pub fn generate(io: std.Io) std.Io.RandomSecureError![33]u8;
/// Digests a high-entropy token with SHA-256 without allocating.
/// Passwords and other low-entropy secrets require managed password authentication.
pub fn digest(token: []const u8) [32]u8;
};