公钥可以用于解密(验证)使用私钥加密(签名)的文档吗? [英] Can public key be used for decryption (verification) of the document encrypted (signed) using private key

查看:68
本文介绍了公钥可以用于解密(验证)使用私钥加密(签名)的文档吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在许多网站和教科书中,他们说公钥始终用于加密,而私钥则用于解密.在RSA算法中,这是正确的.但是在数字签名中,发送者签名(我相信这有点类似于加密,如果这是错误的,请纠正我)使用其私钥的文档,并且接收者使用文档中包含的公钥对其进行解密(验证).因此,可以概括地说,公钥/私钥可以用于根据我们的应用程序进行加密或解密?还是这里涉及其他一些概念?

In many websites and textbooks they say that public key is always used for encryption and private key is used for decryption.In RSA algorithm ,this is true.But in digital signatures,the sender signs(I believe that this is a somewhat similar to encryption,please correct me if this was wrong)the document using his private key and receiver uses the public key contained in the document to decrypt(verify) it.So,can this be generalized that public /private keys maybe either used for encryption or decryption based on our application? Or is there some other concept involved here?

推荐答案

数字签名和加密使用类似的加密操作(不等于),但它们具有不同的用途:

Digital signature and encryption use similar cryptographic operations (not equals) but they have a different purpose:

  • 加密:隐藏数据

数字签名:数据的完整性和签名者的身份

digital signature: integrity of the data and identity of the signatory

回答您的问题,数字签名操作使用私钥签名"数据.不会以任何方式对其进行加密(不会隐藏内容).公钥用于验证签名是否与原始数据和签名者相对应.

Answering your question, a digital signature operation "signs" the data with the private key. It is not encrypted in any way (the content is not hidden). The public key is used to verify that the signature corresponds with the original data and the signatory.

这篇关于公钥可以用于解密(验证)使用私钥加密(签名)的文档吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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