Node.js bindings for liboqs (Open Quantum Safe) through liboqs-cpp.
const {
Random, // Utilities for generating secure random numbers
KEMS, // Information on supported key encapsulation mechanisms
KeyEncapsulation, // Key encapsulation class and methods
Sigs, // Information on supported signature algorithms
Signature // Signature class and methods
} = require("liboqs-node");
- Install dependencies:
On Ubuntu:
sudo apt install astyle cmake gcc ninja-build libssl-dev python3-pytest python3-pytest-xdist unzip xsltproc doxygen graphviz python3-yaml valgrind
- Clone the Repository
git clone https://github.com/sneh2102/liboqs-node-wrapper.git
- Run the commands
cd liboqs-node-wrapper
npm i
npm run prep
npm run build:all
- Execute the example code
node example_kems.js