Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Proposal] Smarter Searching #659

Open
bee-san opened this issue Jun 7, 2021 · 0 comments
Open

[Proposal] Smarter Searching #659

bee-san opened this issue Jun 7, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@bee-san
Copy link
Member

bee-san commented Jun 7, 2021

I propose 2 things:

  1. We use PyWhat to determine whether something is possible (is the text morse code? Hexadecimal?)
  2. We build a YAML configuration file that determines the likeliness of routes.

PyWhat

Currently we attempt to decode morse code even if it's obviously not possible.

I propose we submit a PR to PyWhat with the regex for some decoders, for example morse code should only consist of 4 characters. .-\n .

We then filter this and match them up in the searcher level. So if something passes the morse code test, we reduce the search space to only that. If it doesn't pass, we remove morse-code from the search space.

Config File

We can build a config file like:

Unlikely:
    Base69, xor

This reads as "Do not attempt Xor if the previous level was base69". This is because of how unlikely it is to use both a meme cipher and a real one.

We can also define "likely" ones, like base64 is often done once or in association with other bases.

The search algorithm, in the sorting section, would prioritise these. We can use our personal expertise to make it faster using this method :-)

@bee-san bee-san added the enhancement New feature or request label Jun 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant