Skip to content

Hash

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

Usage Example

use std.crypto.hash;
fn main() {
@println("{}", Hasher.fnv1a64("hello"));
@println("{}", Hasher.fnv1a32("hello"));
}

Hasher

FNV-1a hashing


Fields:

// No Fields

Methods:

pub fn fnv1a64(data: []const char) u64;
pub fn fnv1a32(data: []const char) u32;