share a secret between java applet and c# server page

Discussion in 'Java' started by oliviergir@gmail.com, May 1, 2007.

  1. Guest

    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 ?
     
    , May 1, 2007
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mironov Leonid

    Share memory between C and Java

    Mironov Leonid, Jul 27, 2003, in forum: Java
    Replies:
    5
    Views:
    5,292
    Peter Szymanski
    Jul 28, 2003
  2. Krista
    Replies:
    3
    Views:
    2,569
    Andrew Thompson
    Sep 15, 2004
  3. Archana
    Replies:
    1
    Views:
    1,544
    Andrew Thompson
    Oct 25, 2004
  4. K. Jansma
    Replies:
    7
    Views:
    494
    Duncan Booth
    Feb 21, 2006
  5. =?Utf-8?B?U2FjaGluIFNha2k=?=

    How to Share Session State between .asp and .aspx page ?

    =?Utf-8?B?U2FjaGluIFNha2k=?=, May 18, 2007, in forum: ASP .Net
    Replies:
    5
    Views:
    601
    =?Utf-8?B?U2FjaGluIFNha2k=?=
    May 23, 2007
  6. Ejeep
    Replies:
    12
    Views:
    881
    Piotr Kobzda
    Nov 7, 2007
  7. Axel Dahmen

    Share Information Between a Page and its UserControls?

    Axel Dahmen, Oct 24, 2003, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    196
    Axel Dahmen
    Oct 24, 2003
  8. Saraswati lakki
    Replies:
    0
    Views:
    1,699
    Saraswati lakki
    Jan 6, 2012
Loading...