Hack::Natas::IncrementalSearch - do incremental searches for some Natas challenges
version 0.003
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_so_far
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.
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.
password
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/.
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
You can make new bug reports, and view existing ones, through the web interface at https://github.com/doherty/Hack-Natas/issues.
Mike Doherty <doherty@cpan.org>
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.
To install Hack::Natas, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Hack::Natas
CPAN shell
perl -MCPAN -e shell install Hack::Natas
For more information on module installation, please visit the detailed CPAN module installation guide.