The latest buzz in the wordpress industry - advanced footer protection.

Most of the themes now comes with this feature, the footer file is not encrypted rather some code in the functions.php or sidebar.php is encoded so that if someone tried to edit the footer file, the theme breaks down and an error message pops up.

I would really like to learn this technique, you can show me examples from a basic template. Can somebody help me please?