网页 js 之 crypto.subtle 的 ECDH 怎么用?

软件和网站开发以及相关技术探讨
回复
saintthor
帖子: 107
注册时间: 2014-05-30 15:45
系统: 14.04

网页 js 之 crypto.subtle 的 ECDH 怎么用?

#1

帖子 saintthor » 2017-11-03 13:35

请大神赐我一段实际通信中交换密钥的代码。

找到的示例代码都是生成 ECDH keys 的,但生成之后怎么用?
头像
astolia
论坛版主
帖子: 6386
注册时间: 2008-09-18 13:11

Re: 网页 js 之 crypto.subtle 的 ECDH 怎么用?

#2

帖子 astolia » 2017-11-03 14:35

公钥发给对方,私钥自己留着,拿到对方的公钥后,算出对称加密密钥
https://www.cnblogs.com/fishou/p/4206451.html
saintthor
帖子: 107
注册时间: 2014-05-30 15:45
系统: 14.04

Re: 网页 js 之 crypto.subtle 的 ECDH 怎么用?

#3

帖子 saintthor » 2017-11-03 22:33

astolia 写了:公钥发给对方,私钥自己留着,拿到对方的公钥后,算出对称加密密钥
https://www.cnblogs.com/fishou/p/4206451.html
谢谢。我找到代码了。
回复