{"id":42409987,"url":"https://github.com/twystd/tweetnacl-go","last_synced_at":"2026-01-28T01:44:08.365Z","repository":{"id":82020663,"uuid":"55160625","full_name":"twystd/tweetnacl-go","owner":"twystd","description":"TweetNaCl crypto library port to the Go language","archived":false,"fork":false,"pushed_at":"2021-04-13T20:53:27.000Z","size":857,"stargazers_count":8,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-19T02:09:21.877Z","etag":null,"topics":["cryptography","tweetnacl"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/twystd.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-03-31T15:17:38.000Z","updated_at":"2023-05-10T04:54:11.000Z","dependencies_parsed_at":"2023-11-02T04:00:48.238Z","dependency_job_id":null,"html_url":"https://github.com/twystd/tweetnacl-go","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/twystd/tweetnacl-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twystd%2Ftweetnacl-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twystd%2Ftweetnacl-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twystd%2Ftweetnacl-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twystd%2Ftweetnacl-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/twystd","download_url":"https://codeload.github.com/twystd/tweetnacl-go/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twystd%2Ftweetnacl-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28832523,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T23:29:49.665Z","status":"ssl_error","status_checked_at":"2026-01-27T23:25:58.379Z","response_time":168,"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":["cryptography","tweetnacl"],"created_at":"2026-01-28T01:44:07.674Z","updated_at":"2026-01-28T01:44:08.360Z","avatar_url":"https://github.com/twystd.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"tweetnacl-go: version 1.01.0 \n\n# TweetNaCl - GO port\n\n*tweetnacl-go* is a port of Dan Bernstein's [TweetNaCl][tweetnacl] \"crypto library in a 100 tweets\" code\nto the Go language. It is implemented as a wrapper around the original code to preserve the design and timing\ncharacteristics of the original implementation.\n\nVersion Info\n------------\ntweetnacl: 20140427\n\n- v1.00.0:  Initial release for `tweetnacl-go`\n- v1.01.0:  Updated with support Go modules and Microsoft Windows CryptoApi\n\nDisclaimer\n----------\nThe Go wrapper has been kept as 'thin' as possible to avoid compromising the careful design\nand coding of the original TweetNaCl implementation. However, cryptography being what it is, \nthe wrapper may have (entirely inadvertently) introduced non-obvious vulnerabilities (for \ninstance [How to zero a buffer][daemonology]). So ....\n\n**USE ENTIRELY AT YOUR OWN RISK !**\n\nNotes\n-----\n1. There is an existing port of TweetNaCl to Go ([go-tweetnacl][go-tweetnacl]) which reimplements the C code\n   in Go.\n2. The cgo FFI doesn't handle zero length byte arrays particularly elegantly (see discussion at\n   [Passing zero length Go byte array to a C function][golang-nuts]). The conversion to a (\\*C.uchar) pointer\n   has been abstracted into a convenience function _makePtr_, which includes a commented out version\n   that returns nil for a zero length array if you prefer not to use the esoteric 'unsafe' version.\n\nTODO\n----\n1. Fork go-tweetnacl and merge code\n\nReferences\n----------\n\n1.  [TweetNaCl][tweetnacl]\n2.  [TweetNaCl: A crypto library in 100 tweets] [tweetnacl-pdf]\n3.  [Cryptography in NaCl] [nacl-pdf]\n4.  [TweetNaCl: How cr.yp.to’s developers got carried away by the carry bit][carrybitbug]\n5.  [NaCl: Cryptography for the Internet][slides]\n6.  [On NaCl: Undefined Behaviour][ciawof]\n7.  [Safe, Efficient, and Portable Rotate in C/C++][regehr]\n8.  [How to zero a buffer][daemonology]\n9.  [Zeroing buffers is insufficient][daemonology2]\n10. [How to zero a buffer: Erratum][daemonology3]\n11. [go-tweetnacl][go-tweetnacl]\n12. [On the Impending Crypto Monoculture][gutmann]\n13. [Passing zero length Go byte array to a C function][golang-nuts]\n14. [NaCl](http://wiki.ucis.nl/NaCl/Windows)\n15. [libsodium:randombytes_random](https://doc.libsodium.org/generating_random_data)\n16. [Microsoft Windows:rand_s](https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/rand-s)\n17. [Stackoverflow:Equivalent of /dev/urandom on Windows?](https://stackoverflow.com/questions/22049203/equivalent-of-dev-urandom-on-windows)\n\n[tweetnacl]:     http://tweetnacl.cr.yp.to\n[tweetnacl-pdf]: http://tweetnacl.cr.yp.to/tweetnacl-20131229.pdf\n[nacl-pdf]:      http://cr.yp.to/highspeed/naclcrypto-20090310.pdf\n[carrybitbug]:   http://blog.skylable.com/2014/05/tweetnacl-carrybit-bug\n[slides]:        http://cryptojedi.org/peter/data/tenerife-20130121.pdf\n[ciawof]:        http://coderinaworldofcode.blogspot.com/2014/03/on-nacl.html\n[regehr]:        http://blog.regehr.org/archives/1063\n[daemonology]:   http://www.daemonology.net/blog/2014-09-04-how-to-zero-a-buffer.html\n[daemonology2]:  http://www.daemonology.net/blog/2014-09-06-zeroing-buffers-is-insufficient.html\n[daemonology3]:  http://www.daemonology.net/blog/2014-09-05-erratum.html\n[go-tweetnacl]:  https://github.com/keybase/go-tweetnacl\n[gutmann]:       http://www.metzdowd.com/pipermail/cryptography/2016-March/028824.html\n[golang-nuts]:   https://groups.google.com/forum/#!topic/golang-nuts/NNBdjztWquo\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwystd%2Ftweetnacl-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftwystd%2Ftweetnacl-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwystd%2Ftweetnacl-go/lists"}