0.4.0 • Published 3 years ago

secure-e2ee v0.4.0

Weekly downloads
506
License
MIT
Repository
-
Last release
3 years ago

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";
0.3.0

3 years ago

0.4.0

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.1

4 years ago

0.1.0

4 years ago