Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > share a secret between java applet and c# server page

Reply
Thread Tools

share a secret between java applet and c# server page

 
 
oliviergir@gmail.com
Guest
Posts: n/a
 
      05-01-2007
Hi,
I have an applet that needs to submit some data to the server via an
http GET request onto the server (an aspx page written in C#).
The url called by the applet is going to be visible by the user but I
need to make it impossible for the user to call that page again later
with fake data (unless he decompiles the applet code..) .


What i plan to do but i am not sure at all :
I suppose that I need a secret (a private key) that will be shared by
the applet and the server code.
A unique id (ex: System.currentMillis() +ip ?) generated by the
applet , encrypted with the private key and send as a parameter "uid"
to the server.

On server side, if same uid is receive twice, request is refused.
If not, I need to make sure that uid was properly "signed" with the
private key?

what do you think of that method ?
could give me sample code to achieve that ?

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Share-Point-2010 ,Share-Point -2010 Training , Share-point-2010Hyderabad , Share-point-2010 Institute Saraswati lakki ASP .Net 0 01-06-2012 06:39 AM
Can Groovy be used in an applet and/or can it generate the Java bytecodes that then can be used in an applet? Casey Hawthorne Java 1 03-18-2009 12:56 AM
OT: a secret. I have a secret. I have a secret. I won't tell you. Nanannannanana. Psychometrically Validated MCSE 13 02-22-2006 03:29 AM
Java Applet loading in Applet Viewer but not in HTML page Archana Java 1 10-24-2004 11:41 PM
Java applet failed when I try to load the avi file in my java applet Krista Java 3 09-15-2004 02:53 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57