0.0.7 • Published 3 years ago

@subatomiq/ntru v0.0.7

Weekly downloads
5
License
BSD-2-Clause
Repository
github
Last release
3 years ago

WASM wrapper for NTRU

Test and Build

import NTRU from "@subatomiq/ntru";

const run = async () => {
  const n = await NTRU();
  const kp = await n.keyPair();
  const message = "my message";
  const encrypted = await n.encryptString(message, kp.publicKey);
  const c = await n.decryptString(encrypted, kp.privateKey);
  console.log("Decrypted message == message: " + (c === message));
};

run();

EMScripten references

Rerferences

0.0.7

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago