Vigenère cipher/Cryptanalysis: Difference between revisions

Content added Content deleted
m (→‎{{header|Perl 6}}: eliminate temp variable)
m (→‎{{header|Perl 6}}: Remove undeclared variable so it will run stand-alone)
Line 1,582: Line 1,582:


for myguess($cipher-text) -> $key {
for myguess($cipher-text) -> $key {
@res.push: "Key $key\n" ~
say "Key $key\n" ~
"Key length {$key.chars}\n" ~
"Key length {$key.chars}\n" ~
"Plaintext {substr(mycrypt($cipher-text, $key), 0, 80)}...\n";
"Plaintext {substr(mycrypt($cipher-text, $key), 0, 80)}...\n";
}</lang>
}</lang>
{{out}}
{{out}}