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

dkim-signer

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dkim-signer

DKIM signing code extracted from mailcomposer

  • 0.2.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
175K
decreased by-0.44%
Maintainers
1
Weekly downloads
 
Created

What is dkim-signer?

The dkim-signer npm package is used to sign email messages with DomainKeys Identified Mail (DKIM). This helps in verifying the authenticity of the email and ensuring that it has not been tampered with during transit.

What are dkim-signer's main functionalities?

Sign Email

This feature allows you to sign an email message using DKIM. The `sign` function takes the email content and options including the domain name, key selector, and private key, and returns the signed email.

const dkim = require('dkim-signer');
const email = 'From: sender@example.com\r\nTo: receiver@example.com\r\nSubject: Test\r\n\r\nThis is a test email.';
const options = {
  domainName: 'example.com',
  keySelector: 'default',
  privateKey: '-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASC...\n-----END PRIVATE KEY-----'
};
const signedEmail = dkim.sign(email, options);
console.log(signedEmail);

Other packages similar to dkim-signer

Keywords

FAQs

Package last updated on 02 Mar 2016

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