Socket
Socket
Sign inDemoInstall

secure-e2ee

Package Overview
Dependencies
5
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    secure-e2ee

Secure end-to-end-encryption


Version published
Weekly downloads
1.9K
decreased by-18.9%
Maintainers
1
Install size
97.6 kB
Created
Weekly downloads
 

Readme

Source

secure-e2ee

Secure end-to-end-encryption for Node.js.

Usage

import Encryptor from "secure-e2ee";

const encryptor = new Encryptor(
    // encryption secret
    // needs to be 32 characters long
    "e761daf732c272ee0db9bd71f49c66a0",

    // old encryption secrets
    // that have been rotated out.
    // (optional)
    [
        "e761daf732c272ee0db9bd71f49c66a0",
        "c272732c66aee0db9bd71f49e761daf0",
    ]
);

const cipher = encryptor.encrypt("I ❤️ Blitz.js");

// send over the wire

const original = encryptor.decrypt(cipher);

// original === "I ❤️ Blitz.js";

FAQs

Last updated on 05 Jan 2021

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc