Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

create-hmac

Package Overview
Dependencies
Maintainers
5
Versions
11
Alerts
File Explorer

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.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
10M
increased by24.64%
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 May 2017

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc