{"id":35226936,"url":"https://github.com/cryptomator/siv-mode","last_synced_at":"2026-01-21T15:02:01.895Z","repository":{"id":2380282,"uuid":"46389193","full_name":"cryptomator/siv-mode","owner":"cryptomator","description":"RFC 5297 SIV mode of operation in Java","archived":false,"fork":false,"pushed_at":"2025-11-24T19:13:32.000Z","size":19488,"stargazers_count":48,"open_issues_count":0,"forks_count":13,"subscribers_count":11,"default_branch":"develop","last_synced_at":"2025-11-28T02:40:46.033Z","etag":null,"topics":["aead","aes","aes-siv","authenticated-encryption","cipher","cryptography","encryption","java","jep-238","jpms","rfc-5297","rfc5297","siv","siv-mode"],"latest_commit_sha":null,"homepage":"","language":"Java","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/cryptomator.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2015-11-18T02:17:50.000Z","updated_at":"2025-11-24T19:13:36.000Z","dependencies_parsed_at":"2023-07-05T16:15:34.944Z","dependency_job_id":"0e7ac042-e57a-418a-b943-2093f5d9ae1e","html_url":"https://github.com/cryptomator/siv-mode","commit_stats":null,"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"purl":"pkg:github/cryptomator/siv-mode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptomator%2Fsiv-mode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptomator%2Fsiv-mode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptomator%2Fsiv-mode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptomator%2Fsiv-mode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cryptomator","download_url":"https://codeload.github.com/cryptomator/siv-mode/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptomator%2Fsiv-mode/sbom","scorecard":{"id":310268,"data":{"date":"2025-08-11","repo":{"name":"github.com/cryptomator/siv-mode","commit":"2289dd82f6f3eaf46f32469af9913e051550868d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.8,"checks":[{"name":"Code-Review","score":1,"reason":"Found 2/19 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"1 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/cryptomator/siv-mode/build.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/cryptomator/siv-mode/build.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/cryptomator/siv-mode/build.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/cryptomator/siv-mode/build.yml/develop?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yml:54: update your workflow using https://app.stepsecurity.io/secureworkflow/cryptomator/siv-mode/build.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/cryptomator/siv-mode/codeql-analysis.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/cryptomator/siv-mode/codeql-analysis.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/cryptomator/siv-mode/codeql-analysis.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/cryptomator/siv-mode/codeql-analysis.yml/develop?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/dependency-check.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/cryptomator/siv-mode/dependency-check.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish-central.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/cryptomator/siv-mode/publish-central.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish-central.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/cryptomator/siv-mode/publish-central.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish-github.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/cryptomator/siv-mode/publish-github.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish-github.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/cryptomator/siv-mode/publish-github.yml/develop?enable=pin","Info:   0 out of  12 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql-analysis.yml:17","Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql-analysis.yml:18","Warn: no topLevel permission defined: .github/workflows/build.yml:1","Warn: no topLevel permission defined: .github/workflows/codeql-analysis.yml:1","Warn: no topLevel permission defined: .github/workflows/dependency-check.yml:1","Warn: no topLevel permission defined: .github/workflows/publish-central.yml:1","Warn: no topLevel permission defined: .github/workflows/publish-github.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/publish-central.yml:6"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":8,"reason":"SAST tool detected but not run on all commits","details":["Info: SAST configuration detected: CodeQL","Warn: 9 commits out of 14 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-17T23:04:02.540Z","repository_id":2380282,"created_at":"2025-08-17T23:04:02.540Z","updated_at":"2025-08-17T23:04:02.540Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28635123,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T14:50:40.221Z","status":"ssl_error","status_checked_at":"2026-01-21T14:48:59.225Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["aead","aes","aes-siv","authenticated-encryption","cipher","cryptography","encryption","java","jep-238","jpms","rfc-5297","rfc5297","siv","siv-mode"],"created_at":"2025-12-30T01:22:58.513Z","updated_at":"2026-01-21T15:02:01.890Z","avatar_url":"https://github.com/cryptomator.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Java RFC 5297 SIV Authenticated Encryption\n\n[![Build](https://github.com/cryptomator/siv-mode/workflows/Build/badge.svg)](https://github.com/cryptomator/siv-mode/actions?query=workflow%3ABuild)\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=cryptomator_siv-mode\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=cryptomator_siv-mode)\n[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=cryptomator_siv-mode\u0026metric=coverage)](https://sonarcloud.io/dashboard?id=cryptomator_siv-mode)\n[![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=cryptomator_siv-mode\u0026metric=vulnerabilities)](https://sonarcloud.io/dashboard?id=cryptomator_siv-mode)\n[![Maven Central](https://img.shields.io/maven-central/v/org.cryptomator/siv-mode.svg?maxAge=86400)](https://repo1.maven.org/maven2/org/cryptomator/siv-mode/)\n[![Javadocs](http://www.javadoc.io/badge/org.cryptomator/siv-mode.svg)](http://www.javadoc.io/doc/org.cryptomator/siv-mode)\n\n## Features\n- No dependencies\n- Passes official RFC 5297 test vectors\n- Constant time authentication\n- [Fast](https://github.com/cryptomator/siv-mode/issues/15)\n- Requires JDK 8+ or Android API Level 24+ (since version 1.4.0)\n\n## Audits\n- [Version 1.0.8 audit by Tim McLean](https://www.chosenplaintext.ca/publications/20161104-siv-mode-report.pdf) (Issues fixed with 1.1.0)\n- [Version 1.2.1 audit by Cure53](https://cryptomator.org/audits/2017-11-27%20crypto%20cure53.pdf)\n\n| Finding | Comment |\n|---|---|\n| 1u1-22-001 | The GPG key is used exclusively for the Maven repositories, is designed for signing only and is protected by a 30-character generated password (alphabet size: 96 chars). It is iterated and salted (SHA1 with 20971520 iterations). An offline attack is also very unattractive. Apart from that, this finding has no influence on the Tresor apps\u003csup\u003e[1](#footnote-tresor-apps)\u003c/sup\u003e. This was not known to Cure53 at the time of reporting. |\n| 1u1-22-002 | As per contract of `BlockCipher#processBlock(byte[], int, byte[], int)`, `JceAesBlockCipher` is designed to encrypt or decrypt just **one single block** at a time. JCE doesn't allow us to retrieve the plain cipher without a mode, so we explicitly request `AES/ECB/NoPadding`. This is by design, because we want the plain cipher for a single 128 bit block without any mode. We're not actually using ECB mode. |\n\n## Usage\n```java\nSivMode AES_SIV = new SivMode(key);\n\npublic void encrypt() {\n  byte[] encrypted = AES_SIV.encrypt(\"hello world\".getBytes());\n  byte[] decrypted = AES_SIV.decrypt(encrypted);\n}\n\npublic void encryptWithAssociatedData() {\n  byte[] encrypted = AES_SIV.encrypt(\"hello world\".getBytes(), \"associated\".getBytes(), \"data\".getBytes());\n  byte[] decrypted = AES_SIV.decrypt(encrypted, \"associated\".getBytes(), \"data\".getBytes());\n}\n```\n\n## Maven integration\n\n```xml\n\u003cdependencies\u003e\n  \u003cdependency\u003e\n    \u003cgroupId\u003eorg.cryptomator\u003c/groupId\u003e\n    \u003cartifactId\u003esiv-mode\u003c/artifactId\u003e\n    \u003cversion\u003e2.0.0\u003c/version\u003e\n  \u003c/dependency\u003e\n\u003c/dependencies\u003e\n```\n\n## Java Module\n\nFrom version 1.3.2 onwards this library is an explicit module with the name `org.cryptomator.siv`. You can use it by adding the following line to your `module-info.java`.\n\n```java\nrequires org.cryptomator.siv;\n```\n\n## Reproducible Builds\n\nStarting with version 1.5.0, you can reproduce the build by:\n1. Ensuring to use the same JDK version as our CI builds (see [build.yml](https://github.com/cryptomator/siv-mode/blob/1.6.1/.github/workflows/build.yml#L16-L17)).\n2. Checkout the tagged version you want to build.\n3. Run `./mvnw clean package artifact:compare -DskipTests`\n\n## License\nDistributed under the MIT X Consortium license. See the LICENSE file for more info.\n\n---\n\n\u003csup\u003e\u003ca name=\"footnote-tresor-apps\"\u003e1\u003c/a\u003e\u003c/sup\u003e The Cure53 pentesting was performed during the development of the apps for 1\u00261 Mail \u0026 Media GmbH.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptomator%2Fsiv-mode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcryptomator%2Fsiv-mode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptomator%2Fsiv-mode/lists"}