mooncrypto is a growing collection of standard and secure cryptographic algorithms implemented in MoonBit using best practices and patterns. They are fast, and they have a consistent and simple interface.
moon install oboard/mooncrypto
println(@mooncrypto.md5("Hello, World!"))
println(@mooncrypto.core_md5(bytes))
println(@mooncrypto.sha256("Hello, World!"))
println(@mooncrypto.core_sha256(bytes))
println(@mooncrypto.base64_encode("Hello, World!"))
println(@mooncrypto.base64_decode("SGVsbG8sIFdvcmxkIQ=="))
- MD5
- SHA1
- SHA3
- SHA256
- RSA
- AES
- ECC
- base64