{"id":37029726,"url":"https://github.com/purejava/tweetnacl-java","last_synced_at":"2026-01-14T03:35:17.248Z","repository":{"id":45641699,"uuid":"326368384","full_name":"purejava/tweetnacl-java","owner":"purejava","description":"TweetNaCl in Java - a port of TweetNaCl-js","archived":false,"fork":true,"pushed_at":"2025-09-06T14:38:28.000Z","size":251,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-06T16:25:28.238Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://instantwebp2p.github.io/tweetnacl-java","language":"Java","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"InstantWebP2P/tweetnacl-java","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/purejava.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"purejava","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2021-01-03T09:16:42.000Z","updated_at":"2025-09-06T14:38:26.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/purejava/tweetnacl-java","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/purejava/tweetnacl-java","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purejava%2Ftweetnacl-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purejava%2Ftweetnacl-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purejava%2Ftweetnacl-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purejava%2Ftweetnacl-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/purejava","download_url":"https://codeload.github.com/purejava/tweetnacl-java/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purejava%2Ftweetnacl-java/sbom","scorecard":{"id":749896,"data":{"date":"2025-08-11","repo":{"name":"github.com/purejava/tweetnacl-java","commit":"96ae4d27fd48c5d918b26c753dcc83ebf4be7c73"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.1,"checks":[{"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":"Code-Review","score":0,"reason":"Found 0/4 approved changesets -- score normalized to 0","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":"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":"Maintained","score":2,"reason":"3 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/build_and_release.yml:1","Warn: no topLevel permission defined: .github/workflows/codeql-analysis.yml:1","Warn: no topLevel permission defined: .github/workflows/release_to_maven.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":"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_and_release.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/purejava/tweetnacl-java/build_and_release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build_and_release.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/purejava/tweetnacl-java/build_and_release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build_and_release.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/purejava/tweetnacl-java/build_and_release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build_and_release.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/purejava/tweetnacl-java/build_and_release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/purejava/tweetnacl-java/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/purejava/tweetnacl-java/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/purejava/tweetnacl-java/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/purejava/tweetnacl-java/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/purejava/tweetnacl-java/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release_to_maven.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/purejava/tweetnacl-java/release_to_maven.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release_to_maven.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/purejava/tweetnacl-java/release_to_maven.yml/main?enable=pin","Info:   0 out of  11 GitHub-owned 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":"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":"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":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"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":"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":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"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":"SAST","score":7,"reason":"SAST tool detected but not run on all commits","details":["Info: SAST configuration detected: CodeQL","Warn: 0 commits out of 26 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-22T19:59:18.406Z","repository_id":45641699,"created_at":"2025-08-22T19:59:18.406Z","updated_at":"2025-08-22T19:59:18.406Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408843,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"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":[],"created_at":"2026-01-14T03:35:16.590Z","updated_at":"2026-01-14T03:35:17.239Z","avatar_url":"https://github.com/purejava.png","language":"Java","funding_links":["https://github.com/sponsors/purejava"],"categories":[],"sub_categories":[],"readme":"TweetNacl in Java: port of [tweetnacl-js](https://github.com/dchest/tweetnacl-js)\n====================================================================\n\n[![Build and deploy releases to GitHub](https://github.com/purejava/tweetnacl-java/workflows/Build%20and%20deploy%20releases%20to%20GitHub/badge.svg)](https://github.com/purejava/tweetnacl-java/actions?query=workflow%3A%22Build+and+deploy+releases+to+GitHub%22)\n[![Maven Central](https://img.shields.io/maven-central/v/org.purejava/tweetnacl-java.svg?label=Maven%20Central)](https://central.sonatype.com/search?q=tweetnacl-java\u0026smo=true\u0026namespace=org.purejava)\n[![License](https://img.shields.io/github/license/purejava/tweetnacl-java.svg)](https://github.com/purejava/tweetnacl-java/blob/master/LICENSE)\n\n### API/Usage\n\n### Suggest always use [TweetNaclFast](https://github.com/InstantWebP2P/tweetnacl-java/blob/master/src/main/java/com/iwebpp/crypto/TweetNaclFast.java) implementation\n\n#### Public key authenticated encryption\n\n* get key pair: Box.KeyPair kp = Box.keyPair(), kp = Box.keyPair_fromSecretKey(sk)\n* new Box object: Box box = new Box(theirPublicKey, mySecretKey, Nonce);\n* encryption: cipher = box.box(message);\n* decryption: message = box.open(cipher);\n* Nonce MUST be unique for ever message passed between same peers\n\nAs an alternative, the nonce can be omitted from the Box() call, and passed in the box and open calls, like:\n\n* byte [] nonce = new byte[nonceLength], randombytes(theNonce, nonceLength);\n* Box.KeyPair kp = Box.keyPair(), kp = Box.keyPair_fromSecretKey(sk)\n* Box box = new Box(theirPublicKey, mySecretKey);\n* encryption: cipher = box.box(message, nonce);\n* decryption: message = box.open(cipher, nonce);\n\n\n\n#### Secret key authenticated encryption\n\n* get shared key: crypto random, what you have\n* new SecretBox object: SecretBox sbox = new SecretBox(sharedKey, Nonce);\n* encryption: cipher = sbox.box(message);\n* decryption: message = sbox.open(cipher);\n* Nonce MUST be unique for ever message passed between same peers\n\nAs an alternative, the nonce can be omitted from the SecretBox() call, and passed in the box and open calls, like:\n\n* byte [] nonce = new byte[nonceLength], randombytes(theNonce, nonceLength);\n* SecretBox sbox = new SecretBox(sharedKey);\n* cipher = sbox.box(message, nonce);\n* decryption: message = sbox.open(cipher, nonce);\n\n\n### Signature\n\n* get key pair: Signature.KeyPair kp = Signature.keyPair(), kp = Signature.keyPair_fromSecretKey(sk);\n* new Signature object: Signature sig = new Signature(theirPublicKey, mySecretKey);\n* sign: signedMessage = sig.sign(message);\n* verify: message = sig.open(signedMessage);\n* Nonce MUST be unique for ever message passed between same peers\n\n\n### Hash\n\n* generate SHA-512: byte [] tag = Hash.sha512(message);\n\n\n### Refer to com.iwebpp.crypto.tests for details\n\n### About Random generation \n\n* the library uses java.security.SecureRandom for key generation\n* you can always use the library to generate key, or use a Crypto Random like java.security.SecureRandom\n\n\n### Testing\n\nIn top directory:\n\n    $ mvn test\n\n\n### Support us\n\n* Welcome contributing on document, codes, tests and issues\n\n\n\n### License MIT\n\n* Copyright(2014-present) by tom zhou, appnet.link@gmail.com\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurejava%2Ftweetnacl-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpurejava%2Ftweetnacl-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurejava%2Ftweetnacl-java/lists"}