{"id":25391520,"url":"https://github.com/ya2ir/sha1","last_synced_at":"2025-10-08T12:38:28.730Z","repository":{"id":276982414,"uuid":"930942235","full_name":"YA2IR/sha1","owner":"YA2IR","description":"SHA-1 in Golang","archived":false,"fork":false,"pushed_at":"2025-02-11T14:00:54.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-09T21:48:46.727Z","etag":null,"topics":["cryptography","hashing-algorithm","hashing-algorithms","sha-1","sha-1-hash"],"latest_commit_sha":null,"homepage":"","language":"Go","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/YA2IR.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":"2025-02-11T13:19:30.000Z","updated_at":"2025-02-11T14:03:14.000Z","dependencies_parsed_at":"2025-02-11T14:26:39.380Z","dependency_job_id":"ce04e875-a65d-45d3-9a1e-3fc18b3e84f9","html_url":"https://github.com/YA2IR/sha1","commit_stats":null,"previous_names":["ya2ir/sha1"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/YA2IR/sha1","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YA2IR%2Fsha1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YA2IR%2Fsha1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YA2IR%2Fsha1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YA2IR%2Fsha1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/YA2IR","download_url":"https://codeload.github.com/YA2IR/sha1/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YA2IR%2Fsha1/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278946983,"owners_count":26073725,"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","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cryptography","hashing-algorithm","hashing-algorithms","sha-1","sha-1-hash"],"created_at":"2025-02-15T15:55:43.328Z","updated_at":"2025-10-08T12:38:28.696Z","avatar_url":"https://github.com/YA2IR.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SHA1 Implementation in Go\nThis is an implementation of [SHA-1](https://en.wikipedia.org/wiki/SHA-1) in Go. It follows the [FIPS 180-1](https://nvlpubs.nist.gov/nistpubs/Legacy/FIPS/fipspub180-1.pdf) standard.\n\n## Features\n-  Interactive REPL for experimentation (see [As a REPL](#as-a-repl))\n## Limitations\n- This implementation is strictly for educational purposes. SHA-1 is considered cryptographically broken and should **not** be used in production.\n## Usage\n\n### As a Library\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/YA2IR/sha1\"\n)\n\nfunc main() {\n\ts := sha1.NewSHA1()\n\n\tmessage1 := \"hello world\"\n\tmessage2 := \"hello\"\n\n\tdigest := s.Hash([]byte(message1))\n\tfmt.Printf(\"SHA1 of \\\"%s\\\" = %x\\n\", message1, digest)\n\n\tdigest = s.Hash([]byte(message2))\n\tfmt.Printf(\"SHA1 of \\\"%s\\\" = %x\\n\", message2, digest)\n\n}\n```\noutput:\n```\nSHA1 of \"hello world\" = 2aae6c35c94fcfb415dbe95f408b9ce91ee846ed\nSHA1 of \"hello\" = aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d\n```\n### As a REPL\nClone this repo:\n```bash\ngit clone https://github.com/YA2IR/sha1.git\ncd sha1\n```\nThen you can run:\n```bash\ngo run cmd/sha1/main.go\n```\n```\nWelcome to SHA1 REPL, write 'exit' to exit\n\u003e test\nSHA1: a94a8fe5ccb19ba61c4c0873d391e987982fbbd3\n\u003e test2\nSHA1: 109f4b3c50d7b0df729d299bc6f8e9ef9066971f\n\u003e exit\n\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fya2ir%2Fsha1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fya2ir%2Fsha1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fya2ir%2Fsha1/lists"}