{"id":18268568,"url":"https://github.com/viral32111/hash","last_synced_at":"2025-07-04T07:07:04.902Z","repository":{"id":133672557,"uuid":"201979552","full_name":"viral32111/hash","owner":"viral32111","description":"A module for Garry's Mod that provides common hash functions.","archived":false,"fork":false,"pushed_at":"2023-01-02T22:12:39.000Z","size":37431,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-09T02:47:12.625Z","etag":null,"topics":["crypto","garrysmod","hash","module"],"latest_commit_sha":null,"homepage":"https://cryptopp.com","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/viral32111.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2019-08-12T17:39:43.000Z","updated_at":"2024-07-25T00:56:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"1055acdb-c81e-41db-9707-a5d02153c50d","html_url":"https://github.com/viral32111/hash","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/viral32111/hash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viral32111%2Fhash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viral32111%2Fhash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viral32111%2Fhash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viral32111%2Fhash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/viral32111","download_url":"https://codeload.github.com/viral32111/hash/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viral32111%2Fhash/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263464200,"owners_count":23470475,"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":["crypto","garrysmod","hash","module"],"created_at":"2024-11-05T11:32:12.876Z","updated_at":"2025-07-04T07:07:04.836Z","avatar_url":"https://github.com/viral32111.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hash\n\nThis is a module for Garry's Mod that provides a handful of common hashing and checksum functions to use on strings and files, for addon developers to use in Lua.\n\nEven though this module is intended to be used serverside, downloads for both client and server environments are available.\n\n**NOTE**: There are now native string hash functions for [MD5](https://wiki.facepunch.com/gmod/util.MD5), [SHA1](https://wiki.facepunch.com/gmod/util.SHA1) and [SHA256](https://wiki.facepunch.com/gmod/util.SHA256) as of the [July 2021 Patch](https://store.steampowered.com/news/app/4000/view/2961661843692383385) ([#1077](https://github.com/Facepunch/garrysmod-requests/issues/1077)).\n\n## Documentation\n\nTo use this module in an addon, call [`require( \"hash\" )`](https://wiki.facepunch.com/gmod/Global.require) at the beginning of the Lua file(s).\n\nThe functions this module exposes to the Lua environment are documented below.\n\n* TO-DO: `hash.md5( string )`\n* TO-DO: `hash.sha1( string )`\n* TO-DO: `hash.sha2( string text, number bits = 256 )` (`bits` can be 224, 256, 384, or 512)\n* TO-DO: `hash.sha3( string text, number bits = 256 )` (`bits` can be 224, 256, 384, or 512)\n* TO-DO: `hash.blake2( string, boolean x64 = false )` (if `x64` is true then BLAKE2b is used, otherwise BLAKE2s)\n\n## Building\n\nFollow the steps documented below to build this module yourself.\n\n1. Download the [Garry's Mod module base header files](https://github.com/Facepunch/gmod-module-base/tree/development/include) into the `gmod-module-base` directory at the root of the project.\n2. Download and compile [Crypto++ library](https://cryptopp.com/), then add its header and library files to the linker.\n3. Open the CMake project in your preferred IDE (e.g. Visual Studio), then build it.\n\n## License\n\nCopyright (C) 2019-2023 [viral32111](https://viral32111.com).\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU Affero General Public License as\npublished by the Free Software Foundation, either version 3 of the\nLicense, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\nGNU Affero General Public License for more details.\n\nYou should have received a copy of the GNU Affero General Public License\nalong with this program. If not, see https://www.gnu.org/licenses.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviral32111%2Fhash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fviral32111%2Fhash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviral32111%2Fhash/lists"}