Spaces:
Runtime error
Runtime error
Download cors-proxy/node_modules/ecc-jsbn/test.js from kaab4321/NarrativeFlow: direct link, hf CLI and curl.
- Browser
- Download file 682 Bytes
-
https://huggingface.co/spaces/kaab4321/NarrativeFlow/resolve/main/cors-proxy/node_modules/ecc-jsbn/test.js
- Command line
-
hf download hf://spaces/kaab4321/NarrativeFlow/cors-proxy/node_modules/ecc-jsbn/test.js
-
curl -L -o test.js https://huggingface.co/spaces/kaab4321/NarrativeFlow/resolve/main/cors-proxy/node_modules/ecc-jsbn/test.js
682 Bytes
| var ecc = require("./index.js"); | |
| var key1 = new ecc.ECKey(ecc.ECCurves.secp160r1); | |
| var key2 = new ecc.ECKey(ecc.ECCurves.secp160r1); | |
| console.log(key1.deriveSharedSecret(key2)); | |
| var key3 = new ecc.ECKey(ecc.ECCurves.secp160r1,key1.PrivateKey); | |
| var key4 = new ecc.ECKey(ecc.ECCurves.secp160r1,key2.PublicKey,true); | |
| console.log(key3.deriveSharedSecret(key4)); | |
| var key1 = new ecc.ECKey(ecc.ECCurves.secp256r1); | |
| var key2 = new ecc.ECKey(ecc.ECCurves.secp256r1); | |
| console.log(key1.deriveSharedSecret(key2)); | |
| var key3 = new ecc.ECKey(ecc.ECCurves.secp256r1,key1.PrivateKey); | |
| var key4 = new ecc.ECKey(ecc.ECCurves.secp256r1,key2.PublicKey,true); | |
| console.log(key3.deriveSharedSecret(key4)); | |