| 
<?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/
 
 */
 
 include 'scramble_eggs.php';
 
 // how much fake text to add
 $len = '5';
 // characters to use - numbers/letters
 $charset ='2';
 // where to add fake text
 $pattern = '3';
 // text to scramble
 $realtext = 'scramble and descramble values with fake text and numbers patterns, this is so cool.';
 
 // call class
 $scramble_it = new scramble_text;
 
 // output class
 
 // scramble text
 echo '<br><strong>Scrambled text</strong><br>';
 $scramble_it->fake_text($realtext,$pattern,$charset,$len);
 echo $scramble_it->scrambled_val;
 
 ?>
 |