mb-hash

Secure hashing for MoonBit (SHA-256, SHA-512; native+WASM)

crypto
hash
sha256
sha512
sha2
moon add Tigls/mb-hash@0.1.0
Download zip
Author
Version
0.1.0
License
Apache-2.0
Last updated
4 months ago
Downloads
7K
README

#mb-hash: SHA-2 Package

mb-hash is a simple and efficient implementation of the SHA-2 family of cryptographic hash functions for MoonBit projects inspired by Rust Crypto.

#Features

  • Supports SHA-256
  • Planned support for SHA-224, SHA-384, and SHA-512 and SHA3
  • Zero dependencies

#Installation

Add mb-hash to your MoonBit project using the package manager:

moon add tigls/mb-crypto/mb-hash

Or add it to your moon.pkg.json:

{ "deps": { "tigls/mb-crypto/mb-hash": "*" } }

Then in your moon.pkg.json, import the package:

{ "import": [ "tigls/mb-crypto/mb-hash/sha2" ] }

#Usage

let hash256 = @sha2.sha256("hello world")
println(hash256)

#License

MIT

Powered by MoonBit

Site sourceReport issuePackagesBuild queueSkillsStatistics

© 2026 mooncakes.io