Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

test.js 682B

1234567891011121314
  1. var ecc = require("./index.js");
  2. var key1 = new ecc.ECKey(ecc.ECCurves.secp160r1);
  3. var key2 = new ecc.ECKey(ecc.ECCurves.secp160r1);
  4. console.log(key1.deriveSharedSecret(key2));
  5. var key3 = new ecc.ECKey(ecc.ECCurves.secp160r1,key1.PrivateKey);
  6. var key4 = new ecc.ECKey(ecc.ECCurves.secp160r1,key2.PublicKey,true);
  7. console.log(key3.deriveSharedSecret(key4));
  8. var key1 = new ecc.ECKey(ecc.ECCurves.secp256r1);
  9. var key2 = new ecc.ECKey(ecc.ECCurves.secp256r1);
  10. console.log(key1.deriveSharedSecret(key2));
  11. var key3 = new ecc.ECKey(ecc.ECCurves.secp256r1,key1.PrivateKey);
  12. var key4 = new ecc.ECKey(ecc.ECCurves.secp256r1,key2.PublicKey,true);
  13. console.log(key3.deriveSharedSecret(key4));