EXPERIMENTAL: node-libhydrogen-binding
libhydrogen native bindings for Node.js
Work in progress! This package brings the easy-to-use encryption library libhydrogen to Node.js.
Usage example
Install node-libhydrogen-binding as any other package:
npm install node-libhydrogen-binding
You can use it for encrypting and decrypting payload:
const hydrogen = ;hydrogen; const msg = "message";const key = hydrogen;const msgId = 0;const context = "testtest"; // encryptconst ciphertext = hydrogen; // decryptconst plaintext = hydrogen
API Documentation
Building
git submodule update --init
npm install --global --production windows-build-tools
(windows only)npm run build
License
ISC, same as libhydrogen.