From d680aaf9ec801d66324cf4231397e8b9134578a2 Mon Sep 17 00:00:00 2001 From: poing Date: Mon, 22 Jan 2024 18:16:44 +0900 Subject: [PATCH] fix readme text --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index af078a8..3d3c9d5 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,17 @@ Combing of shares is not working *yet*... To use this project in it's current state **and for testing**, `Node` is required on the system. `Node` is always required for testing. It's used to run the `JavaScript` in the local environment. +## JavaScript Wrapper + +The `JavaScript` wrapper **is not** intended to allow subsequent commands. It spawns an *indvidual* `subprocess` of `Node` for each function called. + +```diff +import js2pysecrets + +js2pysecrets.setRNG('testRandom') +- js2pysecrets.share('FFFF', 6, 3) # This will NOT use 'testRandom' +``` + ## Examples Divide a 512-bit key, expressed in hexadecimal form, into 10 shares, requiring that any 5 of them are necessary to reconstruct the original key: