PHP Classes
elePHPant
Icontem

File: example_de-scramble.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Robert Amigura  >  Scramble Eggs  >  example_de-scramble.php  >  Download  
File: example_de-scramble.php
Role: Example script
Content type: text/plain
Description: example descramble
Class: Scramble Eggs
Scramble text adding fake characters
Author: By
Last change: updated to php 5
Date: 6 years ago
Size: 843 bytes
 

Contents

Class file image Download
<?php
/*
scramble and descramble values with fake text and numbers patterns
this is an alternative to encryption.

author: Amigura
website: http://www.amigura.co.uk/php_blog/

todo - add daily random patterns

*/

include 'scramble_eggs.php';

// how much fake text to add
$len = '5';
// where to add fake text
$pattern = '3';
// text to descramble
$faketext = 'scrykkhnambzeudxle dlinmandtxvbv deblgwfscrcqczbambfiwefle r mzjvalgmmfjuesmqbjm wizspntth jeovvfakicrdce t qsyuextudrtz ankrjmvd ngiotoumbhbmkcersxyqym pa zbxzttetvvpdrnseosgq, tuqbijhisfoqgb iseqpbe sovyj p cozubxpol.meimewloir';


// call class
$descramble_it = new scramble_text;

// descramble text
echo '<br><strong>Descrambled text</strong><br>';
$descramble_it->unfake_text($faketext,$pattern,$len);
echo
$descramble_it->descrambled_val;
?>