-3

Possible Duplicate:
How to encrypt HTML, CSS and JavaScript to prevent theft

Please tell how to encrypt html page surce code for any webpage using javascript function if not possible then please tell alternative ways..

5
  • There are a MILLION questions on this: stackoverflow.com/questions/3247270/… Commented Nov 26, 2012 at 13:02
  • what do you want to achieve? Commented Nov 26, 2012 at 13:02
  • We need more info. What part of the HTML do you want to encrypt? Just the text? Or also the html tags? Why do you want to encrypt it? Is it to avoid data being stolen in the way (evesdropping)? Or do you want the end user to be unable to see how you made the page? Commented Nov 26, 2012 at 13:02
  • These question i have already answered take a look at it. Commented Mar 23, 2017 at 12:15
  • stackoverflow.com/a/42952848/7751463 Commented Mar 23, 2017 at 12:15

1 Answer 1

0

In order for the source to be rendered, it has to be decrypted in the browser and a DOM constructed, which which point the user can use a DOM inspector to access the DOM and serialize it back to HTML (thus creating a reasonable facsimile of the original HTML).

Thus there is no way, alternative or otherwise.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.