MoonBit md5: provide simple md5 hash algorithm.
// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.$ moon version --all
moon 0.1.20261117 (eb64713 2026-11-17) ~/.moon/bin/moon
moonc v0.10.21+06da1ed44 (2026-11-16) ~/.moon/bin/moonc
moonrun 0.1.20261117 (eb64713 2026-11-17) ~/.moon/bin/moonrun
pub(open) trait HashFunc {
fn name(Self) -> String
fn reset(Self) -> Unit
fn size(Self) -> Int
fn write(Self, Byte) -> Unit
fn check_sum(Self) -> String
}type Digest