{"id":19933951,"url":"https://github.com/k4m4/hash-detector","last_synced_at":"2025-05-03T12:30:23.660Z","repository":{"id":30989035,"uuid":"126383555","full_name":"k4m4/hash-detector","owner":"k4m4","description":"Retrieve an array of possible hash types corresponding to a given string.","archived":false,"fork":false,"pushed_at":"2023-01-05T16:13:49.000Z","size":304,"stargazers_count":17,"open_issues_count":5,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-27T22:37:18.095Z","etag":null,"topics":["detector","hash","hash-functions","identifier","md5","regex","sha"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/k4m4.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":"2018-03-22T19:10:43.000Z","updated_at":"2025-04-10T08:56:53.000Z","dependencies_parsed_at":"2023-01-14T18:06:50.314Z","dependency_job_id":null,"html_url":"https://github.com/k4m4/hash-detector","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k4m4%2Fhash-detector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k4m4%2Fhash-detector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k4m4%2Fhash-detector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k4m4%2Fhash-detector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/k4m4","download_url":"https://codeload.github.com/k4m4/hash-detector/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252190431,"owners_count":21708880,"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":["detector","hash","hash-functions","identifier","md5","regex","sha"],"created_at":"2024-11-12T23:15:24.832Z","updated_at":"2025-05-03T12:30:23.359Z","avatar_url":"https://github.com/k4m4.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hash-detector [![Build Status](https://travis-ci.org/k4m4/hash-detector.svg?branch=master)](https://travis-ci.org/k4m4/hash-detector)\n\n\u003e Retrieve an array of possible hash types corresponding to a given string.\n\n\n## Install\n\n```\n~ ❯❯❯ npm install hash-detector\n```\n\n\n## Usage\n\n```js\nconst hashDetect = require('hash-detector');\n\nhashDetect('1abcb33beeb811dca15f0ac3e47b88d9').then(hash =\u003e {\n  console.log(hash);\n  /* =\u003e [\n          'MD2',\n          'MD2',\n          'MD4',\n          'MD5',\n          'MD6',\n          'RIPEMD-180',\n          'Tiger-128',\n          'Snerfu-128',\n          'FNV-1a-128',\n          'MDC-2',\n          'HAVAL-128',\n        ] */\n});\n\nhashDetect('17413f944145f37dcaa9bc55d9a201a248a08aae').then(hash =\u003e {\n  console.log(hash);\n  /* =\u003e [\n          'SHA-0',\n          'SHA-1',\n          'RIPEMD',\n          'Tiger',\n          'HAVAL-160',\n          'HAS-160'\n        ] */\n});\n\nhashDetect('c3ab8ff13720e8ad9047dd39466b3c8974e592c2fa383d4a3960714caef0c4f2').then(hash =\u003e {\n  console.log(hash);\n  /* =\u003e [ \n          'SHA-256',\n          'SHA3-256',\n          'RIPEMD-256',\n          'GOST',\n          'Snerfu-256',\n          'Streebog-256',\n          'HAVAL-256'\n        ] */\n});\n```\n\n\n## API\n\n### hashDetect(hash, [options])\n\nReturns an array of possible hash types that the given string might correspond to.\n\n#### hash\n\nType: `string`\n\nString containing desired hash.\n\n#### options\n\n##### timeout\n\nType: `number`\n\nTimeout in milliseconds after which a request is considered failed. Default: `5000`.\n\n\n## Supported Hashes\n\n- `MD2`, `MD4`, `MD5`, `MD6`\n- `SHA-0`, `SHA-1`, `SHA-224`, `SHA-256`, `SHA-384`, `SHA-512`, `SHA3-224`, `SHA3-256`, `SHA3-384`, `SHA3-512`\n- `HAVAL-128`, `HAVAL-160`, `HAVAL-192`, `HAVAL-224`, `HAVAL-256`\n- `Tiger`, `Tiger-128`, `Tiger-192`\n- `RIPEMD`, `RIPEMD-180`, `RIPEMD-256`, `RIPEMD-320`\n- `Snerfu-128`, `Snerfu-256`\n- `Streebog-256`, `Streebog-512`\n- `FNV-1-32`, `FNV-1-64`\n- `FNV-1a-32`, `FNV-1a-52`, `FNV-1a-64`, `FNV-1a-1024`, `FNV-1a-128`, `FNV-1a-512`\n- `HAS-160`\n- `GOST`\n- `MDC-2`\n- `BLAKE-512`\n- `Whirpool`\n- `Spectral Hash`\n\n\n## Related\n\n- [hash-detector-cli](https://github.com/k4m4/hash-detector-cli) - CLI for this module\n\n\n## License\n\nMIT © [Nikolaos Kamarinakis](https://nikolaskama.me)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk4m4%2Fhash-detector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fk4m4%2Fhash-detector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk4m4%2Fhash-detector/lists"}