我们如何以加密形式将密码发送到asp.net中的给定电子邮件的代码 [英] code of how we send the password to given email in asp.net in encrypt form

查看:68
本文介绍了我们如何以加密形式将密码发送到asp.net中的给定电子邮件的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们如何以加密形式将密码发送给asp.net中给定电子邮件的代码

code of how we send the password to given email in asp.net in encrypt form

推荐答案

将密码发送给给定电子邮件...以加密形式"将达不到加密的目的.

如今,这不是完成加密的方式.令人惊讶的是,对于从未彼此熟悉且从未进行过任何初步安排的人们来说,可以使用开放的通信线路交换秘密消息.即使某个人从一开始就对其进行监视,即使该人捕获了所有已传输的密钥,也无法解密该消息.

大多数人尝试使用逻辑并得出结论,认为这是不可能的.他们犯了一个细微的逻辑错误,如果有人读过公钥密码学的想法,就可以解决.通过阅读以下内容可以理解: http://en.wikipedia.org/wiki/Public-key_cryptography [ ^ ].

只需关注Alice和Bob之间的通信,您就会明白.

这种算法也称为非对称算法.

反过来,这些都是基于单向功能的思想,请参见 http://en.wikipedia.org/wiki/单向功能 [^ ].

众所周知的 RSA算法( http://en.wikipedia.org/wiki/RSA [ ^ ])是单向的主要候选人之一功能,是最流行的加密方法之一.还有很多.

现在,这一切都在.NET中很好地实现了.参见:
http://msdn.microsoft.com/en-us/library/system. security.cryptography.asymmetricalgorithm.aspx [ ^ ],
http://msdn.microsoft.com/en-us/library/system.security. cryptography.aspx [^ ].

—SA
"Send the password to given email… in encrypt form" would defeat the purpose of encryption.

This is not how encrypting is done these days. Amazingly enough, to people never familiar to each other and never having any preliminary arrangement can exchange secret messages using open communication line; and even if some person spied on them from the very beginning will not be able to decrypt the messages, even if this person capture all keys transmitted.

Most people try to use logic and make a conclusion that this is impossible. They do a subtle logical mistake which can be fixed if one reads about the idea of public-key cryptography. It can be understood by reading this: http://en.wikipedia.org/wiki/Public-key_cryptography[^].

Just follow the communications between Alice and Bob and you will get the idea.

Such algorithms are also called asymmetric algorithms.

In turn, this is all based on the idea of one-way function, see http://en.wikipedia.org/wiki/One-way_function[^].

Well-known RSA algorithm (http://en.wikipedia.org/wiki/RSA[^]) is one of the major candidates for a one-way function and is one of the most popular encryption methods. There is a number of others.

Now, this is all well implemented in .NET. See:
http://msdn.microsoft.com/en-us/library/system.security.cryptography.asymmetricalgorithm.aspx[^],
http://msdn.microsoft.com/en-us/library/system.security.cryptography.aspx[^].

—SA


这篇关于我们如何以加密形式将密码发送到asp.net中的给定电子邮件的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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