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. Advertising

  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. Advertising

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. Jean-Claude Neveu

    Python and PHP encryption/decryption

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

    Encrypt in Perl, De-encrypt in Javascript

    http://ejobseek.com, Sep 1, 2003, in forum: Perl Misc
    Replies:
    3
    Views:
    290
    James Willmore
    Sep 1, 2003
  5. Replies:
    1
    Views:
    142
Loading...

Share This Page