Available

amalgame-crypto

Pure SHA-256 + HMAC-SHA-256, no OpenSSL.

amc package add crypto GitHub ↗ ← Back to the ecosystem

Overview

Cryptographic primitives implemented in pure Amalgame (RFC reference). Today: SHA-256 and HMAC-SHA-256. Sufficient for hashes, HMAC tokens, the WebSocket handshake. Argon2id, RSA, Ed25519 planned for v0.2.

Features

  • SHA-256 (RFC 6234)
  • HMAC-SHA-256 (RFC 2104)
  • Pure Amalgame — no OpenSSL binding
  • JWT HS256-style stateless tokens
  • Roadmap: Argon2id (passwords), RSA, Ed25519, AEAD

Example

Minimal usage example — copy-paste runnable after install.

amc package add crypto

let digest = Crypto.Sha256("hello").Hex()
let token  = Crypto.HmacSha256("payload", "secret-key").Base64Url()

At a glance

Related packages