{"id":16834827,"url":"https://github.com/dchest/tweetnacl-auth-js","last_synced_at":"2025-03-22T04:30:47.354Z","repository":{"id":19197990,"uuid":"22431364","full_name":"dchest/tweetnacl-auth-js","owner":"dchest","description":"HMAC-SHA-512-256 for TweetNacl.js","archived":false,"fork":false,"pushed_at":"2018-05-28T15:22:39.000Z","size":944,"stargazers_count":21,"open_issues_count":1,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-18T08:11:18.233Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/dchest.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":"2014-07-30T14:34:34.000Z","updated_at":"2024-02-16T00:07:47.000Z","dependencies_parsed_at":"2022-08-05T02:30:22.310Z","dependency_job_id":null,"html_url":"https://github.com/dchest/tweetnacl-auth-js","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dchest%2Ftweetnacl-auth-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dchest%2Ftweetnacl-auth-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dchest%2Ftweetnacl-auth-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dchest%2Ftweetnacl-auth-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dchest","download_url":"https://codeload.github.com/dchest/tweetnacl-auth-js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244907420,"owners_count":20529850,"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":[],"created_at":"2024-10-13T12:08:00.856Z","updated_at":"2025-03-22T04:30:46.898Z","avatar_url":"https://github.com/dchest.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"HMAC-SHA-512-256 for TweetNacl.js\n=================================\n\nImplementation of \u003chttp://nacl.cr.yp.to/auth.html\u003e\n(requires [TweetNaCl.js](https://github.com/dchest/tweetnacl-js)).\n\nWritten in 2014 by Dmitry Chestnykh. Public domain.\n\n[![Build Status](https://travis-ci.org/dchest/tweetnacl-auth-js.svg?branch=master)\n](https://travis-ci.org/dchest/tweetnacl-auth-js)\n\n\nInstallation\n------------\n\nVia NPM:\n\n    $ npm install tweetnacl-auth\n\nor just download `nacl-auth.js` or `nacl-auth.min.js` and include it after\nTweetNaCl.js:\n\n```html\n\u003cscript src=\"nacl.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"nacl-auth.min.js\"\u003e\u003c/script\u003e\n```\n\nIf using a CommonJS environment, such as Node.js, you can import it into `nacl`\nnamespace:\n\n```javascript\nvar nacl = require('tweetnacl');\nnacl.auth = require('tweetnacl-auth');\n```\n\n\nUsage\n-----\n\n\n### nacl.auth(message, key)\n\nAuthenticates the given message with the secret key.\n(In other words, returns HMAC-SHA-512-256 of the message under the key.)\n\n\n### nacl.auth.full(message, key)\n\nReturns HMAC-SHA-512 (without truncation) of the message under the key\n\n### nacl.auth.authLength = 32\n\nLength of authenticator returned by `nacl.auth`.\n\n### nacl.auth.authFullLength = 64\n\nLength of authenticator returned by `nacl.auth.full`.\n\n### nacl.auth.keyLength = 32\n\nLength of key for `nacl.auth` and `nacl.auth.full` (key length is currently not\nenforced).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdchest%2Ftweetnacl-auth-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdchest%2Ftweetnacl-auth-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdchest%2Ftweetnacl-auth-js/lists"}