PHP Classes

File: class_lib.php

Recommend this page to a friend!
  Classes of Alex Telford   Page encryptor   class_lib.php   Download  
File: class_lib.php
Role: Class source
Content type: text/plain
Description: souce file
Class: Page encryptor
Create obfuscated names for pages
Author: By
Last change: bug fix
Date: 13 years ago
Size: 561 bytes
 

Contents

Class file image Download
<?PHP
//encrypt page names - metalix classes
function create_page($name,$type){
   
$salt = 'default';
   
//use unusual encryption method to put off brute force crack attempts
   
$name = md5($salt).md5($name);
   
//use unusual string length to prevent hash type guesess
    //use 31-59 length
   
$name = substr($name,5,38);
   
$result = $name.'.'.$type;
        return
$result;
}
class
page{
    function
__construct(){
       
$this->about = create_page('about','php');
       
$this->menu = create_page('menu','cfm');
       
$this->admin = create_page('admin','html');
    }
}
?>