Parallel brute force: Difference between revisions
Content added Content deleted
m (Reformatted to reduce line count) |
m (→{{header|Perl}}: syntax highlighting) |
||
Line 1,218: | Line 1,218: | ||
=={{header|Perl}}== |
=={{header|Perl}}== |
||
Uses threads library to do naive search using 26 threads ("aaaaa" .. "azzzz", "baaaa" .. "bzzzz", etc.). No effort is made to early exit. |
Uses threads library to do naive search using 26 threads ("aaaaa" .. "azzzz", "baaaa" .. "bzzzz", etc.). No effort is made to early exit. |
||
<lang>use Digest::SHA qw/sha256_hex/; |
<lang perl>use Digest::SHA qw/sha256_hex/; |
||
use threads; |
use threads; |
||
use threads::shared; |
use threads::shared; |