Results 1 to 10 of 10

Thread: Encryption on a get method

  1. #1

    Thread Starter
    Addicted Member thamizhinpan's Avatar
    Join Date
    Dec 2005
    Location
    TE
    Posts
    243

    Encryption on a get method

    Can I submit data with encryption on a get method form?
    If above question or answer will help to you
    Don't forget to rate me
    தமிழ்இன்பன்

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Encryption on a get method

    Yes if your form target is specified to use HTTPS.

    PHP Code:
    <form method="GET" action="https://example.com/somewhere"

  3. #3
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: Encryption on a get method

    What would that do penagate? What's the difference if it uses HTTPS?


    Has someone helped you? Then you can Rate their helpful post.

  4. #4
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Encryption on a get method

    The communication is encrypted using SSL.

  5. #5
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: Encryption on a get method

    So the GET parameters don't show?


    Has someone helped you? Then you can Rate their helpful post.

  6. #6
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Encryption on a get method

    Well, that is a good point. Since GET parameters are appended to the URL you are better off putting sensitive data in a POST body.

  7. #7

    Thread Starter
    Addicted Member thamizhinpan's Avatar
    Join Date
    Dec 2005
    Location
    TE
    Posts
    243

    Re: Encryption on a get method

    I know that, But I don't know how to transfer data between 2 pages automatically (Without submitting by user) with post method.
    So I do that
    If above question or answer will help to you
    Don't forget to rate me
    தமிழ்இன்பன்

  8. #8
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: Encryption on a get method

    One way would be to make a form, and then submit it by javascript. Might not be the best way though...


    Has someone helped you? Then you can Rate their helpful post.

  9. #9
    Fanatic Member
    Join Date
    Jul 2007
    Posts
    530

    Re: Encryption on a get method

    You CANT at least if you use Post method

  10. #10
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: Encryption on a get method

    You can!!!!!! But I wouldn't recommend it.

    The query string is hidden when making an SSL request so you don't need to worry. Also, you shouldn't be transferring sensitive information back and forth even when it is encrypted; as you can store it in a server side session.

    How SSL works:
    1. A TCP connection on port 443 is first established with the server.
    2. The client says hello. It also sends all its supported ciphers and key exchange protocols.
    3. The sever sends its certificate and the client verifies the certificate and authenticates the server, usually by use of a digital signature.
    4. Upon verification the client and server agree on a key exchange protocol and an encryption cipher.
    5. The server and client exchange the key.
    6. The HTTP request is then encrypted using this key and sent to the server:
      Code:
      GET /index.php?value=secret&value2=versecret HTTP/1.1
      Host: www.example.com
    7. When the server receives the encrypted request it uses the agreed key to decrypt it.
    8. The server then encrypts the response with the agreed key and sends it back to the client.


    See, no query string data ever gets seen between the two end points unencrypted. The only visible data are the source and destination IP addresses and the encrypted communications.
    Last edited by visualAd; Feb 23rd, 2008 at 06:09 AM.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width