Re: Encrypting a message

From: Date: Wed, 04 Dec 2002 14:56:42 +0000
Subject: Re: Encrypting a message
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-126987@lists.php.net to get a copy of this message
Hi, $array = ($var1, $var2, $var3, $var4); for (...) { $counter++; $counter = $counter % 4; // "%" is the "mod-" operator which returns the rest of the division $counter / 4 // here you use the variable $array[$counter] } HTH, Bastian Rodrigo De Oliveira schrieb: > Hi guys I really need to find a way diferent from the functions that come with php like mcrypt, > cause my server do not use these. I would really apreciate some sort of exemple, since I'm not > being able to crack the thing. Since I'm trying not to simply change the characters from one to > another, it more dificult. It would be usefull like to have 4 variables with the alphabet and the > first letter were taken from the first variable and the second from the second variable, and this > foward, my problem starts when the number of variables isn't enough for all letters to be > changed, so how to start the fifth letter in the first variable instead to look for a fifth variable > that isn't there? > > Thanks, > Rodrigo

« previous php.general (#126987) next »