{"id":36532708,"url":"https://github.com/ericlagergren/lwcrypto","last_synced_at":"2026-01-12T03:03:03.603Z","repository":{"id":40457016,"uuid":"357411391","full_name":"ericlagergren/lwcrypto","owner":"ericlagergren","description":"NIST Lightweight Cryptography finalists","archived":false,"fork":false,"pushed_at":"2022-05-07T05:03:50.000Z","size":165,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-21T19:06:06.411Z","etag":null,"topics":["ascon","ascon-family","go","golang","lightweight-cryptography","nist"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ericlagergren.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}},"created_at":"2021-04-13T03:22:04.000Z","updated_at":"2023-11-22T17:22:36.000Z","dependencies_parsed_at":"2022-08-09T21:01:14.518Z","dependency_job_id":null,"html_url":"https://github.com/ericlagergren/lwcrypto","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ericlagergren/lwcrypto","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericlagergren%2Flwcrypto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericlagergren%2Flwcrypto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericlagergren%2Flwcrypto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericlagergren%2Flwcrypto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericlagergren","download_url":"https://codeload.github.com/ericlagergren/lwcrypto/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericlagergren%2Flwcrypto/sbom","scorecard":{"id":380469,"data":{"date":"2025-08-11","repo":{"name":"github.com/ericlagergren/lwcrypto","commit":"7b11afcfc2179b9aeff73894fbada146be3a72f5"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.7,"checks":[{"name":"Maintained","score":0,"reason":"0 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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/go.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/go.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/ericlagergren/lwcrypto/go.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/ericlagergren/lwcrypto/go.yml/main?enable=pin","Info:   0 out of   2 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":"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":"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":"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 1/23 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":"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: BSD 3-Clause \"New\" or \"Revised\" 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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 17 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"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2022-0493 / GHSA-p782-xgp4-8hr8"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T15:19:37.212Z","repository_id":40457016,"created_at":"2025-08-18T15:19:37.212Z","updated_at":"2025-08-18T15:19:37.212Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28332848,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T00:36:25.062Z","status":"online","status_checked_at":"2026-01-12T02:00:08.677Z","response_time":98,"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":["ascon","ascon-family","go","golang","lightweight-cryptography","nist"],"created_at":"2026-01-12T03:03:03.016Z","updated_at":"2026-01-12T03:03:03.594Z","avatar_url":"https://github.com/ericlagergren.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lwcrypto\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://pkg.go.dev/github.com/ericlagergren/lwcrypto\"\u003e\u003cimg src=\"https://pkg.go.dev/badge/github.com/ericlagergren/lwcrypto.svg\" alt=\"Go Reference\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003eNIST Lightweight Cryptography\u003c/p\u003e\n\nThis module implements NIST Lightweight Cryptography finalists.\n\n## Installation\n\nEach implementation can be installed using Go modules. For\nexample:\n\n```bash\ngo get github.com/ericlagergren/lwcrypto@latest\n```\n\n## Usage\n\nThe APIs conform to Go's `crypto/cipher` package. Note that the\nfollowing example is not a substitute for reading the package's\ndocumentation.\n\n```go\npackage main\n\nimport (\n\t\"crypto/rand\"\n\n\t\"github.com/ericlagergren/lwcrypto/ascon\"\n)\n\nfunc main() {\n\t// Keys must be KeySize bytes long. Anything else is an\n\t// error.\n\tkey := make([]byte, ascon.KeySize)\n\tif _, err := rand.Read(key); err != nil {\n\t\t// rand.Read failing is almost always catastrophic.\n\t\tpanic(err)\n\t}\n\n\t// Nonces must be NonceSize bytes long. Anything else is an\n\t// error.\n\tnonce := make([]byte, ascon.NonceSize)\n\tif _, err := rand.Read(nonce); err != nil {\n\t\t// rand.Read failing is almost always catastrophic.\n\t\tpanic(err)\n\t}\n\n\taead, err := ascon.New128(key)\n\tif err != nil {\n\t\t// New128 (and New128a) should only return an error if\n\t\t// the key is not KeySize bytes long.\n\t\tpanic(err)\n\t}\n\n\t// Plaintext is encrypted and authenticated.\n\tplaintext := []byte(\"example plaintext\")\n\n\t// Additional data is authenticated alongside the plaintext,\n\t// but not included in the ciphertext.\n\tadditionalData := []byte(\"example additional authenticated data\")\n\n\t// Encrypt and authenticate |plaintext| and authenticate\n\t// |additionalData|.\n\tciphertext := aead.Seal(nil, nonce, plaintext, additionalData)\n\n\t// Decrypt and authentiate |ciphertext| and authenticate\n\t// |additionalData|.\n\tplaintext, err = aead.Open(nil, nonce, ciphertext, additionalData)\n\tif err != nil {\n\t\t// Authentication failed. Either the ciphertext or\n\t\t// additionalData (or both) were invalid for the \n\t\t// (key, nonce) pair.\n\t\t[...]\n\t}\n}\n```\n\n## Security\n\n### Disclosure\n\nThis project uses full disclosure. If you find a security bug in\nan implementation, please e-mail me or create a GitHub issue.\n\n### Disclaimer\n\nYou should only use cryptography libraries that have been\nreviewed by cryptographers or cryptography engineers. While I am\na cryptography engineer, I'm not your cryptography engineer, and\nI have not had this project reviewed by any other cryptographers.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericlagergren%2Flwcrypto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericlagergren%2Flwcrypto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericlagergren%2Flwcrypto/lists"}