node-ec-pem:使用`crypto.createECDH`生成的密钥启用`crypto.sign`和`crypto.verify`

时间:2024-05-31 11:00:02
【文件属性】:

文件名称:node-ec-pem:使用`crypto.createECDH`生成的密钥启用`crypto.sign`和`crypto.verify`

文件大小:37KB

文件格式:ZIP

更新时间:2024-05-31 11:00:02

JavaScript

ec_pem 使用crypto.createECDH生成的密钥启用crypto.sign和crypto.verify 用 const crypto = require ( 'crypto' ) ; const ec_pem = require ( 'ec-pem' ) ; let alice_pem_private , alice_pem_public ; { let curve = 'secp521r1' let alice = crypto . createECDH ( curve ) ; alice . generateKeys ( ) ; alice = ec_pem ( alice , curve ) ; alice_pem_private = alice . encodePrivateKey ( ) ; // console.log(alice_pem


【文件预览】:
node-ec-pem-master
----package.json(721B)
----test()
--------testCerts.js(10KB)
--------testCurveDetection.js(1011B)
--------testSignatureMatrix.js(4KB)
--------manual()
--------testAssumeSamePrototype.js(647B)
--------testKeyExchange.js(4KB)
--------testReadmeExample.js(1KB)
--------testSignatureSimple.js(2KB)
----local_cert.js(1KB)
----LICENSE(732B)
----package-lock.json(10KB)
----README.markdown(3KB)
----ec_pem.js(18KB)
----cert.js(10KB)
----.gitignore(19B)
----yarn.lock(7KB)

网友评论