Node.js/crypto:修订间差异

来自康健生活
Kangkk​(留言 | 贡献)
Kangkk​(留言 | 贡献)
第2行: 第2行:
在互联网安全通信协议 SSL/TLS 中,最为常见的两种密钥交换方式为 RSA 算法和 DH 算法。
在互联网安全通信协议 SSL/TLS 中,最为常见的两种密钥交换方式为 RSA 算法和 DH 算法。


== Elliptic Curve Cryptography ==
Elliptic Curve Cryptography(ECC,椭圆曲线加密)。
== Diffie–Hellman ==
== Diffie–Hellman ==
迪菲-赫尔曼(Diffie–Hellman,DH) 密钥交换算法<ref>wikipedia. Diffie–Hellman key exchange[OL]. https://en.wikipedia.org/wiki/Diffie–Hellman_key_exchange.</ref>以及公钥密码思想来源于《密码学的新方向》<ref>Whitfield Diffie,Martin E. Hellman. New Directions in Cryptography[OL]. https://www.cs.jhu.edu/~rubin/courses/sp03/papers/diffie.hellman.pdf</ref>。在实际的应用过程中,更多的使用 DHE、ECDHE 等变体{{Qm|需要考证}},DHE(Diffie-Hellman Ephemeral)、ECDH(Elliptic-curve Diffie–Hellman)、ECDHE(Elliptic-curve Diffie–Hellman Ephemeral,椭圆曲线加密) 提供了更好的前向保密<ref>Vincent Bernat. TLS & Perfect Forward Secrecy[OL],2011-11-28. https://vincent.bernat.ch/en/blog/2011-ssl-perfect-forward-secrecy.</ref>。
迪菲-赫尔曼(Diffie–Hellman,DH) 密钥交换算法<ref>wikipedia. Diffie–Hellman key exchange[OL]. https://en.wikipedia.org/wiki/Diffie–Hellman_key_exchange.</ref>以及公钥密码思想来源于《密码学的新方向》<ref>Whitfield Diffie,Martin E. Hellman. New Directions in Cryptography[OL]. https://www.cs.jhu.edu/~rubin/courses/sp03/papers/diffie.hellman.pdf</ref>。在实际的应用过程中,更多的使用 DHE、ECDHE 等变体{{Qm|需要考证}},DHE(Diffie-Hellman Ephemeral)、ECDH(Elliptic-curve Diffie–Hellman)、ECDHE(Elliptic-curve Diffie–Hellman Ephemeral) 提供了更好的前向保密<ref>Vincent Bernat. TLS & Perfect Forward Secrecy[OL],2011-11-28. https://vincent.bernat.ch/en/blog/2011-ssl-perfect-forward-secrecy.</ref>。


DH 交换算法需要四个重要的参数,分别为:
DH 交换算法需要四个重要的参数,分别为: