{"id":15674421,"url":"https://github.com/zkat/srisum-rs","last_synced_at":"2025-05-06T22:05:28.454Z","repository":{"id":34931166,"uuid":"192238721","full_name":"zkat/srisum-rs","owner":"zkat","description":"Compute and check subresource integrity digests.","archived":false,"fork":false,"pushed_at":"2023-10-18T18:49:50.000Z","size":124,"stargazers_count":16,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-17T17:17:48.700Z","etag":null,"topics":["checksum","digest","shasum","subresource-integrity"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/srisum","language":"Rust","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/zkat.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","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},"funding":{"github":["zkat"]}},"created_at":"2019-06-16T21:32:00.000Z","updated_at":"2025-04-15T15:12:44.000Z","dependencies_parsed_at":"2024-10-23T12:03:22.040Z","dependency_job_id":null,"html_url":"https://github.com/zkat/srisum-rs","commit_stats":{"total_commits":52,"total_committers":1,"mean_commits":52.0,"dds":0.0,"last_synced_commit":"911cb906ec42793aba805cd3d04b0e0e7f6a4a27"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkat%2Fsrisum-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkat%2Fsrisum-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkat%2Fsrisum-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkat%2Fsrisum-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zkat","download_url":"https://codeload.github.com/zkat/srisum-rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252776573,"owners_count":21802467,"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":["checksum","digest","shasum","subresource-integrity"],"created_at":"2024-10-03T15:44:27.466Z","updated_at":"2025-05-06T22:05:28.417Z","avatar_url":"https://github.com/zkat.png","language":"Rust","funding_links":["https://github.com/sponsors/zkat"],"categories":[],"sub_categories":[],"readme":"# srisum(1) -- compute and check subresource integrity digests\n\n## SYNOPSIS\n\n`$ srisum [OPTION]... [FILE]...`\n\n## EXAMPLES\n\n### Computing SRI Digests\n\nFor a single file:\n\n```\n$ srisum styles.css \u003e styles.css.sri\n```\n\nFor multiple different files:\n\n```\n$ srisum styles.css index.js package.json bundle.js \u003e app.sri\n```\n\nFrom `stdin`:\n\n```\n$ cat styles.css | srisum -a sha1\nsha1-hmkHOZdrfLUVOqpAgryfC8XNGtE -\n```\n\nSpecify algorithms to generate:\n\n```\n$ srisum styles.css index.js --algorithms sha512 sha256 sha1 \u003e styles.css.sri\n```\n\n### Checking Integrity\n\nPassing checksum file as an argument:\n\n```\n$ srisum -c styles.css.sri\nstyles.css: OK (sha512)\n```\n\nPassing multiple checksum files:\n\n```\n$ srisum -c styles.css.sri js-files.sri\nstyles.css: OK (sha512)\nindex.js: OK (sha512)\nlib/util.js: OK (sha512)\n```\n\nChecksum file from `stdin`:\n\n```\n$ cat styles.css.sri | srisum -c\nstyles.css: OK (sha512)\n```\n\nChecksum `stdin` itself:\n\n```\n$ echo \"hello\" | srisum \u003e stdin.sri\n$ echo \"hello\" | srisum -c stdin.sri\n-: OK (sha512)\n```\n\n## DESCRIPTION\n\nPrint or check Subresource Integrity digests.\n\nSpec: https://w3c.github.io/webappsec/specs/subresourceintegrity/\n\n`srisum`'s API is based on the `SHA[N]SUM(1)` family of unix utilities.\n\nWith no `FILE` or when `FILE` is `-`, read standard input.\n\n`-a, --algorithms [ALGO]...` - hash algorithms to generate for the `FILE`s\n\n`-c, --check` - read SRI sums from the `FILE`s and check them\n\n`-d, --digest-only` - only output the digest for each `FILE`, without filenames\n\n`--help` - display help and exit\n\n`--version` - output version information and exit\n\n## The following options are useful only when verifying integrity:\n\n`--ignore-missing` - don't fail or report status for missing files\n\n`--quiet` - don't print OK for each successfully verified file\n\n`--status` - don't output anything, status code shows success\n\n`-w, --warn` - warn about improperly formatted SRI lines\n\nWhen checking, the input should be a former output of this program. The default mode is to print line with space-separated SRI digests, one more space, and a name for each FILE.\n\nStrict mode, enabled with `--strict`, will entirely ignore digests (in input and output) that fail all of the following conditions:\n\n- `algorithms` must be one or more of: `sha1`, `sha256`, `sha384`, `sha512`\n- digest strings must be valid `RFC4648` `Base64` strings.\n\n## AUTHOR\n\nWritten by [Kat Marchán (@zkat)](https://github.com/zkat)\n\n## CONTRIBUTING\n\nThe srisum team enthusiastically welcomes contributions and project\nparticipation! There's a bunch of things you can do if you want to contribute!\nThe [Contributor Guide](CONTRIBUTING.md) has all the information you need for\neverything from reporting bugs to contributing entire new features. Please\ndon't hesitate to jump in if you'd like to, or even ask us questions if\nsomething isn't clear.\n\nAll participants and maintainers in this project are expected to follow [Code\nof Conduct](CODE_OF_CONDUCT.md), and just generally be excellent to each\nother.\n\nHappy hacking!\n\n## LICENSE\n\nThis project is licensed under [Apache-2.0](LICENSE-APACHE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzkat%2Fsrisum-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzkat%2Fsrisum-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzkat%2Fsrisum-rs/lists"}