🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

create-hmac

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-hmac

node style hmacs in the browser

1.1.7
latest
100

Supply Chain Security

100

Vulnerability

70

Quality

82

Maintenance

100

License

Version published
Weekly downloads
10M
6.39%
Maintainers
5
Weekly downloads
 
Created

What is create-hmac?

The create-hmac package is a Node.js module that allows you to create HMAC (Hash-based Message Authentication Code) digests using a variety of hashing algorithms. HMAC is a mechanism for message authentication using cryptographic hash functions. This package can be used to generate secure, tamper-proof codes for message verification and authentication purposes.

What are create-hmac's main functionalities?

Creating HMAC Digests

This code demonstrates how to create an HMAC digest using the SHA-256 hashing algorithm and a secret key. The 'update' method is used to input the message, and the 'digest' method outputs the HMAC digest in hexadecimal format.

const createHmac = require('create-hmac');
const hmac = createHmac('sha256', 'secret-key').update('message').digest('hex');
console.log(hmac);

Other packages similar to create-hmac

Keywords

FAQs

Package last updated on 11 Apr 2018

Did you know?

Socket

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.

Install

Related posts