通过网络加密/解密 [英] Encryption/Decryption through network

查看:91
本文介绍了通过网络加密/解密的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的,
Web应用程序 中,如果我有两个函数,则第一个是Encrypt,第二个是Decrypt,以使Encryp函数用于加密数据,而Decrypt函数用于解密数据,但问题是:如何在数据通过网络之前对其进行加密,以及如何在将数据接收到用户时将其解密.换句话说,我想对数据进行加密->通过互联网将其发送给用户,并在查看给用户之前对其进行解密,这是为了允许数据在网络中通过加密.

最好的问候.

Dears,
in WEB APPLICATION if i have two functions first is Encrypt and the second is Decrypt such that function Encryp used to encryp the data and function Decrypt used to decrypt the data but the question is: How can i encryp the data before it pass through the network and how can i decrypt it when it receaved to the user.in other way i want to encryp data --> send it to user through internet and decrypt it before viewing it to the user this is to allow for the data to pass encrypted in the network.

Best regards.

推荐答案

如果您想加密服务器输出,则没有机制可以做到这一点.只是您必须使用SSL,即https://协议.

但是,如果您想加密用户输入,则可以这样做.使用RAS或MD5哈希.您可以通过javascrypt在客户端浏览器中进行加密,并使用c#(或vb.net)在服务器中进行解密,为每个请求生成随机密钥.

按照链接学习示例..


http://sites.google.com/site/santo01org/encryption-of-password-in-asp-net-login-page-through-javascript [
if you want to encrypt server output, there is not mechanism to do it.. just you have to use SSL i.e. https:// protocol.

but if you want to encrypt user inputs you can do it. using RAS or MD5 hashings.. you can encrypt in client browser through javascrypt and decrypt in server using c#(or vb.net), random keys are genereated for every requests.

follow the link to learn through example..


http://sites.google.com/site/santo01org/encryption-of-password-in-asp-net-login-page-through-javascript[^]


这篇关于通过网络加密/解密的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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