a little script to get people started on there own encoding/decoding script
made this post cos alot of people continue to this day to ask how to either make one or how to encode / decode something.
all you need to do is make your own file, add this code to it. then run the script to see the working result.
then you can add the rest of the alphabet/symbols you want to be included into your encode/decode sequence and what type of style you want to decode the letter/symbols in.
example: right now i set it so A = 9E but you could make it stronger by setting it to something like A = 6GH42RR etc etc..
<?php
/** An Example Encoding / Decoding Script
By Ghost
*/
/** Encode */
function Encode($Data)
{
$Encode_From = array('A', 'B', 'C');
$Encode_To = array('9E', 'R4', 'D1');
for($m = 0; $m<count($Encode_From); $m++)
{
$Data = str_replace($Encode_From[$m], rtrim($Encode_To[$m]), $Data);
}
Return $Data;
}
echo '<b>Encoded Data:</b><br/>';
echo Encode('ABC');
echo '<br/><br/>';
/** Decode */
function Decode($Data)
{
$Decode_From = array('9E', 'R4', 'D1');
$Decode_To = array('A', 'B', 'C');
for($m = 0; $m<count($Decode_From); $m++)
{
$Data = str_replace($Decode_From[$m], rtrim($Decode_To[$m]), $Data);
}
Return $Data;
}
echo '<b>Decoded Data:</b><br/>';
echo Decode('9ER4D1');
?>
you would also want to prob put your own upper/lowercase checking in also. as right now this only looks for uppercase chars, as i put them all in as uppercase in the array.
anyway this should help you make your own version anyhow.
hope it helps people.