Feature request: Have 'Magic' detect ROT13 ciphertext
- Dominant language
- JavaScript
- Stars
- 35.8k
- Forks
- 4.1k
- Avg merge
- 2d 26m
- Merged PRs (30d)
- 33
Description
**Is your feature request related to a problem? Please describe.**
The Magic function is unable to identify ROT13 ciphertext.
**Describe the solution you'd like**
ROT13 is deterministic. The Magic function should look for common text patterns in the input and attempt to apply the ROT13 transformation if it sees some of them. For example, "the" will always be transformed to "gur", so if `/ gur /` is encountered, there is a good chance it just needs ROT13 to be applied again.
**Describe alternatives you've considered**
A good solution for me going forward is to think of ROT13 whenever I see "gur" or "sbe". But that doesn't help anyone who isn't familiar with ROT13.

**Additional context**
Searching for `/ gur /` or `/ sbe /` would only be helpful for ciphertexts where the plaintext was in English and has been shifted exactly 13 places. Perhaps the 10 most common words from each language could be searched for, and attempt 10-16 shifts. Having Magic come back and tell me "this is Spanish text shifted 11 places with ROT13" would be 🔥.
Contributor guide
Assessment
This issue has not been assessed yet.