{"id":16713172,"url":"https://github.com/picrap/hashmac","last_synced_at":"2026-02-22T07:31:26.454Z","repository":{"id":63824180,"uuid":"570997671","full_name":"picrap/HashMAC","owner":"picrap","description":"An HMAC with any HashAlgorithm","archived":false,"fork":false,"pushed_at":"2024-07-26T20:03:25.000Z","size":93,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-28T06:02:49.100Z","etag":null,"topics":["hash","hmac","mac"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/picrap.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-26T20:22:58.000Z","updated_at":"2024-07-26T20:03:28.000Z","dependencies_parsed_at":"2025-01-21T20:44:29.600Z","dependency_job_id":"9a985676-2c9d-45f2-ada3-9e58be859d3a","html_url":"https://github.com/picrap/HashMAC","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/picrap/HashMAC","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/picrap%2FHashMAC","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/picrap%2FHashMAC/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/picrap%2FHashMAC/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/picrap%2FHashMAC/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/picrap","download_url":"https://codeload.github.com/picrap/HashMAC/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/picrap%2FHashMAC/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280706834,"owners_count":26376976,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-23T02:00:06.710Z","response_time":142,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hash","hmac","mac"],"created_at":"2024-10-12T20:45:44.787Z","updated_at":"2025-10-23T22:56:04.273Z","avatar_url":"https://github.com/picrap.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿# HashMAC\n\nA flexible [HMAC implementation](https://learn.microsoft.com/en-us/dotnet/api/system.security.cryptography.hmac), allowing to specify any `HashAlgorithm` as input.  \nAvailable as a [![NuGet](https://img.shields.io/nuget/v/HashMAC.svg?style=flat-square)](https://www.nuget.org/packages/HashMAC) package.\n\n# How to use it\n\n## `HashMAC` itself\n\nShort answer: as a [standard HMAC](https://learn.microsoft.com/en-us/dotnet/api/system.security.cryptography.hmac) 😉  \nThe `HMAC` base class derives itself from `HashAlgorithm`, so except the constructor which takes a secret key, the usage is the same.\n\n## Using it with other hashes\n\n### SHA3\n\nNuGet packages:\n- [SHA3](https://www.nuget.org/packages/SHA3): not not maintained anymore\n- [SHA3.net](https://www.nuget.org/packages/SHA3.Net): embeds code from Bouncy Castle\n\nHashes block sizes (required by `HashMAC.Create()`):\n\n| SHA3 size (bits) | Block size (bits) | Block size (bytes) |\n|-|-|-|\n| 224 | 1152 | 144 |\n| 256 | 1088 | 136 |\n| 384 | 832 | 104 |\n| 512 | 576 | 72 |\n\n# References\n\n- [RFC 2104](https://www.rfc-editor.org/rfc/rfc2104): the reference\n- [Wikipedia](https://fr.wikipedia.org/wiki/HMAC): a human-readable description\n\n# Thank you\n\n- [Web Vectors by Vecteezy](https://www.vecteezy.com/free-vector/web)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpicrap%2Fhashmac","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpicrap%2Fhashmac","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpicrap%2Fhashmac/lists"}