{"id":26779583,"url":"https://github.com/chrisgreg/sri-gen","last_synced_at":"2025-10-05T06:57:51.367Z","repository":{"id":57707328,"uuid":"90394119","full_name":"chrisgreg/sri-gen","owner":"chrisgreg","description":"Golang SRI Hash Generator","archived":false,"fork":false,"pushed_at":"2017-05-07T17:52:43.000Z","size":5,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-18T15:02:41.286Z","etag":null,"topics":["golang","hash","sri","tool"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chrisgreg.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":"2017-05-05T16:07:37.000Z","updated_at":"2023-03-04T11:49:25.000Z","dependencies_parsed_at":"2022-09-26T21:20:51.470Z","dependency_job_id":null,"html_url":"https://github.com/chrisgreg/sri-gen","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chrisgreg/sri-gen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisgreg%2Fsri-gen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisgreg%2Fsri-gen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisgreg%2Fsri-gen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisgreg%2Fsri-gen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chrisgreg","download_url":"https://codeload.github.com/chrisgreg/sri-gen/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisgreg%2Fsri-gen/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278420211,"owners_count":25983814,"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-05T02:00:06.059Z","response_time":54,"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":["golang","hash","sri","tool"],"created_at":"2025-03-29T06:17:54.347Z","updated_at":"2025-10-05T06:57:51.339Z","avatar_url":"https://github.com/chrisgreg.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sri-gen\n\n### What?\nA multi-threaded Golang SRI hash generator\n\n### What's SRI?\nSRI is a new [W3C specification](https://www.w3.org/TR/SRI/) that allows web developers to ensure that resources hosted on third-party servers have not been tampered with. Use of SRI is recommended as a best-practice, whenever libraries are loaded from a third-party source.\n\n[More about SRI on MDN](https://developer.mozilla.org/docs/Web/Security/Subresource_Integrity)\n\n### Which browsers support SRI?\nAt the time of writing, Chrome \u0026 Firefox.\n\nCheck out [Can I Use](http://caniuse.com/#feat=subresource-integrity) for more information\n\n## Usage\n`$ sri-gen -hash(256|384|512) [file paths]` will output a result.txt file with resultant hashes ready for SRI with their respective file names\n\n## Example\n\n`$ sri-gen -hash256 ./example.js ./example2.js`\n\nwill output\n\n```\nFile\tHash\n\n./example.js\tsha256-e9b3814bb4959f2749876624f0a9b04ade95f9faff092d673e00f18cd0c503c2\n./example2.js\tsha256-a1cc3b3fe09a7aa98c6c8251d2dd7d48a2ddb9f1fec12a3040a5b66c7a6f1171\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrisgreg%2Fsri-gen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchrisgreg%2Fsri-gen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrisgreg%2Fsri-gen/lists"}