md5

MoonBit md5: provide simple md5 hash algorithm.

md5
hash
algorithm
moonbit
Download zip
Author
Version
0.19.36
License
Apache-2.0
Last updated
17 hours ago
Downloads
2K

Dependencies

#gmlewis/md5

check

This is a simple md5 hash algorithm based on Go's implementation: https://cs.opensource.google/go/go/+/refs/tags/go1.23.0:src/crypto/md5/md5.go which has the copyright notice:

// 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.

#Status

The code has been updated to support compiler:

$ moon version --all moon 0.1.20260827 (d0aaa07 2026-08-27) ~/.moon/bin/moon moonc v0.10.11+8f8e8db1e (2026-08-27) ~/.moon/bin/moonc moonrun 0.1.20260827 (d0aaa07 2026-08-27) ~/.moon/bin/moonrun

HashFunc

pub(open) trait HashFunc {
fn name(Self) -> String
fn write(Self, Byte) -> Unit
fn check_sum(Self) -> String
}

HashFunc represents a hash algorithm like @crc32, @md5, or @sha256.

Digest

type Digest

Digest represents the partial evaluation of a checksum.
impl HashFunc for Digest

Digest::new

fn Digest::new() -> Digest

Digest::new returns a new, reset Digest, ready to sum.

Digest::reset

fn Digest::reset(self : Digest) -> Unit

reset resets a digest for re-use.

Powered by MoonBit

Site sourceReport issuePackagesBuild queueSkillsStatistics

© 2026 mooncakes.io