{"id":23676074,"url":"https://github.com/miklosn/node-pow-argon2","last_synced_at":"2025-07-22T11:36:21.843Z","repository":{"id":57311502,"uuid":"122720511","full_name":"miklosn/node-pow-argon2","owner":"miklosn","description":"An Argon2-based proof of work library for Node","archived":false,"fork":false,"pushed_at":"2020-04-09T00:28:24.000Z","size":490,"stargazers_count":1,"open_issues_count":7,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-28T09:13:48.061Z","etag":null,"topics":["powershell","proof"],"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/miklosn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-24T08:33:15.000Z","updated_at":"2024-11-06T14:23:11.000Z","dependencies_parsed_at":"2022-09-10T22:10:40.699Z","dependency_job_id":null,"html_url":"https://github.com/miklosn/node-pow-argon2","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/miklosn%2Fnode-pow-argon2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miklosn%2Fnode-pow-argon2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miklosn%2Fnode-pow-argon2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miklosn%2Fnode-pow-argon2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/miklosn","download_url":"https://codeload.github.com/miklosn/node-pow-argon2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239708987,"owners_count":19684168,"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":["powershell","proof"],"created_at":"2024-12-29T14:41:29.399Z","updated_at":"2025-02-19T18:16:41.654Z","avatar_url":"https://github.com/miklosn.png","language":"JavaScript","readme":"# node-pow-argon2\n\nAn Argon2-based proof of work library for Node\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/miklosn/node-pow-argon2.svg)](https://greenkeeper.io/) \n[![npm version](https://badge.fury.io/js/node-pow-argon2.svg)](https://badge.fury.io/js/node-pow-argon2)\n\n## Functions\n\n### solve\n\nSyntax:\n\n`hash = solve (input, options)`\n\nExample:\n\n```javascript\nimport * as pow from 'node-pow-argon2'\n\n...\n\nconst proof = await pow.solve(input, { complexity: 20 });\n```\n\nOptions:\n\nThe following options are available, along with their defaults:\n\n```javascript\n{\n    timeCost: 1\n    memoryCost: 14,   // MUST be at least 3\n    parallelism: 2,\n    complexity: 8     // MUST be at least 8\n}\n```\n\n### verify\n\nSyntax:\n\n`verify (input, proof, options)`\n\nExample:\n\n```javascript\nimport * as pow from 'node-pow-argon2'\n\n...\nconst proof = '$argon2d$v=19$m=512,t=3,p=1$x+qyCc4ZcX79+lATSyhEhQ$00056gSabWkJXAlsWK+QRJ3coP5aM8WhtQqP0Ci9VLA';\nconst input = 'x';\nconst result = await pow.verify(input, proof, { complexity: 20 });\n```\n\nOptions:\n\nThe following options are available, along with their defaults:\n\n```javascript\n{\n    timeCost: 1       // Proof must have been created with AT LEAST this value to not fail\n    memoryCost: 14,   // Proof must have been created with AT LEAST this value to not fail\n    parallelism: 2,   // Proof must have been created with EXACTLY this value to not fail\n    complexity: 8     // At least 8. Proof MUST have AT LEAST this complexity.\n}\n```\n\n## Benchmark\n\n```\npow#[t=1, m=15, p=2, c=8] x 0.88 ops/sec ±0.93% (106 runs sampled)\npow#[t=1, m=16, p=2, c=8] x 0.38 ops/sec ±1.02% (46 runs sampled)\npow#[t=1, m=17, p=2, c=8] x 0.20 ops/sec ±0.78% (24 runs sampled)\npow#[t=1, m=18, p=2, c=8] x 0.07 ops/sec ±1.52% (12 runs sampled)\npow#[t=1, m=19, p=2, c=8] x 0.03 ops/sec ±0.62% (4 runs sampled)\nverify#verify x 950.02 ops/sec ±0.09% (1899 runs sampled)\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiklosn%2Fnode-pow-argon2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmiklosn%2Fnode-pow-argon2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiklosn%2Fnode-pow-argon2/lists"}