Skip to content

Latest commit

 

History

History
48 lines (31 loc) · 762 Bytes

README.md

File metadata and controls

48 lines (31 loc) · 762 Bytes

oboard/mooncrypto

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.

Installation

moon install oboard/mooncrypto

Usage

MD5

println(@mooncrypto.md5("Hello, World!"))


println(@mooncrypto.core_md5(bytes))

SHA256

println(@mooncrypto.sha256("Hello, World!"))


println(@mooncrypto.core_sha256(bytes))

base64

println(@mooncrypto.base64_encode("Hello, World!"))

println(@mooncrypto.base64_decode("SGVsbG8sIFdvcmxkIQ=="))

Algorithms

  • MD5
  • SHA1
  • SHA3
  • SHA256
  • RSA
  • AES
  • ECC
  • base64