如何在JavaScript加密URL,然后在C#解密 [英] How to encrypt url in javascript and decrypt in c#

查看:161
本文介绍了如何在JavaScript加密URL,然后在C#解密的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

var url = "DocumentId="+DocumentID+"&SectionType=1&RecID="+RecipientID;
window.open ( "../EBox/ShowLetter.aspx?Url="+encodeURIComponent(url),'PrintMail' , features );



而不是编码的我想OT加密的URL。 ,这是什么解决办法吗?

Instead of encoding I want ot encrypt the url . What is the solution for this?

推荐答案

如果它是安全的,JavaScript是错误的地方去。任何事情在JavaScript做将是可见的黑客,谁就会很容易得到一个加密的字符串。

If it has to be secure, javascript is the wrong place to go. Anything done in javascript will be visible to a hacker, who will easily get an encrypted string.

这篇关于如何在JavaScript加密URL,然后在C#解密的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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