具有对称密钥的 RSA

发布于 2024-12-01 06:58:45 字数 122 浏览 1 评论 0原文

我的客户要求我使用带有对称密钥的 RSA 来加密一些数据。我对 RSA 的了解只是它用作非对称密钥算法。我搜索过类似的东西但没有找到。那么有可能吗?如果是,是否有它的 java 实现(JCE 提供者)?

提前致谢。

I have been asked by my client to encrypt some data using RSA with symmetric keys. All I know about RSA is that it is used as an asymmetric key algorithm. I have searched for anything like that and find none. So is it possible? If yes, is there an java implementation (JCE provider) of it?

Thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

久伴你 2024-12-08 06:58:45

带有对称密钥的 RSA 意味着 - 使用 RSA 建立对称密钥并随后使用该对称密钥。这就是 SSL 的工作原理...

RSA with symmetric key means - using RSA to establish a symmetric key and use that symmetric key afterwards. That is how SSL works...

可爱咩 2024-12-08 06:58:45

您的客户端可能指的是基于 RSA 的密钥传输协议,使用 RSA 非对称密钥来“包装”对称密码的对称密钥,该对称密码将用于加密两个通信方之间的进一步消息。有关 RSA-KEM 的示例,请参阅 RFC5990。正如 Prabath 已经指出的那样,RSA 也常用于 SSL/TLS 中来交换对称密钥。

如果这不是他的意思,那么我会轻轻地忽略他,并尝试说服他,他应该将安全决策留给对材料有更好理解的人,因为不存在所谓的“安全决策”。对称 RSA 密钥。

What your client probably means is a Key Transport Protocol based on RSA, using the RSA asymmetric keys to "wrap" a symmetric key for a symmetric Cipher that would be used to encrypt further messages between the two communication parties. See RFC5990 for the example of RSA-KEM. As Prabath already pointed out, RSA is also commonly used in SSL/TLS for exchanging a symmetric key.

If that's not what he means, then I would gently ignore him and try to convince him that he should leave security decisions to people that have a better understanding of the material, because there is no such thing as a symmetric RSA key.

迷路的信 2024-12-08 06:58:45

不,不是。建议他们 AES 就是他们想要的。

No it's not. Suggest them that AES is what they want.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文