{"id":27401270,"url":"https://github.com/edjcase/motoko_hmac","last_synced_at":"2026-01-21T13:33:06.090Z","repository":{"id":279870861,"uuid":"940269030","full_name":"edjCase/motoko_hmac","owner":"edjCase","description":"Motoko library for HMAC generation and verification","archived":false,"fork":false,"pushed_at":"2025-08-01T16:39:47.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-01T18:41:22.050Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Motoko","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/edjCase.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2025-02-27T22:18:46.000Z","updated_at":"2025-08-01T16:39:51.000Z","dependencies_parsed_at":"2025-02-28T07:27:31.109Z","dependency_job_id":"b1e526dc-a88c-490b-81cc-3a3e42aae875","html_url":"https://github.com/edjCase/motoko_hmac","commit_stats":null,"previous_names":["edjcase/motoko_hmac"],"tags_count":0,"template":false,"template_full_name":"edjCase/motoko-library-template","purl":"pkg:github/edjCase/motoko_hmac","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edjCase%2Fmotoko_hmac","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edjCase%2Fmotoko_hmac/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edjCase%2Fmotoko_hmac/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edjCase%2Fmotoko_hmac/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edjCase","download_url":"https://codeload.github.com/edjCase/motoko_hmac/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edjCase%2Fmotoko_hmac/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28633762,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T04:47:28.174Z","status":"ssl_error","status_checked_at":"2026-01-21T04:47:22.943Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2025-04-14T03:54:36.310Z","updated_at":"2026-01-21T13:33:06.071Z","avatar_url":"https://github.com/edjCase.png","language":"Motoko","funding_links":["https://github.com/sponsors/herumi"],"categories":[],"sub_categories":[],"readme":"# HMAC library for Motoko\n\nA fork of [herumi/ecdsa-motoko](https://github.com/herumi/ecdsa-motoko), providing HMAC-256 implementation.\n\n## Original Project Credits\n\n- **Author**: MITSUNARI Shigeo (herumi@nifty.com)\n- **Original Repository**: https://github.com/herumi/ecdsa-motoko\n\n## License\n\nApache 2.0 with LLVM Exception\n\nThis project is a fork of the original ECDSA implementation by MITSUNARI Shigeo, maintaining the same license.\n\n## Installation\n\n```bash\nmops install hmac\n```\n\nTo setup MOPS package manage, follow the instructions from the\n[MOPS Site](https://j4mwm-bqaaa-aaaam-qajbq-cai.ic0.app/)\n\n## API Reference\n\n```motoko\n// Generate HMAC digest\npublic func generate(\n    key : [Nat8],              // Key for HMAC\n    msg : Iter.Iter\u003cNat8\u003e,     // Message to hash\n    algorithm : HashAlgorithm, // Hash algorithm to use\n) : Blob                       // Returns HMAC digest as Blob\n\n// Define available hash algorithms\npublic type HashAlgorithm = {\n    #sha256;                                  // Standard SHA-256\n    #custom : (Iter.Iter\u003cNat8\u003e) -\u003e Blob;      // Custom hash function\n};\n```\n\n## Changes from Original\n\nAdapted it to use for the MOPS package manager\n\n## Original Project\n\nIf you'd like to support the original project:\n\n- Original repository: https://github.com/herumi/ecdsa-motoko\n- [GitHub Sponsor](https://github.com/sponsors/herumi)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedjcase%2Fmotoko_hmac","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedjcase%2Fmotoko_hmac","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedjcase%2Fmotoko_hmac/lists"}