0

I have a folder containing thousand of html files. I want initially all these html files should be in encryted form and when a call to paticuler html is made, it should be decryted and should open in browser and after that when next html will be called the previously decrypted html should be deleted or again encrypted. Can ww do that and how? And also tell me JavaScript code to encrypt - decrypt html.

Thanks in advance.

2
  • Not sure what your goal is, but JavaScript encryption offers no security. Commented Apr 16, 2009 at 3:49
  • It's more like annoying obfuscation Commented Apr 16, 2009 at 3:55

2 Answers 2

3

There's no need to use JavaScript to encrypt or decrypt, use HTTPS and a certificate.

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

Comments

2

I'm not sure what you're trying to accomplish, but here's the library you are looking for:

Descrypt the HTML from the server as encoded...

Then slap in the HTML with jQuery using the $ function. Note that this will be utterly insecure as the key/password will be passed or revealed somewhere in the browser or even the HTML at some point.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.