Vigenère cipher/Cryptanalysis: Difference between revisions
Content added Content deleted
SqrtNegInf (talk | contribs) m (→{{header|Perl 6}}: eliminate temp variable) |
Thundergnat (talk | contribs) 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 { |
||
say "Key $key\n" ~ |
|||
"Key length {$key.chars}\n" ~ |
|||
"Plaintext {substr(mycrypt($cipher-text, $key), 0, 80)}...\n"; |
|||
}</lang> |
}</lang> |
||
{{out}} |
{{out}} |