in reply to Re: perplexing inconsistency using RC4 and unpack
in thread perplexing inconsistency using RC4 and unpack
then it becomes (pack'ing it again and converting to hex for display):my $ms = $ml < $MAX_CHUNK_SIZE ? $ml : $MAX_CHUNK_SIZE; for my $piece ( 0..$num_pieces - 1 ) { my $ss = substr($message, $piece * $MAX_CHUNK_SIZE, $ms); # fine + up to here... my $ssl = length $ss; my @message = unpack( "C*", $ss ); ### at this point the charact +ers are changed... we go from 32 to 37 characters (in the array). why +? # i've changed the code in the RC4 package here slightly to allow +testing. # it produces identical results in all cases considered here.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: perplexing inconsistency using RC4 and unpack (UTF-8)
by tye (Sage) on Aug 01, 2009 at 05:44 UTC | |
by oddmedley (Novice) on Aug 01, 2009 at 14:44 UTC | |
|
Re^3: perplexing inconsistency using RC4 and unpack
by Anonymous Monk on Aug 01, 2009 at 03:37 UTC |