$dt=`/cygwin/bin/date`; chomp $dt; #### $dt=localtime; #### $clen = length($ucrypt); @uchar = split(//,$ucrypt); for($i=0; $i<($clen); $i++) { $val = ord($uchar[$i]); if($val>127) { $SKIP=1; last; } } #### while ($ucrypt =~ /(.)/g) { if (ord($1)>127) { $SKIP=1; last; } } #### $SKIP = $ucrypt =~ /[\x80-\xFF]/; #### my $plaintext; my $ct; my $key = 'A'; while ( 1 ) { $plaintext = RC4($key, $ciphertext); if ( $plaintext !~ /[\x80-\xFF]/ ) { print "matched using key:$key \n"; print "$plaintext \n"; } if ( ++$ct == 10000 ) { $dt = localtime; print "[$dt] count: $ct key: $key \n"; $ct = 0; } $key++; }