I'm using this php loop to do a basic xor of 2 different length strings $text and $key which works very well, I need to do the same xor in Python to unscramble the string, I'm struggling to convert this FOR loop into a Python FOR loop, can someone please help:-
for($i=0; $i<strlen($text); )
{
for($j=0; ($j<strlen($key) && $i<strlen($text)); $j++,$i++)
{
$outText .= $text{$i} ^ $key{$j};
}
}
$iand$jhere. They have all the time same value. And you probably initialize your$isomewhere outside of this code snippet.