加密URL中的参数 [英] Encrypting Parameters in URLs

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

问题描述

我有一个如下所示的网址:

http:// localhost:8001 / jasperserver& reportUnit = somereport& username = cghan& password = somepasswrd b



确保这一点的最佳方法是什么?

正如你所看到的,密码是清除的网站,以及其他一些参数。 $ b

解决方案

使用SSL加密,即HTTPS。这使得它可以在互联网上为每个人加密,但它仍然可以在地址栏中阅读。



不建议通过URL发送密码参数,例如。 HTTP POST。您应该将密码作为HTTP POST发送。


I have a URL that looks like this:

http://localhost:8001/jasperserver&reportUnit=somereport&username=cghan&password=somepasswrd

As you can see, the password is in clear site, along with some other parameters.

What's the best way to secure this?

解决方案

Use SSL encryption, i.e. HTTPS. This makes it encrypted for everyone on the internet but it is still readable on the address bar.

It is not recommended to send password parameters through URL, e.g. HTTP POST. You should send password as HTTP POST.

这篇关于加密URL中的参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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