The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Hack::Natas::IncrementalSearch - do incremental searches for some Natas challenges

VERSION

version 0.003

DESCRIPTION

This is a role for incrementally guessing the password in one-character slices. It provides a password_so_far attribute, which is used to build up the full password. It requires that consumers have:

  • password_length

    An integer which tells us how long the password is, so the search will stop once we have the whole thing.

  • guess_next_char

    A method which, when called with the current position in the password, returns the next character.

METHODS

run

This is the only method you need to call. It will do the search, and once password_length characters of the password have been guessed using guess_next_char, the password attribute will be set.

AVAILABILITY

The project homepage is https://hashbang.ca/tag/natas.

The latest version of this module is available from the Comprehensive Perl Archive Network (CPAN). Visit http://www.perl.com/CPAN/ to find a CPAN site near you, or see https://metacpan.org/module/Hack::Natas/.

SOURCE

The development version is on github at http://github.com/doherty/Hack-Natas and may be cloned from git://github.com/doherty/Hack-Natas.git

BUGS AND LIMITATIONS

You can make new bug reports, and view existing ones, through the web interface at https://github.com/doherty/Hack-Natas/issues.

AUTHOR

Mike Doherty <doherty@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2013 by Mike Doherty.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.