如何加密&使用AES算法解密URL。 [英] How to encrypt & decrypt URL using AES algorithm.?

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

问题描述





我正在开发一个在线充值网站,我需要通过加密URL向远程服务器发送请求。



充值请求Foramt是:



http:// www.remoteServerName.in /recharge.ashx?uid=< ; user_id>& pwd =< password>

& mobileno =< mobile_number>& amt =< recharge_amount>& transid =< transacti

on_id>



我如何在不共享密钥的情况下加密和解密URL,因为我自动生成随机密钥和IV?



请建议与此相关的编码。

Hi,

I am developing a website for Online recharge in which i need to send a request to the remote server by encrypting the URL.

Recharge Request Foramt is:

http:// www.remoteServerName.in /recharge.ashx?uid=<user_id>&pwd=<password>
&mobileno=<mobile_number>&amt=<recharge_amount>&transid=<transacti
on_id>

How can i encrypt and decrypt the URL without sharing the Key as i am generating Random Key and IV automatically ?

Kindly suggest coding related to this.

推荐答案

由于您要将加密值发送到您无法控制的服务器,您将不得不问他们什么关键使用。您将需要使用相同的密钥来加密它们将用于解密值的值,因此您需要就共享密钥达成一致。你不会想做随机密钥。
Since you are sending encrypted values to a server that you do not control you will have to ask them what key to use. You will need to use the same key to encrypt the values that they will use to decrypt the values so you will need to agree on a shared key. You won't want to do random keys.


这篇关于如何加密&amp;使用AES算法解密URL。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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