MoonBit sha256: provide simple sha256 hash algorithm.
Dependencies
// 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.20260713 (75c7e1f 2026-07-13) ~/.moon/bin/moon
moonc v0.10.4+2cc641edf (2026-07-15) ~/.moon/bin/moonc
moonrun 0.1.20260713 (75c7e1f 2026-07-13) ~/.moon/bin/moonrun
pub(open) trait HashFunc {
fn name(Self) -> String
fn write(Self, Byte) -> Unit
fn check_sum(Self) -> String
}type Digestfn gen_hmac(body : Bytes, client_secret : Bytes) -> StringMoonBit sha256: provide simple sha256 hash algorithm.
Dependencies