2 Replies - 948 Views - Last Post: 26 May 2009 - 09:00 AM

#1 StanleyTan   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 25-May 09

Encryption and Decrpytion using Javascript

Posted 25 May 2009 - 10:21 PM

I have a folder containing html files. I want all these html files should be in encryted form in the folder 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 to be again encrypted. How am i able to do that? Please teach me how to go about it. Help is very much appreciated. Thanks
Is This A Good Question/Topic? 0
  • +

Replies To: Encryption and Decrpytion using Javascript

#2 girasquid   User is offline

  • Barbarbar
  • member icon

Reputation: 108
  • View blog
  • Posts: 1,825
  • Joined: 03-October 06

Re: Encryption and Decrpytion using Javascript

Posted 26 May 2009 - 08:54 AM

Why do you want to do this? The HTML has to be sent to the user's browser in plaintext for their browser to interpret it, anyway. By storing it encrypted and decrypting it when it's sent to the visitor, all you're doing is increasing the amount of processing time required for each hit to your website.
Was This Post Helpful? 0
  • +
  • -

#3 PsychoCoder   User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1659
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: Encryption and Decrpytion using Javascript

Posted 26 May 2009 - 09:00 AM

As already pointed out you're looking at a serious performance issue if you were to do this (plus I can think of no reason for being willing to take this performance hit to do this). Also:

[rules][/rules]
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1