@abhedyam/abhedya-wasm
v1.0.31
Published
WASM Bindings for Abhedya: Sanskrit-Encoded PQC
Readme
Abhedya WASM
WebAssembly bindings for Abhedya: Post-Quantum Sanskrit Cryptography.
Usage
import init, { AbhedyaWasm } from "./abhedya_wasm.js";
async function run() {
await init();
const abhedya = new AbhedyaWasm();
abhedya.keygen();
const plain = new TextEncoder().encode("Hello World");
const encrypted = abhedya.encrypt(plain, false); // Standard Mode
console.log("Encrypted bytes:", encrypted);
const decrypted = abhedya.decrypt(encrypted);
console.log("Decrypted:", new TextDecoder().decode(decrypted));
}
run();