<?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;
?>
|