From 2c4785a5f33e1f27378cdc335ea6ed5afe46dab7 Mon Sep 17 00:00:00 2001 From: Micah Date: Sun, 2 Jun 2024 16:49:14 -0700 Subject: [PATCH] Update changelog --- CHANGELOG.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a1c0536..e7d222c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,24 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## Unreleased + +- Added a builtin API for hashing and calculating HMACs as part of the `serde` library + + Basic usage: + + ```lua + local serde = require("@lune/serde") + local hash = serde.hash("sha256", "a message to hash") + local hmac = serde.hmac("sha256", "a message to hash", "a secret string") + + print(hash) + print(hmac) + ``` + + The returned hashes are sequences of lowercase hexadecimal digits. The following algorithms are supported: + `md5`, `sha1`, `sha224`, `sha256`, `sha384`, `sha512`, `sha3-224`, `sha3-256`, `sha3-384`, `sha3-512`, `blake3` + ## `0.8.5` - June 1st, 2024 ### Changed