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

O

oldrich.svec

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

David Dorward

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

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top