Tricky Quiestion!!!
| From: | Thomas \"omega\" Henning | Date: | Mon, 14 Jan 2002 17:33:44 +0000 |
| Subject: | Tricky Quiestion!!! | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-15781@lists.php.net to get a copy of this message | ||
Hello all,
I encrypt a text lets say omega home with an home made encryption algorithm.
Lets say i encrypt omega home. It will result oomoeogoao ohooomoeo. When i
decrypt it it ses omega hme
Home isn't typed out due 2 exlopde("o","oomoeogoao ohooomoeo"); In this
case. H
My quiestion how i make the PHP code put the first char in this case o in
its right place?
Thomas "omega" Henning
ok this is my code
elseif($cmd=="@")
{
$sep=substr($enc,0,1);
$denc=explode($sep,$enc);
for($i=0;$i<strlen($enc);$i++)
{
if()
$dencf=$dencf.$denc[$i];
}
$dencf=substr($enc,0,1).$dencf;
irc_put_message("PRIVMSG $nickto :<$nick,encrypted message> $enc:$dencf");
}