PHP encrypt of html text (password) and then Javascript decryption

Discussion in 'Javascript' started by oldrich.svec@centrum.cz, Dec 18, 2006.

  1. Guest

    Is there any way how to encrypt some html text in php and afterwards
    decrypt it with javascript and send it with form?
    Example:
    <input type="hidden" value="password"/>
    I don't want to have seen value "password" in html source code but I
    need to send the value by form...
     
    , Dec 18, 2006
    #1
    1. Advertisements

  2. wrote:

    > Is there any way how to encrypt some html text in php and afterwards
    > decrypt it with javascript and send it with form?


    Well you could ... but what would be the point? You'd be effectively putting
    the password in a locked box, then giving it AND THE KEY to the browser
    (and anyone viewing source could see the key too).

    --
    David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
    Home is where the ~/.bashrc is
     
    David Dorward, Dec 18, 2006
    #2
    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. Deepa
    Replies:
    2
    Views:
    9,666
  2. AAaron123
    Replies:
    2
    Views:
    3,015
    AAaron123
    Jan 16, 2009
  3. Jean-Claude Neveu

    Python and PHP encryption/decryption

    Jean-Claude Neveu, Aug 19, 2009, in forum: Python
    Replies:
    3
    Views:
    1,031
    Piet van Oostrum
    Aug 21, 2009
  4. Rajive Narain
    Replies:
    0
    Views:
    2,508
    Rajive Narain
    Sep 18, 2009
  5. Replies:
    0
    Views:
    590
  6. http://ejobseek.com

    Encrypt in Perl, De-encrypt in Javascript

    http://ejobseek.com, Sep 1, 2003, in forum: Perl Misc
    Replies:
    3
    Views:
    566
    James Willmore
    Sep 1, 2003
  7. Replies:
    1
    Views:
    234
  8. __
    Replies:
    1
    Views:
    234
    Gregor Kofler
    Oct 2, 2007
Loading...