Skip to content

Repository files navigation

secure-e2ee

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

Usage

importEncryptorfrom"secure-e2ee";constencryptor=newEncryptor(// encryption secret// needs to be 32 characters long"e761daf732c272ee0db9bd71f49c66a0",// old encryption secrets// that have been rotated out.// (optional)["e761daf732c272ee0db9bd71f49c66a0","c272732c66aee0db9bd71f49e761daf0",]);constcipher=encryptor.encrypt("I ❤️ Blitz.js");// send over the wireconstoriginal=encryptor.decrypt(cipher);// original === "I ❤️ Blitz.js";

About

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

Topics

Resources

Stars

31 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages