views:

407

answers:

4

Hi I am developing my application in flex and JSP, so when I am passing values through HTTP Service Post method with request object but these values are tracing and modifying by testing team so I am planning to encrypt values in flex and decrypt it in jsp.so is there any algorithms like SHA or MD5 more secure algorithms, so please send any code or related links it is very useful to me. I am using like

httpService = new HTTPService;
httpService.request = new Object;
httpService.request.task = "doInvite";
httpService.request.email = emailInput.text;
httpService.request.firstName = firstNameInput.text;
httpService.request.lastName = lastNameInput.text;
httpService.send();

So is there any other way to give more secure ,please help me in this,Thanks in Advance.

+1  A: 

You should consider posting to a secure area of the site, i.e. over https.

ar
Often times that's not an option.
HDave
+4  A: 

Kinda hard to read, but (as far as I could understand) you're confusing Encryption with Hashing. Neither MD5 nor SHA are encryption algorithms, they're hash algorithms:

Hash Function

Encryption

MeDiCS
+3  A: 

you can't "decrypt" MD5 or SHA1 hashes they are ONE-WAY hashes which means they are non-recoverable.

fuzzy lollipop
A: 

I have found a mature Flex library that implements both the MD5 and SHA-1 hash algorythms. So now you can use either one on the Flex side.

http://github.com/mikechambers/as3corelib

Of course, you can't go backwards with a hash algorythm, so you'll have to compare the persisted hash with the one sent over the wire.

HDave