
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
tweetnacl-auth
Advanced tools
Implementation of http://nacl.cr.yp.to/auth.html (requires TweetNaCl.js).
Written in 2014 by Dmitry Chestnykh. Public domain.
Via NPM:
$ npm install tweetnacl-auth
Via Bower:
$ bower install tweetnacl-auth
or just download nacl-auth.js
or nacl-auth.min.js
and include it after
TweetNaCl.js:
<script src="nacl.min.js"></script>
<script src="nacl-auth.min.js"></script>
If using a CommonJS environment, such as Node.js, you can import it into nacl
namespace:
var nacl = require('tweetnacl');
nacl.auth = require('tweetnacl-auth');
Authenticates the given message with the secret key. (In other words, returns HMAC-SHA-512-256 of the message under the key.)
Returns HMAC-SHA-512 (without truncation) of the message under the key
Length of authenticator returned by nacl.auth
.
Length of authenticator returned by nacl.auth.full
.
Length of key for nacl.auth
and nacl.auth.full
(key length is currently not
enforced).
FAQs
HMAC-SHA-512-256 based on TweetNaCl.js
The npm package tweetnacl-auth receives a total of 769 weekly downloads. As such, tweetnacl-auth popularity was classified as not popular.
We found that tweetnacl-auth demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.