{"id":16834806,"url":"https://github.com/dchest/gimli-js","last_synced_at":"2025-04-11T04:35:46.588Z","repository":{"id":66001777,"uuid":"105080678","full_name":"dchest/gimli-js","owner":"dchest","description":"Gimli permutation and hash implementation in JavaScript","archived":false,"fork":false,"pushed_at":"2017-10-19T13:25:46.000Z","size":7,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T02:43:35.158Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dchest.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}},"created_at":"2017-09-27T23:44:05.000Z","updated_at":"2025-02-11T15:37:44.000Z","dependencies_parsed_at":"2023-06-26T01:53:43.133Z","dependency_job_id":null,"html_url":"https://github.com/dchest/gimli-js","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dchest%2Fgimli-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dchest%2Fgimli-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dchest%2Fgimli-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dchest%2Fgimli-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dchest","download_url":"https://codeload.github.com/dchest/gimli-js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247704569,"owners_count":20982298,"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":[],"created_at":"2024-10-13T12:07:56.383Z","updated_at":"2025-04-11T04:35:46.580Z","avatar_url":"https://github.com/dchest.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Gimli in JavaScript\n===================\n\n\"Gimli is a 384-bit permutation designed to achieve high security with high\nperformance across a broad range of platforms.\"\n\nhttps://gimli.cr.yp.to/\n\nThis is a JavaScript implementation of the permutation\nand a sponge-based hash function (XOF).\n\nInstallation\n------------\n\n```\nnpm install gimli-crypto\n```\n\nBut it's really small, maybe just copy and paste?\n\nUsage\n-----\n\n### Permutation\n\n```js\nvar gimli = require('gimli-crypto').gimli;\nvar state = new Uint8Array(48);\n// state is 000000....0000\ngimli(state);\n// state is c4d867....302e\n```\n\n### Hash (eXtended Output Function)\n\n```js\nvar hash = require('gimli-crypto').hash;\n\n// 32-byte digest of [1,2,3,4,5,6] calculated in two steps.\nvar digest = hash()\n                .write(new Uint8Array([1,2,3]))\n                .write(new Uint8Array([4,5,6]))\n                .read();\n\n// 111-byte digest of [1,2,3]\nvar longDigest = new Uint8Array(111);\nvar data = new Uint8Array([1,2,3]);\nhash().write(data).read(longDigest);\n\n// XORing with output of XOF\nvar key = new Uint8Array([1,2,3]);\nvar text = new Uint8Array([4,5,6]);\nhash().write(key).read(text, true);\n// outputs Uint8Array [ 81, 10, 158 ]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdchest%2Fgimli-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdchest%2Fgimli-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdchest%2Fgimli-js/lists"}