I’ve decided to publicly release Crypt Source, a library I created several years ago to encrypt the HTML source code of web content. I’ve been using Crypt Source internally in various projects and web sites, to deter cheating in web-based games and other types of bot activity.
Crypt Source is designed to work with existing web standards, so no browser plugins are necessary, and the decryption key is stored externally from the encrypted HTML. This means that if the encrypted HTML file is saved or cached, and then later opened, it should be impossible to decrypt without knowing the key.
In fact, Crypt Source uses a multi-key technique where the encryption key itself is encrypted with a secondary key. The secondary key is only released after the main key has been deleted from the web server. This means that somebody needs to have all 3 parts (the encrypted HTML, the encrypted main key, and the secondary key) to decrypt the web content.
To download Crypt Source, check out: http://cryptsource.com