git.schokokeks.org
Repositories
Help
Report an Issue
fs-words.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
6e9c872
Branches
Tags
develop-client_server
master
typescript
fs-words.git
server
lib
node_modules
ecc-jsbn
test.js
[add] server:lib:node_modules
Christian Fraß
commited
6e9c872
at 2021-03-08 23:52:07
test.js
Blame
History
Raw
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));