{"id":20298994,"url":"https://github.com/ktonon/elm-crypto","last_synced_at":"2025-04-11T13:14:18.686Z","repository":{"id":62418702,"uuid":"100831224","full_name":"ktonon/elm-crypto","owner":"ktonon","description":"Cryptography with HMAC and SHA-2","archived":false,"fork":false,"pushed_at":"2023-01-05T13:42:28.000Z","size":8629,"stargazers_count":13,"open_issues_count":3,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T09:46:47.095Z","etag":null,"topics":["cryptography","elm","hmac","sha-2"],"latest_commit_sha":null,"homepage":"http://package.elm-lang.org/packages/ktonon/elm-crypto/latest","language":"Elm","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/ktonon.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}},"created_at":"2017-08-20T01:31:29.000Z","updated_at":"2023-01-05T08:26:06.000Z","dependencies_parsed_at":"2022-11-01T16:46:19.920Z","dependency_job_id":null,"html_url":"https://github.com/ktonon/elm-crypto","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ktonon%2Felm-crypto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ktonon%2Felm-crypto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ktonon%2Felm-crypto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ktonon%2Felm-crypto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ktonon","download_url":"https://codeload.github.com/ktonon/elm-crypto/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248406455,"owners_count":21098220,"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","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":["cryptography","elm","hmac","sha-2"],"created_at":"2024-11-14T16:13:05.422Z","updated_at":"2025-04-11T13:14:18.664Z","avatar_url":"https://github.com/ktonon.png","language":"Elm","funding_links":[],"categories":[],"sub_categories":[],"readme":"# elm-crypto\n\n[![live-demo](https://img.shields.io/badge/live-demo-blue.svg)](http://elm-crypto.betweenconcepts.com)\n[![elm-package](https://img.shields.io/badge/elm-1.1.2-blue.svg)](http://package.elm-lang.org/packages/ktonon/elm-crypto/latest)\n[![CircleCI](https://img.shields.io/circleci/project/github/ktonon/elm-crypto.svg)](https://circleci.com/gh/ktonon/elm-crypto)\n\nCryptography with HMAC and SHA.\n\nUse SHA-2 hashing functions directly:\n\n```elm\nimport Crypto.Hash\n\nCrypto.Hash.sha512 \"\"\n--\u003e \"cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e\"\n\nCrypto.Hash.sha224 \"The quick brown fox jumps over the lazy dog\"\n--\u003e \"730e109bd7a8a32b1cb9d9a09aa2325d2430587ddbc0c38bad911525\"\n```\n\nOr with HMAC:\n\n```elm\nimport Crypto.HMAC exposing (sha256, sha512)\n\nCrypto.HMAC.digest sha256 \"key\" \"The quick brown fox jumps over the lazy dog\"\n--\u003e \"f7bc83f430538424b13298e6aa6fb143ef4d59a14946175997479dbc2d1a3cd8\"\n\nCrypto.HMAC.digest sha512 \"key\" \"I ❤ cheese\"\n--\u003e \"a885c96140f95cb0b326306edfba49afbb5d38d3a7ed6ccfd67153429cbd3c56d0c514fcaa53b710bb7ba6cc0dfedfdb4d53795acbeb48eb23aa93e5ce9760dd\"\n```\n\n## Validation\n\nNot officially validated through [CAVP][], but unit tested against published test vectors:\n\n* SHA-2 functions are unit tested against the [FIPS 180-4][] test vectors (short and long messages).\n* HMAC with SHA-2 is unit tested against [RFC4231][].\n\n[CAVP]:http://csrc.nist.gov/groups/STM/cavp/\n[FIPS 180-4]:http://csrc.nist.gov/groups/STM/cavp/secure-hashing.html#shavs\n[RFC4231]:https://tools.ietf.org/rfc/rfc4231.txt\n[SHA-2]:https://en.wikipedia.org/wiki/SHA-2\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fktonon%2Felm-crypto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fktonon%2Felm-crypto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fktonon%2Felm-crypto/lists"}