{"id":19533183,"url":"https://github.com/monk-afk/hasher","last_synced_at":"2025-07-31T13:40:04.097Z","repository":{"id":262171879,"uuid":"879380980","full_name":"monk-afk/hasher","owner":"monk-afk","description":"Generates seeds and hashes for collision testing","archived":false,"fork":false,"pushed_at":"2024-11-18T12:12:09.000Z","size":40,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-08T17:22:46.148Z","etag":null,"topics":["brute-force","collision-checking","lua","sha256-hash"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/monk-afk.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":"2024-10-27T18:48:05.000Z","updated_at":"2024-11-18T12:12:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"c50aebd9-00c6-48e9-9238-70ed693d01c3","html_url":"https://github.com/monk-afk/hasher","commit_stats":null,"previous_names":["monk-afk/hasher"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monk-afk%2Fhasher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monk-afk%2Fhasher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monk-afk%2Fhasher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monk-afk%2Fhasher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/monk-afk","download_url":"https://codeload.github.com/monk-afk/hasher/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240788774,"owners_count":19857694,"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":["brute-force","collision-checking","lua","sha256-hash"],"created_at":"2024-11-11T02:05:49.115Z","updated_at":"2025-02-26T03:41:46.011Z","avatar_url":"https://github.com/monk-afk.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"```lua\n--==[[=======================]]==--\n--==[[ hasher          0.1.3 ]]==--\n--==[[ Copyright © 2024 monk ]]==--\n--==[[ MIT License           ]]==--\n--==[[=======================]]==--\n```\n\nHash Collision Testing\n---\n\n### Process Details:\n\n- generate a 64 character hexadecimal seed\n\n- increment each byte by one while \n\n- slide each frame by one position in the string\n\n- repeat until the sequence would repeat\n\n- this creates 16352 strings from one seed\n\n- hash the seeds using sha256\n\n- encode the hash-seed pairs into binary\n\n- file by the first 3-characters of the hash\n\n- binary data is cached 2MB before writing to disk\n\n- \n\n___\n\n### Contents:\n\n  - init.lua    - main function process\n  - stats.lua   - runtime statistics\n  - signal.lua  - to gracefully exit\n  - sha256.lua  - SHA-256, MIT, Copyright © 2014 Roberto Ierusalimschy\n  - data/       - binary files storage\n  - search.lua  - search for generated hash/seed pair\n\n___\n\n**Requires** Lua \u003e= 5.3 to use string.pack and bitwise\n\n**Run**\n\n    $ lua init.lua\n    \u003e  0:00:39:04 | 23724032h 10117h/s | 724.0MB 316.17KB/s\n\n**Search for a previously generated hash:**\n\n  *Positive match gives the seed:*\n\n    $ lua search.lua 838abfeef24a3ba3a8060316c4f7ccfb9bd02de1c0b0b9e96eae6d0c1fe55215\n    \u003e Hash: 838abfeef24a3ba3a8060316c4f7ccfb9bd02de1c0b0b9e96eae6d0c1fe55215\n    \u003e Seed: 632b66842869b92f43780337ab07c17184e927aeb51ab896018ce0a13c9f1676\n\n  *Closest matches given if no exact matches are found:*\n\n    $ lua search.lua 2b0e26916d47f47de882532706085dfac9e151fb06ba15715a3a7b44272e6fc9\n    \u003e Matches\tPattern\n    \u003e 270     2b0e\n    \u003e 17      2b0e2\n    \u003e 4       2b0e26\n\n____\n\n### Changelog\n  - 0.1.3\n    - restored 0.1.1 due to finding duplicate hashes in the new genesis function\n    - add utils/verify.lua to check integrity of data\n\n  - 0.1.2\n    - fixed incorrect string.pack integer type\n    - new_genesis makes seed from previous hash+salt to minimize entropy usage\n\n  - 0.1.1\n    - scrapping the child processes to allow gradual improvements\n    - added sliding window technique to seed generation\n    - add a killswitch file to signal terminate instead of ctrl+c interrupt\n\n  - 0.0.3\n    - fix issue with having too many open files at once\n\n  - 0.0.2\n    - bugfix for parent process to not stop on the first pipe it opens\n    - add a separate sub-process to handle file writes\n    - changed sha256 library to use bitwise\n\n  - 0.0.1\n    - initial commit included child processes and a parent writer process\n\n\n```lua\n==============================================================================\nMIT License                                                                   \n                                                                              \nCopyright © 2024  monk                                                        \n                                                                              \nPermission is hereby granted, free of charge, to any person obtaining a copy  \nof this software and associated documentation files (the \"Software\"), to deal \nin the Software without restriction, including without limitation the rights  \nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell     \ncopies of the Software, and to permit persons to whom the Software is         \nfurnished to do so, subject to the following conditions:                      \n                                                                              \nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.                               \n                                                                              \nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR    \nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,      \nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE   \nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER        \nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, \nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE \nSOFTWARE.                                                                     \n==============================================================================\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonk-afk%2Fhasher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmonk-afk%2Fhasher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonk-afk%2Fhasher/lists"}