公钥密码学是如何工作的 [英] how does public key cryptography work

查看:29
本文介绍了公钥密码学是如何工作的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对 RSA 的了解是,Alice 可以创建一个公钥和一个私钥组合,然后将公钥发送给 Bob.然后 Bob 可以使用公钥加密某些东西,Alice 将使用公钥和私钥组合来解密它.

What I understand about RSA is that Alice can create a public and a private key combination, and then send the public key over to Bob. And then afterward Bob can encrypt something using the public key and Alice will use the public and private key combo to decrypt it.

但是,Alice 如何加密要发送给 Bob 的东西?Bob 将如何解密它?我问是因为我很好奇当我登录我的银行网站时,我的银行如何向我发送我的在线报表等数据.我的浏览器如何解密这些信息?我没有私钥.

However, how can Alice encrypt something to be sent over to Bob? How would Bob decrypt it? I ask because I'm curious how when I log onto my banking site, my bank sends me data such as my online statements. How does my browser decrypt that information? I don't have the private key.

推荐答案

很简单,你需要一把钥匙.

Simple, you need a key.

SSL/TLS 通过在连接设置期间创建对称会话密钥来解决此问题.公钥加密用于建立此会话密钥,然后用于双向数据通信.阅读有关 TLS 的更多信息

SSL/TLS solves this problem by creating a symmetric session key during the connection setup. The public key cryptography is used to establish this session key, which is then used for bi-directional data communication. Read more about TLS

这篇关于公钥密码学是如何工作的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆